Skip to main content
POST
/
v1
/
clusters
/
triggers
/
{trigger_id}
/
history
Get Trigger Execution History
curl --request POST \
  --url https://api.mixpeek.com/v1/clusters/triggers/{trigger_id}/history \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'X-Namespace: <x-namespace>' \
  --data '
{
  "offset": 0,
  "limit": 50,
  "status_filter": "<string>"
}
'
{
  "trigger_id": "<string>",
  "executions": [
    {
      "job_id": "<string>",
      "triggered_at": "2023-11-07T05:31:56Z",
      "status": "<string>",
      "execution_time_ms": 123,
      "error": "<string>",
      "num_clusters": 123,
      "num_documents": 123
    }
  ],
  "total": 123,
  "offset": 123,
  "limit": 123
}

Headers

Authorization
string
required

REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.

X-Namespace
string
required

REQUIRED: Namespace identifier for scoping this request. All resources (collections, buckets, taxonomies, etc.) are scoped to a namespace. You can provide either the namespace name or namespace ID. Format: ns_xxxxxxxxxxxxx (ID) or a custom name like 'my-namespace'

Path Parameters

trigger_id
string
required

Trigger ID

Body

application/json

Request for trigger execution history.

offset
integer
default:0

Pagination offset

Required range: x >= 0
limit
integer
default:50

Results per page

Required range: 1 <= x <= 1000
status_filter
string | null

Filter by execution status

Response

Successful Response

Response for trigger execution history.

trigger_id
string
required

Trigger ID

executions
TriggerExecutionHistoryItem · object[]
required

Execution history

total
integer
required

Total executions

offset
integer
required

Current offset

limit
integer
required

Current limit