Question

How to Abstract multiple Sequential and ASync APIs (Each api need 5-6 minutes)

  • 15 October 2023
  • 0 replies
  • 44 views

I am trying to create a zap to abstract multiple sequential api calls.

The API Flow -

  1. Trigger External API-1, Wait for it to complete (might take 5 minutes), API-1 finishes
  2. Trigger the API-2 (with some data from API-1 response), wait for API-2 to finish
  3. Trigger the API-3 (with some data from API-2 response), wait for API-3 to finish
  4. Trigger the API-4 (with some data from API-3 response), wait for API-4 to finish
  5. We now have final response, and should return the response.

Question:

  • I know about webhook and polling can help me for waiting for ONE api.
  • But it looks like I can handle only one waiting operation, and cannot do it for the multiple such waiting operations
  • Is it feasible to do inside zapier (when I am trying to create the zap using CLI), as a single zap.

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