List workflow runs
const url = 'https://safe-api.safetyradar.com/v2/workflows/550e8400-e29b-41d4-a716-446655440001/runs?status=completed&page=1&limit=50';const options = { method: 'GET', headers: {'x-team': 'my-team-slug', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://safe-api.safetyradar.com/v2/workflows/550e8400-e29b-41d4-a716-446655440001/runs?status=completed&page=1&limit=50' \ --header 'Authorization: Bearer <token>' \ --header 'x-team: my-team-slug'List all runs for a specific workflow. Supports filtering by status.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Workflow ID (UUID)
Example
550e8400-e29b-41d4-a716-446655440001Workflow ID (UUID)
Query Parameters
Section titled “Query Parameters”Filter by run status (pending, running, completed, failed)
Example
completedFilter by run status (pending, running, completed, failed)
Page number, starting at 1 (default: 1)
Example
1Page number, starting at 1 (default: 1)
Results per page (default: 50, max: 1000). A larger value is refused with a 400 validation_error; it is not clamped.
Example
50Results per page (default: 50, max: 1000). A larger value is refused with a 400 validation_error; it is not clamped.
Header Parameters
Section titled “Header Parameters”Deprecated — accepted but ignored; the v2 API is org-scoped.
Example
my-team-slugDeprecated — accepted but ignored; the v2 API is org-scoped.
Responses
Section titled “Responses”List of workflow runs
object
object
object
object
object
object
Example
{ "data": [ { "flowRunType": "draft", "status": "pending" } ]}Invalid request: a parameter or the body failed validation (validation_error), or the body is not valid JSON (invalid_json)
object
Machine-readable error code
Human-readable error message
Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).
object
Example
{ "code": "validation_error", "message": "Request validation failed"}Unauthorized
object
Machine-readable error code
Human-readable error message
Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).
object
Example
{ "code": "validation_error", "message": "Request validation failed"}Workflow not found
object
Machine-readable error code
Human-readable error message
Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).
object
Example
{ "code": "validation_error", "message": "Request validation failed"}Rate limit exceeded (rate_limit_exceeded)
object
Machine-readable error code
Human-readable error message
Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).
object
Example
{ "code": "validation_error", "message": "Request validation failed"}Unexpected server error (internal_error)
object
Machine-readable error code
Human-readable error message
Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).
object
Example
{ "code": "validation_error", "message": "Request validation failed"}
