02-04-2026 09:16 AM
Hi,
I have created an integration for my application/testing. I have also generated Access Token using my registered Client Id and Client Secret. I have given following scope to my integration - 'cjp:config cjp:config_write cjp:config_read cjp:user spark:calls_read spark:people_read'
I am able to successfully execute Login (POST/v1/agents/login), Logout (PUT/v1/agents/logout) and state change (PUT/v1/agents/session/state) and getting 202 response.
To receive asynchronous events for the above action I am trying to execute Register Subscription (POST/v1/subscriptions) for the following events "agent:login", "agent:logout", "agent:stateChange", "task:created", "task:updated", "task:ended"
But for Register Subscription (POST/v1/subscriptions), I am getting HTTP 403 error with below details -
curl -L --request POST \
--url https://api.wxcc-us1.cisco.com/v1/subscriptions \
--header 'Authorization: Bearer NzNlM223edfrTk3NC00MTZhLTllOTItNGJkZWNlNjM0MGIwNzgzMTZjMWYtYjBm_P0A1_1a994be4-37cd-4286-b505-aaaaaaaaaaa' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"name": "aaaa",
"eventTypes": [ "agent:login" ],
"destinationUrl": "https://3a66-106-219-161-191.ngrok-free.app/MARSWebexCCCRMConnectorWS/webhook",
"secret": "12345"
}'
Can you please tell me the reason for 403 response?
Thanks,
Umesh
02-05-2026 05:58 PM
A 403 would generally mean that the user doesn't have the required role, or the token doesn't have the required scopes. If you've confirmed that the user who generated the token is a Contact Center admin then It'd probably be best to open a support case so you can share the email of the user making the request and the trackingId(should be in the response headers) for the request so it can be looked into further.
02-06-2026 07:33 AM
Hi,
I have configured following scope for my integration - 'cjp:config cjp:config_write cjp:config_read cjp:user spark:calls_read spark:people_read'
to receive the event for the "agent:login", "agent:logout", "agent:stateChange", "task:created", "task:updated", "task:ended".
I am able to generate token through agent login and using that token to execute subscription api.
Am I doing anything wrong?
Thanks,
Umesh
02-06-2026 08:09 AM
What you've described appears to be correct so there may be something else going on. Since this is a public forum don't share any sensitive data here. You can open a support case through https://developer.webex.com/explore/support with your account info so a deeper dive can be done.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide