WalletD developers
Catalog

Issue an API key that acts as this merchant

Only a signed-in member of the merchant's organization may issue a key; a key cannot mint more keys.

POST/v1/clients/{clientId}/api_keys

Only a signed-in member of the merchant's organization may issue a key; a key cannot mint more keys. The token is returned once.

Authorization

bearerAuth
AuthorizationBearer <token>

A tenant API key (sk_{env}_{id}_{secret}), a wallet user token, or an IdP access token. Which principal the credential resolves to decides the scopes it carries; see the authentication guide.

In: header

Path Parameters

clientId*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/v1/clients/497f6eca-6276-4993-bfeb-53cbbbba6f08/api_keys" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "key": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "env": "sandbox",    "name": "string",    "scopes": [      "string"    ],    "status": "active",    "created_at": "2019-08-24T14:15:22Z",    "expires_at": "2019-08-24T14:15:22Z",    "last_used_at": "2019-08-24T14:15:22Z"  },  "token": "string"}