Mint self-serve sandbox credentials: a personal key, an OAuth client and a webhook signing key for a new tenant
curl --request POST \
--url https://sandbox.composer.id/v1/sandbox/keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>"
}
'import requests
url = "https://sandbox.composer.id/v1/sandbox/keys"
payload = { "label": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: '<string>'})
};
fetch('https://sandbox.composer.id/v1/sandbox/keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"tenant": "<string>",
"api_key": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"webhook_signing_key": "<string>",
"scope": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"token_endpoint": "/v1/oauth/token",
"label": "<string>",
"note": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Mint self-serve sandbox credentials: a personal key, an OAuth client and a webhook signing key for a new tenant
The sandbox issues its own credentials: no account, no form. One call creates a tenant with a personal API key, an OAuth client (id and secret for POST /oauth/token) and a webhook signing key, all carrying every scope and all expiring together (see expires_at). The secrets are shown once. Rate-limited per caller address; a 429 carries Retry-After. Sandbox only: destinations are mock tenants, and the production service will not expose this route.
POST
/
sandbox
/
keys
Mint self-serve sandbox credentials: a personal key, an OAuth client and a webhook signing key for a new tenant
curl --request POST \
--url https://sandbox.composer.id/v1/sandbox/keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>"
}
'import requests
url = "https://sandbox.composer.id/v1/sandbox/keys"
payload = { "label": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: '<string>'})
};
fetch('https://sandbox.composer.id/v1/sandbox/keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"tenant": "<string>",
"api_key": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"webhook_signing_key": "<string>",
"scope": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"token_endpoint": "/v1/oauth/token",
"label": "<string>",
"note": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Body
application/json
Response
Created
A new sandbox tenant and every credential it needs. Shown once: the server keeps only hashes.