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":

ACCESS_ID='yourlongbabelforceapiaccessidgoeshere'
TOKEN='yourlongbabelforceapitokengoeshere'

ENDPOINT="https://services.babelforce.com/api/v2/agents/423564686?agentSource=zendesk"

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