I have a simple workflow that includes the following details:
In this workflow, I tried to call the Mindee DocTI API using Webhook and HTTP Request.
In the webhook call, I pass the FileId as a parameter to Box’s file download operation. Then, I attempt to convert the file to base64 format and send it to the HTTP Request node (Invoke Custom API). From this, I retrieve the jobId and use it as a header in another HTTP Request (Get Custom API Result). I have configured the Wait node with an interval set to one minute to obtain the actual response from the Get Custom API Result.
If I call the Webhook URL in Postman or a browser, it will remain loading until the flow is complete. Is there a way to get an API response asynchronously, which means the workflow will complete, and later we can retrieve the result using the execution ID?
I want to obtain an execution ID or response without freezing the browser or Postman.
Hello @Usha_G, since you are using the “Respond to Webhook” node, you could place it after the webhook node and respond with the execution ID there. Then, you could use the n8n node to get the execution by ID.
Let me know if this helped solve the issue for you.
In this workflow, can we obtain the API response from the last node (Get Custom API Result) when triggering the webhook call from Postman after the workflow execution has completed?