How to enable an agent using the API

An agent must be "enabled" in order to receive inbound calls. This can be done in the interface or in apps using the API. The following script shows how to set enabled to "true":



echo "query a particular with Zendesk agent ID and source=Zendesk"

curl $ENDPOINT \
-H "X-Auth-Access-Id: $ACCESS_ID" \
-H "X-Auth-Access-Token: $TOKEN" \
-X PUT \
-d '{enabled: true}'

Have more questions? Submit a request