Skip to navigation

Retrieve a workflow run

Returns one workflow run of the customer: its name, workflow, run key values, signal count and the credits of the whole run, with one page of its signals, oldest first. The page opens at the first signal of the run, at startsAt, or at a cursor from signals.olderCursor or signals.newerCursor. {customer} takes the customer’s cus_ ID, your externalId, or one of its aliases, and {run} the run’s runId.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Path parameters

customerstringRequired1-255 characters

The customer: its cus_ ID, your externalId, or one of its aliases.

runstringRequired1-255 characters

The run’s runId: 32 hexadecimal digits, in upper or lower case.

Headers

Paid-BetaenumRequired

This endpoint is in the workflows=v1 beta. Send this header to use it.

Allowed values:

Query parameters

cursorstringOptional

The signals.olderCursor or signals.newerCursor of a previous read of this run. Not with startsAt.

limitintegerOptional1-100Defaults to 100
How many signals the page holds, 1 to 100. Defaults to 100.
startsAtdatetimeOptional

Open the page at the first signal at or after this time, then newer: any ISO 8601 timestamp, such as the startsAt of a day of the workflow run credits list. After the newest signal, the page has no signal, and signals.olderCursor reads the signals before this time. Leave it and cursor out to open at the first signal of the run.

Response

200
objectenum

The type of object. Always workflowRun.

Allowed values:
asOfdatetime
When Paid read the run.
creditslist of objects

What the whole run spent at asOf, one entry per credit currency, by currency key. Two currencies are never added together. Empty when the run spent nothing.

firstSignalAtdatetime
When the first signal of the run occurred.
runIdstring

The run’s ID: 32 hexadecimal digits, unique inside the customer. Paid makes it from the values of the workflow’s run keys.

runNamestring

The run’s name: the newest non-blank value (a text, a number or a boolean) of the workflow’s runNameField, else its run noun and run ID.

runValueslist of objects

The value of each run key of the workflow, in the order of the workflow’s runKeys: what makes the run one run.

signalCountinteger>=1

The signals of the whole run at asOf.

signalsobject
One page of the signals of a run, with a cursor each way.
workflowstring1-255 characters

The wf_ ID of the run’s workflow.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error