Is there an API endpoint to query thread/run logs programmatically?

I’m running an email-triggered workflow and occasionally hits fail (usually 429 rate limits from the model provider). I can see the full run details in the debugger — thread status, per-block success/failure, error codes — and I’d like to build a simple external monitor that checks for failed runs so I can get notified and retry.

Specifically, I’m looking for either:

  1. A way to fetch a specific thread’s log by thread ID (I can see the threadId in the run data)
  2. A way to list recent threads for an app filtered by time range or error status

I’d be calling this from Power Automate (HTTP action), so a standard REST endpoint with an API key or token auth would be ideal.

Is any of this exposed in the current API, or planned? If not, is there a recommended approach for monitoring runs externally?

For context: the workaround I’m considering is polling Airtable (where the workflow writes on success) to detect missing records — but querying the run logs directly would be cleaner since I’d get the actual error detail.

Hi @kevspiers,

Thanks for the post!

This is not available at the moment, but thanks for sharing the idea! I’ve updated the post category to Feature Requests.

1 Like