Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

Alternatives to fetch() and cookies for authentication?

Topic Labels: Scripting extentions
349 1
Showing results for 
Search instead for 
Did you mean: 

Per the documentation, it appears that we can’t send cookies in headers for fech() commands. I’m trying to access an API with a GET request in which the only authentication method I have available is a session cookie. Does anyone know of another way to be able to make a cookie/session-based get request from within an airtable script/automation?

1 Reply 1

Hi @Aaron_Hanson,

You should be able to set a cookie in your header on a fetch request from the airtable scripting app seeing as it’s just using your browser-native implementation of fetch. This is not the case with a scripting action that runs on an automation.

I think you will have to set up your own API function you can call from your automation to apply the cookie to the request headers.