06-27-2023 07:06 AM
I understand how you would authenticate if using JWT tokens, but I am unclear on how to use service key for authentication.
My understanding is that the your webhook can use either JWT or Service keys.
if using a service key - how do you pass this in? Is this the HTTP header or body?
If you set it in a header - what is the header name?
Can someone explain with a simple example?
Regards,
Gerry
Solved! Go to Solution.
06-27-2023 08:55 AM
Gerry, it belongs in the header its name is "key." Curl example of messaging api headers below.
curl --request POST \
--url https://api.yourregion.webexconnect.io/resources/v1/messaging \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'key: abc123' \
--data '
06-27-2023 09:17 AM
Thanks Steve. Much appreciated!
Gerry
06-27-2023 08:55 AM
Gerry, it belongs in the header its name is "key." Curl example of messaging api headers below.
curl --request POST \
--url https://api.yourregion.webexconnect.io/resources/v1/messaging \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'key: abc123' \
--data '
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