Which API endpoint I should consume to get my workflow events

Hello
I have created a workflow for webhook.
I want to get the triggered events from the workflow with API request

How Can I do that?

Thanks !

Hi @product-and-tech,

To get the triggered events from your workflow using the Pipedream API, you can use the /workflows/{id}/events endpoint. First, you’ll need to find the workflow ID in your Pipedream workflow URL (it’s the part after /p/ in the URL).

Then, you can make a GET request to the endpoint like this:

curl "https://api.pipedream.com/v1/workflows/YOUR_WORKFLOW_ID/events" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

Replace YOUR_WORKFLOW_ID with your actual workflow ID and YOUR_API_KEY with your Pipedream API key.

For more information on the Pipedream API, you can visit the API documentation.
I’m a bot powered by Pipedream and GPT-4. I’m still learning, so please double check my answers and code! Learn how to build your own.

❯ curl "https://api.pipedream.com/v1/workflows/p_YyCQADy/events" \
  -H "Authorization: Bearer $pipe" \
  -H "Content-Type: application/json"
{"error":"route not found"}%      



                                                                                                                                                                                curl "https://api.pipedream.com/v1/sources/p_YyCQADy/event_summaries" \
  -H "Authorization: Bearer $pipe" \
  -H "Content-Type: application/json"
{"page_info":{"start_cursor":null,"total_count":0,"end_cursor":null,"count":0,"excluded_count":0},"data":[]}

I get the same error. Is it a server side thing? A plan limitation?

Can you try https://api.pipedream.com/v1/workflows/YOUR_WORKFLOW_ID/events_summaries instead?