Ugrás a fő tartalomhoz

Kampány futtatása

GET/api/v1/campaign/{campaign_id}/runs

Get campaign workflow runs with pagination, filters and sorting

cURL példa

curl -X GET \
  'https://app.intracord.hu/api/v1/campaign/{campaign_id}/runs' \
  -H "X-API-Key: $INTRACORD_API_KEY"

Paraméterek

NévHelyTípusLeírás
campaign_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": {
        "additionalProperties": true,
        "type": "object"
      },
      "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"
    }
  },
  "type": "object",
  "required": [
    "runs",
    "total_count",
    "page",
    "limit",
    "total_pages"
  ],
  "title": "CampaignRunsResponse",
  "description": "Paginated response for campaign workflow runs"
}
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"
}