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 name

Description

Data Type

id*

Unique eid (extension ID) of the agent

String

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 Name

Description

Data Type

success

Request success status

Boolean

message

Message corresponding success status

String

🚧

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 Name

Description

Data Type

id*

Unique eid (extension ID) of the agent

String

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 Name

Description

Data Type

success

Request success status

Boolean

message

Message corresponding success status

String