Skip to main content

Good evening community.

I am trying to pass the authorization token variable (of type API KEY) for the trigger in the header, I use Bearer {{bundle.authData.accessToken}} and it gives me error 401 but if I put the code in hard if it works, so which I deduce is the way I send the information. Someone can help me

 

 

Hi @Javier Sanchez - Can you share the code snippet that worked for you?


 

Good afternoon greetings
I put the token code in hard

 


@Javier Sanchez - In that case, are you sure the API key field name is accessToken? I would start by verifying that. Can you show us a screenshot of the authentication fields setup? Thanks!


this is the authentication, I send the googleUID and it returns a token

 

 

i have tried using also Bearer {{bundle.authData.token}}

@Javier Sanchez - In your case, you should use Session Authentication instead of API authentication.

Docs: https://platform.zapier.com/docs/session#authentication--session-auth