Skip to main content
GET
List a debug attempt's history
The reference panel describes the current v3 operation. The notes below describe its v2 compatibility API. Follow the v3 request schema for current calls: v3 can move identifiers from the body or query into the URL. Keep the v2 method, path, and payload together when using the compatibility API.

v2 compatibility notes

GET /api/v2/workflows/listDebugAttemptHistory Returns the attempt and your earlier attempts of the same node, newest first, without their snapshots or outputs, a page at a time. The first page starts with the attempt itself. An earlier attempt whose source run carries a company your key cannot read is left out, as getDebugAttempt answers it 404, so a page may hold fewer attempts than limit while more remain. Use compareDebugAttempts to see two side by side.

Authentication

Personal key, External App credential or platform API key. Requires permission workflows:use, and the credential’s scopes must also reach workflows:read (a 403 naming it otherwise). Both are decided at the workflow’s home org unit. A debug attempt is personal, as in the Console: you debug drafts you created and read attempts you started. With a Personal key that is its owner; an External App or a platform key is its own creator (externalApp:<id>, apiKey:<id>). When draft debugging (workflow_debug_execution) is off for you (a Personal key’s owner) or for the deployment (an app or platform key), the route answers 409 conflict.

Query parameters

string
required
The debug attempt’s id.
integer
Attempts per page, 1-25 (default 25); a larger value is 400 too_big.
string
meta.nextCursor from the previous page, sent with the same id.

Responses

200 with data.items and data.retentionExpiresAt. While meta.hasMore is true, pass meta.nextCursor as cursor with the same id; the cursor starts d1. and is bound to this operation, id and the credential. The list never answers meta.partial.

Errors

Example

Authorizations

Authorization
string
header
required

An External App: the JWT it obtains from POST /oauth/token with OAuth2 client_credentials. Pass as Authorization: Bearer <jwt>. An app's static companion key also authenticates as the app, but is deprecated and is not protected by Idempotency-Key.

Path Parameters

attemptId
string
required

The debug attempt's id. Give it exactly once.

Minimum string length: 1

Query Parameters

limit
integer
default:25

Items per page, 1 to 25 (default 25); a larger value is a 400 too_big. A page may hold fewer items than limit while meta.hasMore is true; continue with meta.nextCursor.

Required range: 1 <= x <= 25
cursor
string

The previous page's meta.nextCursor; any other value is 400.

Minimum string length: 1

Response

The node's attempts

data
object
required
meta
object
required

A list page's continuation. While hasMore is true, nextCursor is a string: pass it as cursor for the next page. hasMore: false ends the list; with truncated: true, more exist past what this list reads, and no cursor reaches them.