Before you start
Before you start, make sure you have:- API key: Create a workspace API key with the
WORKFLOW_APIscope under Settings > Workspace > Products > API, or a personal API key after your admin allows Workflow Read API and the key includes that scope. That read scope also covers list, get, and paginated runs. This page is the flattened export. Workflow Write API and Workflow Deletion API are documented in the Workflow API Overview. See Personal API keys. - Workflow access: The API key must belong to a workflow owner or editor. Workspace administrators can also access workflows without a workflow share. A workflow shared with the User role does not grant access to this endpoint, including for workspace administrators.
Base URL
- Langdock Cloud
- Dedicated Deployment
Endpoint
null node fields. For paginated runs with node payloads and filters such as runMode, use List workflow runs.
Authentication
Send your API key as a Bearer token:cURL
https://api.langdock.com with your deployment base URL.
Parameters
Include
Z or an explicit UTC offset in full timestamps. A timestamp without a timezone is interpreted in the server’s local timezone. Both date values are required. The API does not apply a default date range. You receive every node execution for a matching run, even if the node execution falls outside the date range.
Response
You receive adata array with flattened workflow run and node execution rows:
Success
Response fields
The
input and output fields are null for execution data older than 30 days. All five payload fields are null when the endpoint cannot establish access to the node’s data. This can happen when your workflow access does not include an action or agent node used by the execution. The API sets data_redacted to true in that case.
For payload values larger than 16,000 bytes, the API returns a truncation marker. The marker contains an _truncated object with originalBytes, maxBytes, and message fields.
The response does not include the identity of the person or group that triggered a run.
Limits and retention
- Each request can export up to 10,000 workflow runs.
- Input and output data is retained for 30 days.
- Payload data in one response is limited to 8,000,000 bytes.
400 Bad Request with the WORKFLOW_RUN_EXPORT_LIMIT_EXCEEDED code. If the payload data exceeds 8,000,000 bytes, it returns 400 Bad Request with the WORKFLOW_RUN_EXPORT_TOO_LARGE code. Use a smaller date range to resolve either error.
Rate limits
The endpoint allows 500 requests per minute for each workspace and API key. Requests above the limit return429 Too Many Requests.
Error handling
Error
{"message":"Invalid request","errors":[...]} without a code field. An invalid date or a to value earlier than from returns code: "BAD_REQUEST".
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, see API Key Best Practices.