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.
Path parameters
-
code
string Required The code of the invite you want to redeem.
Body
-
organizationName
string Required The name of the organization you want to create.
-
name
string Required The name of the point of contact for the API subscription.
-
email
string(email) Required The email of the point of contact for the API subscription.
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" \
--data '{"organizationName":"string","name":"string","email":"hello@example.com"}'
Request examples
{
"organizationName": "string",
"name": "string",
"email": "hello@example.com"
}
Response examples (200)
{
"apiKey": "1234567890",
"success": true,
"validUntil": "2021-01-01",
"organizationID": "1234567890"
}
Response examples (400)
{
"success": true,
"error": "string",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b",
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab"
}
Response examples (401)
{
"success": true,
"error": "string",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b",
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab"
}
Response examples (404)
{
"success": true,
"error": "string",
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab"
}
Response examples (415)
{
"success": true,
"error": "string",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b",
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab"
}
Response examples (500)
{
"success": true,
"error": "string",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b",
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"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"
}
}