/v1/agent

Add new agent

Using the below method a new agent can be added

curl --request POST \
  --url https://api.servetel.in/v1/agent \
  --header 'accept: application/json' \
  --header 'authorization: Bearer yourtokenhere' \
  --header 'content-type: application/json' \
  --data '{}'

Request parameters

Variable NameDescriptionData Type
name*Name for the agentString
follow_me_number*10-digit mobile number of the agentString
user_product_idProduct ID on which agent is to be assignedInteger

Sample request

curl --request POST \
  --url https://api.servetel.in/v1/agent \
  --header 'accept: application/json' \
  --header 'authorization: Authorization' \
  --header 'content-type: application/json' \
  --data '{"name":"Test Name","follow_me_number":90000000000}'

Response variables

Variable NameDescriptionData Type
successRequest success statusBoolean
messageMessage corresponding success statusString
Language
Click Try It! to start a request and see the response here!