This page was last edited on October 31, 2023, at 13:26.
Comments or questions about this documentation? Contact us for support!
Now that your agent is ready to receive calls, you can answer one by sending a request that will look a lot like this. Note that the string at the end of the URL is the ID associated with the call resource:
curl -X POST -H "Content-Type: application/json" -d '{"operationName":"Answer"}' -u ksippo: http://000.111.222.333/api/v2/me/calls/0071023821aec011
If your request is successful, you will receive a status code of 0:
{"statusCode":0}
Web Services operations are asynchronous. When a request returns "statusCode":0, this doesn't indicate a successful change of state — only that the request was successfully sent to T-Server.
Now that you have learned some of the basic features of the Web Services API, you may want take a look at the rest of the API, as it will let you do just about anything you might want to with the Genesys software.