Innocalls
AdminExtensions

Create Extension/Agent

Create new extension/agent for call handling

Details

DescriptionThe "Create Extension" Endpoint enables you to establish a new extension/agent.
HTTP MethodPOST
Endpoint URLhttps://platform.innocalls.com/api/v1/api-gateway/extesnion
AuthorizationTo access the API endpoints, you need to authenticate using API keys and API secrets. The API supports Basic Authentication for authorization. You need to include your API ID as the username and your API secret as the password in the HTTP header when making requests. Replace API_ID with your API ID and API_SECRET with your API secret, separated by a colon (:). The value after Basic is the Base64 encoding of your API key and API secret concatenated with a colon.
Rate Limit3 requests per second

Request Parameters

ParameterDescriptionConstrains
emailExtension's Email

Required
Unique
Valid Email

nameExtension's name

Required
Follow this pattern:^[a-zA-Z0-9\s,.?!;'-]+$

extExtension's number

Required
Unique
The number of digits equivalent to tenant ext length

pinExtension's pin

Required
4 numeric digits

inboundEnable inbound for the current extension or notRequired
Allowed values 0 Or 1
outboundEnable outbound for the current extension or notRequired
Allowed values 0 Or 1
voicemailEnable voicemail for the current extension or notRequired
Allowed values 0 Or 1
canListenToRecords

Detect if the agent can listen to records in our dashboard or not

Optional
Boolean value

Request Example


curl 'https://platform.innocalls.com/api/v1/api-gateway/extension' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <base64-encoded string  apiId:apiSecret>' \
--data-raw '{
    "email": "agentEmail@innocalls.com",
    "name": "AgentName",
    "ext": 0,
    "inbound": 0,
    "outbound": 0,
    "voicemail": 0,
    "pin": "1234",
    "canListenToRecords":false
}'

Success Response Example

A successful response is indicated by the HTTP status code 202.

Possible Errors

Error CodeDescription
401 UnauthorizedInvalid Credential
403 ForbiddenNot Enough Permissions to access the resource
400 BadRequest

This error occurs due to malformed or invalid request parameters

429 Too Many RequestsThis occurs when requests exceed the rate limit
409 ConflictThe email or extension number already exists

On this page