Organizations
Create sub organization
Creates sub organization under the main organization associated with the API key
POST
/
organization
/
sub-organization
Copy
curl --request POST \
--url https://api.callers.ai/api/organization/sub-organization \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"limits": {
"incomingCalls": 1,
"outgoingContacts": 1
},
"retryAttemptsMaxValue": 5.5,
"permissions": [
"permission_enable_voip_and_phones"
],
"webhooks": [
{
"url": "<string>",
"events": [
"POST_PROCESSING_FINISHED:INTERESTED",
"POST_PROCESSING_FINISHED:NOT_INTERESTED",
"POST_PROCESSING_FINISHED:CALL_ME_LATER",
"POST_PROCESSING_FINISHED:WRONG_NUMBER",
"POST_PROCESSING_FINISHED:DO_NOT_CALL"
]
}
]
}'
Copy
{
"id": "<string>"
}
Authorizations
Headers
Optional sub organization ID. Must belong to your main organization API key.
Body
application/json
Response
201
application/json
Sub organization Created successfully.
The response is of type object
.
Copy
curl --request POST \
--url https://api.callers.ai/api/organization/sub-organization \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"limits": {
"incomingCalls": 1,
"outgoingContacts": 1
},
"retryAttemptsMaxValue": 5.5,
"permissions": [
"permission_enable_voip_and_phones"
],
"webhooks": [
{
"url": "<string>",
"events": [
"POST_PROCESSING_FINISHED:INTERESTED",
"POST_PROCESSING_FINISHED:NOT_INTERESTED",
"POST_PROCESSING_FINISHED:CALL_ME_LATER",
"POST_PROCESSING_FINISHED:WRONG_NUMBER",
"POST_PROCESSING_FINISHED:DO_NOT_CALL"
]
}
]
}'
Copy
{
"id": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.