cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
246
Views
0
Helpful
2
Replies

WebEx Calling API answer, requires optional "endpointId" parameter

thomc
Level 1
Level 1

Hey,

I try to answer an existing call on webex calling over the API out of WebEx Contact Center with Agent credentials.
(https://developer.webex.com/docs/api/v1/call-controls/answer)

The documentation says, the "endpointId" parameter is optional. The issue I'm facing is, the request returns with an error 400 (No Endpoint for call) if I don't provide an endpointId as a parameter.

I'm sure, this worked in the past. Are there any changes, that are not documented yet?

Second issue is to gather the Endpoint ID from Webex (Calling)
(https://developer.webex.com/docs/api/v1/user-call-settings/get-preferred-answer-endpoint)
I'm not allowed to access this with my WxCC Agent token.
Is there a workaround for this?
Is it possible to assign the scope (spark:telephony_config_read) for the wxcc agent?
This would solve the issue explained above.

Thank's and have a good day

2 Replies 2

thomc
Level 1
Level 1

Sorry for the delay,
In the end it was just an issue with our test tenant. The integration system worked and we couldn't find the issue on our test tenant.
Now it works without an endpoint parameter and the call is answered on the "default" device.
Thank you for your help
Regards
Christian

sandiban
Cisco Employee
Cisco Employee

Hi @thomc,

Thanks for checking over the Community Forum!
For the first one, you're getting a 404 error message for the /answer API while you're not providing the "enpointId" parameter in your request payload, is it possible to share an error trackingId please.
That'd help here to investigate further.
I'm not very sure if that request Body parameter has been made as mandatory, because I don't see anything on the API changelog recently - https://developer.webex.com/docs/api/changelog
But if so, at least there is a need of API documentation update then. 
And for this one, kindly share the details over devsupport@webex.com and it'd raise a Support case to our queue. That way, it'd be better to keep track of the progress and communicate further.

And regarding the second request, Yes for the API - /get-preferred-answer-endpoint - at least you should have the "spark:telephony_config_read" scope in your Token and this API is not configured to work with the WxCC agent token.
What you can do is, you can create a Webex Integration from here - https://developer.webex.com/my-apps/new and in the scope list, you can have the Contact Center scope/s as well as the "spark:telephony_config_read" scope.
And then use that Integration credentials to generate an Access Token following the documentation here - https://developer.webex.com/docs/integrations
Or, you can check this Blog post as well to generate an Integration Access token in just few minutes from POSTMAN - https://developer.webex.com/blog/generating-an-oauth-token-pair-using-a-webex-integration
Now use that Access Token for the API request and it should work! Let us know if you have any further queries.

Regards!
Sandip