For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
  • Runtype API
      • GETList flows
      • POSTCreate flow
      • GETGet flow details
      • PUTUpdate flow
      • DELDelete flow
      • GETList flow step results
      • POSTPublish flow
      • POSTRun flow on records of a type
      • GETExport flow for runtime
Dashboard
LogoLogo
Runtype APIFlows

List flow step results

GET
/v1/flows/:id/step-results
GET
/v1/flows/:id/step-results
$curl https://api.runtype.com/v1/flows/id/step-results \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json"
1{
2 "data": [
3 {
4 "id": "a3f1c9d2-4b7e-4f8a-9d3e-2b5f6c7d8e9f",
5 "userId": "user_7890abcd1234",
6 "organizationId": "org_4567efgh8901",
7 "batchExecutionId": "batch_20240615_001",
8 "executionSessionId": "session_20240615_abc123",
9 "flowId": "flow_1234abcd5678",
10 "flowVersionId": "version_2.1.0",
11 "recordId": "record_9876wxyz4321",
12 "recordName": "Customer Onboarding - John Doe",
13 "stepId": "step_001",
14 "stepType": "api-call",
15 "stepName": "Validate Customer Data",
16 "order": 1,
17 "status": "completed",
18 "startedAt": "2024-06-15T10:15:30Z",
19 "completedAt": "2024-06-15T10:15:45Z",
20 "durationMs": 15000,
21 "outputPreview": "{\"valid\":true,\"errors\":[]}",
22 "createdAt": "2024-06-15T10:15:30Z",
23 "recordMetadata": null,
24 "stepConfig": null,
25 "inputVariables": null,
26 "resolvedPrompt": null,
27 "modelUsed": null,
28 "promptTokens": null,
29 "completionTokens": null,
30 "totalTokens": null,
31 "estimatedCost": null,
32 "errorMessage": null,
33 "retryCount": 0
34 }
35 ],
36 "pagination": {
37 "limit": 25,
38 "offset": 0,
39 "returned": 1,
40 "hasMore": false
41 }
42}
Get unified step execution results for a flow with filtering and offset pagination.
Was this page helpful?
Previous

Publish flow

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired

Query parameters

recordIdstringOptional
batchIdstringOptional
statusstringOptional
stepIdstringOptional
fromstringOptional
tostringOptional
sortBystringOptional
sortOrderenumOptional
Allowed values:
limitstringOptional
offsetstringOptional

Response

Step results
datalist of objects
paginationobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error