Block/Unblock agent

Block Agent

Agents can be blocked using the below method

curl --request POST \
  --url https://api.servetel.in/v1/agent/id/block \
  --header 'accept: application/json' \
  --header 'authorization: Bearer yourtokenhere'

Path parameters

Variable nameDescriptionData Type
id*Unique eid (extension ID) of the agentString

Sample request

curl --request POST \
  --url https://api.servetel.in/v1/agent/050000000/block \
  --header 'accept: application/json' \
  --header 'authorization: Bearer yourtokenhere'

Response variables

Variable NameDescriptionData Type
successRequest success statusBoolean
messageMessage corresponding success statusString

🚧

Blocked agents will not receive calls

Unblock Agent

blocked agents can be unblocked using the below method.

curl --request POST \
  --url https://api.servetel.in/v1/agent/id/unblock \
  --header 'accept: application/json' \
  --header 'authorization: Bearer yourtokenhere'

Path parameters

Variable NameDescriptionData Type
id*Unique eid (extension ID) of the agentString

Sample request

curl --request POST \
  --url https://api.servetel.in/v1/agent/050000000/unblock \
  --header 'accept: application/json' \
  --header 'authorization: Bearer yourtokenhere'

Response variables

Variable NameDescriptionData Type
successRequest success statusBoolean
messageMessage corresponding success statusString