Ugrás a fő tartalomhoz

Lista fut

GET/api/v1/workflow/{workflow_id}/runs

Get 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évHelyTípusLeírás
workflow_idkötelezőpathinteger
pagequeryintegerPage number (starts from 1)
limitqueryintegerNumber of items per page
filtersqueryobjectJSON-encoded filter criteria
sort_byqueryobjectField to sort by (e.g., 'duration', 'created_at')
sort_orderqueryobjectSort order ('asc' or 'desc')
authorizationheaderobject
X-API-Keyheaderobject

Válaszok

200Successful Response
application/json
Sé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 found
422Validation Error
application/json
Séma megtekintése
{
  "properties": {
    "detail": {
      "items": {
        "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
    }
  },
  "type": "object",
  "title": "HTTPValidationError"
}