Redeem an API key invitation
If you have an invitation code, you can redeem it to create an Organization and an API key associated with it.
POST
/v1/api-keys/invites/{code}/redeem
curl \
--request POST 'https://api.sensay.io/v1/api-keys/invites/{code}/redeem' \
--header "Content-Type: application/json" \
--header "X-API-Version: 2025-03-25" \
--data '{"organizationName":"string","name":"string","email":"hello@example.com"}'
Request examples
# Headers
X-API-Version: 2025-03-25
# Payload
{
"organizationName": "string",
"name": "string",
"email": "hello@example.com"
}
Response examples (200)
{
"apiKey": "1234567890",
"success": true,
"validUntil": "2021-01-01",
"organizationID": "1234567890"
}
Response examples (400)
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b"
}
Response examples (401)
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b"
}
Response examples (404)
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab"
}
Response examples (415)
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b"
}
Response examples (500)
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b",
"inner_exception": {
"name": "Server overheated",
"cause": "Request too complicated",
"stack": "Error: Server overheated due to an unexpected situation\n at Object.eval (eval at <anonymous>...",
"message": "The server overheated due to an unexpected situation"
}
}