Create sandbox organisation
POST/v2/config/sandbox-org
Creates a sandbox organisation for the organisation. A sandbox organisation is a separate wallet inside your organisation. It has its own credential definitions, presentation definitions, webhooks and keys, so you can test an issuance or a verification flow without a change to the main wallet.
The main wallet of the organisation must be deployed before you create a sandbox organisation. The name must be unique in the organisation.
The service deploys a new wallet for the sandbox organisation and copies the logo image and the cover image of the organisation to it. To use the new sandbox organisation in a later request, send its id in the X-SandboxOrgId header, or bind an API key to it with PUT /config/admin/apikey/{apiKeyId}/sandbox-org.
Request
- application/json
Body
required
The sandbox organisation to create.
sandboxOrg objectrequired
The sandbox organisation to create.
Name of the sandbox organisation. This field is mandatory. The name must be unique in the organisation. If a sandbox organisation with the same name exists, the service gives HTTP 400.
Description of the sandbox organisation. This field is optional, and the service stores an empty string when you leave it out.
Responses
- 201
- 400
- 401
- 500
The service created the sandbox organisation.
Response Headers
- application/json
- Schema
- Example (from schema)
- Example
Schema
sandboxOrg objectrequired
The sandbox organisation that the service created. The service sets the id, the openIdDeploymentId, the status and the timestamps.
Unique identifier of the sandbox organisation
Display name of the sandbox organisation
Human readable description of the sandbox organisation
Identifier of the associated OpenID deployment
Status code of the sandbox organisation
Identifier of the associated ledger
Name of the infrastructure provider
Version of the sandbox organisation configuration
Role of the sandbox organisation in the ecosystem
Trust anchor identifier or DID
Indicates whether this sandbox organisation acts as a wallet provider
Identifier of the primary secure vault
Identifiers of the secure vaults that the sandbox organisation uses. The field holds null when the sandbox organisation has no secure vault.
Identifier of the logo image. The field is absent when the sandbox organisation has no logo image.
Identifier of the cover image. The field is absent when the sandbox organisation has no cover image.
Public URL for the logo image
Public URL for the cover image
Timestamp when the sandbox organisation was created
Timestamp when the sandbox organisation was last updated
Indicates whether this is the main organisation
{
"sandboxOrg": {
"id": "string",
"name": "string",
"description": "string",
"openIdDeploymentId": "string",
"status": 0,
"ledgerId": 0,
"infrastructureProvider": "string",
"version": "string",
"role": "string",
"trustAnchor": "string",
"isWalletProvider": true,
"secureVault": 0,
"secureVaults": [
0
],
"logoImageId": "string",
"coverImageId": "string",
"logoImageUrl": "string",
"coverImageUrl": "string",
"createdAt": 0,
"updatedAt": 0,
"isMain": true
}
}
{
"sandboxOrg": {
"id": "6889e1a4c5b2f30001a3d710",
"name": "Acme Test Issuer",
"description": "Sandbox organisation for issuance tests",
"openIdDeploymentId": "6889e1a4c5b2f30001a3d711",
"status": 2,
"ledgerId": 0,
"infrastructureProvider": "iGrant",
"version": "1.0.0",
"role": "",
"trustAnchor": "",
"isWalletProvider": false,
"secureVault": 0,
"secureVaults": null,
"logoImageId": "6889e1a4c5b2f30001a3d6f0",
"coverImageId": "6889e1a4c5b2f30001a3d6f1",
"logoImageUrl": "https://demo-api.igrant.io/v2/onboard/image/6889e1a4c5b2f30001a3d6f0/web",
"coverImageUrl": "https://demo-api.igrant.io/v2/onboard/image/6889e1a4c5b2f30001a3d6f1/web",
"createdAt": 1754745764,
"updatedAt": 1754745764,
"isMain": false
}
}
The main wallet of the organisation is not deployed, the name is missing, a sandbox organisation with the same name exists, or the service could not deploy the wallet.
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
{
"errorCode": 400,
"errorDescription": "Bad input parameter"
}
Unauthorized
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
{
"errorCode": 400,
"errorDescription": "Bad input parameter"
}
Internal server error
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
{
"errorCode": 400,
"errorDescription": "Bad input parameter"
}