Skip to main content

Scripting Block - 401 Error with API

  • December 10, 2020
  • 0 replies
  • 5 views

I am attempting to call a POST API outside of AirTable to kick off another process. I am passing an x-authorization header with the proper token, but am getting a Status Code 401. The request method is “OPTIONS” when I inspect the code and look at the network headers. I believe the issue has something to do with the User-Agent I’m passing (inherited from the browser) because it works fine when I send the exact same request from Postman. I’ve tried manually overriding the User-Agent to match what I am sending via postman, but still getting the 401 Status Code.

Any ideas??

Thanks!

Joe