POST
/
organization
/
sub-organization
curl --request POST \
  --url https://api.voxia.ai/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"
      ]
    }
  ]
}'
{
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

Headers

x-sub-organization-id
string

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.