List of departments

Detailed list of all of the departments can be retrieved using the below method

curl --request GET \
  --url https://api.servetel.in/v1/departments \
  --header 'accept: application/json' \
  --header 'authorization: Bearer yourtokenhere'

Response variables

Variable Name

Description

Data Type

id

Unique ID of the department

String

name

Name for department

String

description

Description for department

String

ring_strategy

Way in which calls will be received by agents

String

timeout_dest_type

After call has ringed on all agents and still no one answers then call is forwarded to this destination type

String

timeout_destination

Unique ID of the destination where call should be transferred when no agent from the department answers the call

String

agent_count

Number of agents corresponding to a department

String

calls_answered

Total number of calls answered by department

String

calls_missed

Total number of calls missed by department

String

[
  {
    "id": "1",
    "name": "Test Department",
    "description": "Department for testing ",
    "ring_strategy": "simultaneously",
    "music_on_hold": null,
    "hold_playback": null,
    "failover_music": null,
    "agent_count": "2",
    "calls_answered": "0",
    "calls_missed": "0",
    "use_as_queue": false,
    "queue_timeout": "0",
    "sticky_agent": {
      "enabled": false,
      "time_period": null,
      "format": null
    },
    "timeout_dest_type": "extension",
    "timeout_destination": "0500000001",
    "timeout_dest_name": "Test",
    "agents": [
      {
        "id": "1",
        "name": "Test",
        "timeout": "30"
      },
      {
        "id": "2",
        "name": "Test",
        "timeout": "30"
      }
    ]
  }
]