Skip to main content
Best answer

Call a Zap programmatically


Is it possible to invoke a zap via a rest endpoint? I want to create a Zap that looks up a record in Salesforce but have it invoked from a lambda function that I’ll create.

From what I can tell Zapier doesn't have API endpoints for consumers, only partners, but maybe I’m wrong?

Best answer by ikbelkirasan

@acriblet - You could check if the request is authenticated by adding a filter step after the webhook trigger step and check for a secret to validate the request and only continue if it’s valid. Another option would be to handle this webhook + filter combination with a custom Zapier app.

View original
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.

4 replies

andywingrave
Forum|alt.badge.img+9
  • Zapier Expert
  • 854 replies
  • May 8, 2020

Hey! Yep - This is possible - Take a look at the Webhooks options here:

 

https://zapier.com/apps/webhook/integrations

 

 


  • Author
  • Beginner
  • 5 replies
  • May 8, 2020

Thanks @Saastronomical I did notice the webhooks functionality after posting my question but I don’t think it’ll work for my usecase. I’m trying to front the Salesforce app and will be passing PII data so having an endpoint that’s open to the world and unauthenticated wouldn’t be right. 

Are webhooks the only way? I.e. is there any authenticated manner to invoke a zap programmatically? Thanks again.


ikbelkirasan
Forum|alt.badge.img+12
  • Zapier Expert
  • 555 replies
  • Answer
  • May 8, 2020

@acriblet - You could check if the request is authenticated by adding a filter step after the webhook trigger step and check for a secret to validate the request and only continue if it’s valid. Another option would be to handle this webhook + filter combination with a custom Zapier app.


  • Author
  • Beginner
  • 5 replies
  • May 8, 2020

That’s an interesting idea @ikbelkirasan, applying the filter step after the webhook. Let me give that a try now and see….thank you!