Lista fut
GET
/api/v1/workflow/{workflow_id}/runsGet workflow runs with optional filtering and sorting. Filters should be provided as a JSON-encoded array of filter criteria. Example: [{"attribute": "dateRange", "value": {"from": "2024-01-01", "to": "2024-01-31"}}]
cURL példa
curl -X GET \
'https://app.intracord.hu/api/v1/workflow/{workflow_id}/runs' \
-H "X-API-Key: $INTRACORD_API_KEY"Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workflow_idkötelező | path | integer | — |
page | query | integer | Page number (starts from 1) |
limit | query | integer | Number of items per page |
filters | query | object | JSON-encoded filter criteria |
sort_by | query | object | Field to sort by (e.g., 'duration', 'created_at') |
sort_order | query | object | Sort order ('asc' or 'desc') |
authorization | header | object | — |
X-API-Key | header | object | — |
Válaszok
200Successful Responseapplication/jsonSéma megtekintése
{
"properties": {
"runs": {
"items": {
"$ref": "#/components/schemas/WorkflowRunResponseSchema"
},
"type": "array",
"title": "Runs"
},
"total_count": {
"type": "integer",
"title": "Total Count"
},
"page": {
"type": "integer",
"title": "Page"
},
"limit": {
"type": "integer",
"title": "Limit"
},
"total_pages": {
"type": "integer",
"title": "Total Pages"
},
"applied_filters": {
"anyOf": [
{
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Applied Filters"
}
},
"type": "object",
"required": [
"runs",
"total_count",
"page",
"limit",
"total_pages"
],
"title": "WorkflowRunsResponse"
}404Not found422Validation Errorapplication/jsonSéma megtekintése
{
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
}