Question

GET from External API

  • 17 January 2023
  • 4 replies
  • 175 views

I am planning on bringing data from the LinkedIn Marketing API (Non Administrator) (https://learn.microsoft.com/en-us/linkedin/marketing/integrations/community-management/organizations/organization-lookup-api?view=li-lms-2022-11&tabs=curl) and want to write the data into Airtable.

I am non-technical but I have had this working in Postman but cannot get this set-up and working in Zapier using webhooks.

 

 

 


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

Userlevel 7
Badge +14

Hi @fergusga 

Good question.

Please post detailed screenshots with how your Zap step is configured in order for us to have enough context, thanks.

Make sure to obscure any API Key and PII.

What issue/error are you encountering?

 

I am using the Zapier Webhook with the event of ‘retrieve poll’. The error is:

Failed to fetch an entry from your webhook URL

Error while retrieving: The app returned "Invalid access token".

Userlevel 7
Badge +14

@fergusga 

My recommendation would be to consider hiring a Zapier Expert to help: https://zapier.com/experts

 

The error message means the Header for Authorization has an invalid access token.

OAuth: https://learn.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow?view=li-lms-2022-11&tabs=HTTPS1

 

 

Generally to handle OAuth, a custom Zap app would need to be built: https://zapier.com/platform

Otherwise, additional Zap steps would be needed to handle OAuth, which can be a much more advanced approach and use Zap Tasks.

 

Other things to be aware of:

 

Userlevel 7
Badge +12

@fergusga 

Generally speaking, Bearer tokens used for Oauth authentication expire. Postman has methods built in to handle getting these authorization tokens and redirecting the user has necessary during the Oauth flow. 

If you followed the docs here: https://learn.microsoft.com/en-us/linkedin/shared/authentication/postman-getting-started?view=li-lms-2022-11 then you went through a typical 3 legged authentication process which is not supported in a Zapier webhook trigger. For this type of authentication you will need to build a custom app at developer.zapier.com