PLATINUM DOCS
ApiSandboxes

POST /v1/sandboxes/{id}/keys

POST
/v1/sandboxes/{id}/keys

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Mint a key confined to this sandbox. A key that is itself confined to a sandbox mints only for that sandbox's direct children: 403 key_not_narrower for its own sandbox. 409 delegation_too_deep more than 15 levels below a root, sandbox_key_limit past 5 live keys per sandbox, delegated_key_limit past 1000 per organization.

Response Body

application/json

curl -X POST "https://example.com/v1/sandboxes/string/keys" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "name": "string",  "prefix": "string",  "scopes": [    "string"  ],  "sandbox_id": "string",  "parent_key_id": "string",  "created_at": "2019-08-24T14:15:22Z",  "expires_at": "2019-08-24T14:15:22Z",  "token": "string"}
Empty