List of agents

Detailed list of all agents can be retrieved in the below method

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

Response Variables

Variable Name

Description

Data Type

id

Unique ID of the agent

String

name

Name of the agent

String

follow_me_number

10-digit number of the agent

String

eid

Unique Extension ID of the agent

String

intercom

Unique intercom number of the agent

String

calls_answered

Total number of calls answered by agent

Integer

product_clicktocall

Status of Click to Call product on agent
[0: product not applied, 1: product applied]

Integer

team_id

Unique ID of agent's team

Integer

team_name

Name of the agent's team

String

custom_status

Agent block/ unblock status
[0: unblocked, 1: blocked]

Integer

[
  {
    "id": 1,
    "name": "Test",
    "follow_me_number": "+910000000000",
    "eid": "050000000",
    "intercom": "1001",
    "calls_answered": 0,
    "product_clicktocall": 1,
    "team_id": null,
    "team_name": null,
    "custom_status": 0,
    "timegroup_name": null,
    "timegroup_id": null,
    "failover_destination": null,
    "failover_destination_name": null,
    "departments": [
      {
        "name": "Test Department 1",
        "id": "1"
      },
      {
        "name": "Test department 2",
        "id": "2"
      }
    ]
  }
]