Why am I Receiving a "Route Not Found" Error When Trying to Access API Endpoint for Workflow Events?

This topic was automatically generated from Slack. You can find the original thread here.

i have tried using the following API endpoint for getting workflow events

https://api.pipedream.com/v1/workspaces/o_b14123/workflows/p_o7ClmpR/events

But i keep getting this error. I have already confirmed the workflow id and that is correct

{“error”:“route not found”}

You should visit Pricing - Pipedream for the latest pricing, but I’ll do my best to answer. It looks like you’re trying to use the Pipedream API to get workflow events but are encountering a “route not found” error. This typically means that the endpoint you’re trying to access does not exist or is incorrect. Based on the Pipedream documentation, the correct endpoint to list the most recent 100 workflow errors for a given workflow is: https://api.pipedream.com/v1/workflows/{workflow_id}/$errors/event_summaries?expand=event Here’s an example of how to use it: bash curl 'https://api.pipedream.com/v1/workflows/p_abc123/$errors/event_summaries?expand=event' \ -H 'Authorization: Bearer <api_key>' Make sure to replace {workflow_id} with your actual workflow ID and <api_key> with your actual API key. If you want to list workflow events instead of errors, you might be using an incorrect endpoint. Please double-check the API documentation or provide more details about what you’re trying to achieve so I can assist you better. If you continue to face issues, please visit Support - Pipedream for more support options.

I don’t believe workflow events are available in the REST API yet, but source events are