/v1/departments

Detailed list of all 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 NameDescriptionData Type
idUnique ID of the departmentString
nameName for departmentString
descriptionDescription for departmentString
ring_strategyWay in which calls will be received by agentsString
timeout_dest_typeAfter call has ringed on all agents and still no one answers then call is forwarded to this destination typeString
timeout_destinationUnique ID of the destination where call should be transferred when no agent from the department answers the callString
agent_countNumber of agents corresponding to a departmentString
calls_answeredTotal number of calls answered by departmentString
calls_missedTotal number of calls missed by departmentString
[
  {
    "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"
      }
    ]
  }
]
Language
Click Try It! to start a request and see the response here!