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

Service Key - example?

Gerry O'Rourke
Spotlight
Spotlight

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

 

1 Accepted Solution

stgreenb
Cisco Employee
Cisco Employee

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 '

View solution in original post

2 Replies 2

Gerry O'Rourke
Spotlight
Spotlight

Thanks Steve. Much appreciated!

Gerry

stgreenb
Cisco Employee
Cisco Employee

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 '