Skip to main content
Question

Cookies from Auth or custom field from auth for subsequent API requests


We are trying to create an integration with the following scenario. The auth request to our backend is working properly. The response to the auth request has two parts: 1) a cookie is set with the expectation that Zapier will send the cookies received from the auth request on all subsequent API requests; 2) the body contains a sessionid which can be included instead of the cookie on all subsequent requests in case cookie maintenance is not possible/desirable.

It doesn’t appear that Zap is sending the cookies in subsequent requests so the subsequent API calls fail due to lack of auth. How do we tell Zap to send the cookies received in the auth request on all subsequent API requests, or 2) how do we tell Zap to take the “sessionid” key/value from the response and put that on all subsequent api requests? thanks in advance.

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Troy Tessalone
Forum|alt.badge.img+14

Hi @Ken Anderson 

Are you building a Zap app on the Zapier Developer Platform or just using APIs in Zap steps?


Samual.B
  • New
  • 8 replies
  • May 31, 2024

This post has been edited by a moderator to remove personal information. Please remember that this is a public forum and to remove any sensitive information prior to posting.

hi there
If you need to include cookies in subsequent requests in Zapier, you can use the "Cookies" field in the "Custom Request" action. This field allows you to specify any cookies that should be included in the request headers.
Regards
Sam


JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2331 replies
  • June 27, 2024

Hi @Ken Anderson ,
 
We just wanted to see how everything is going with your Zap. Feel free to reach out if you need further assistance with your Zap. We're glad to address any concerns and assist you.
 
We're looking forward to your response.