v1

latestOpenAPI 3.1.02026-07-241370148.9 KB

Create a department

This API allows you to create a new department.

post/v1/department

Headers

Authorizationstring required

Request body

namestring required

Name of the department.

descriptionstring required

Description of the department.

ring_strategy'simultaneous' | 'order_by' | 'random' | 'round_robin' | 'longest_wait' required

Order in which the agents under this department will receive calls.

timeout_dest_type'extension' | 'ringgroup' | 'timegroup' | 'hangup' | 'ivr' | 'time_condition' | 'auto_attendant' | 'auto_attend' | 'voicemail' | 'custom_dialplan' | 'dynamic_dialplan' | 'agent' | 'api_dialplan'

Destination type where the call lands in case of timeout.

timeoutstring[]

Time in seconds for which the call tries to connect for each agent in this department.

destinationstring[]

Number of the agent in the department where the call should land. Example: extension||eid, eid: agents's eid eg: 050160000

Response

200

object required