cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Conversational AI - External API Service Cookie Problem

former_member731702
Participant
0 Kudos

Hello there,

I would like to store the cookie data from external API connection in a variable, for further use. I cannot access those properties from either the header or the body.

Is there a possible way to store cookies comes from the API?

View Entire Topic
JonasB
Contributor

Hi Bekirhan,

the cookie is typically returned in the "set-cookie" header. By enabling the "Include headers" checkbox in the "Response" tab of an API service configuration you can make the headers available in the {{api_service_response}} variable. Be aware that the "set-cookie" header might contain an array when multiple cookies are returned, so you could access it for example like this:

{{api_service_response.default.headers.set-cookie.0}}

Regards
Jonas