API

Pagination

Wie Everyn-List-Endpoints Seiten, Cursor und gefilterte Ergebnismengen zurückgeben.

Everyn-List-Endpoints verwenden Cursor Pagination. Eine Response enthält data und optional nextCursor; Clients lesen weiter, bis nextCursor null ist oder fehlt.

Pagination-Regeln

List-Response-Form:

{
  "data": [],
  "nextCursor": null
}

Einfacher Loop:

curl -sS "$EVERYN_BASE_URL/v1/runs?limit=50" \
  -H "Authorization: Bearer $EVERYN_API_KEY"

curl -sS "$EVERYN_BASE_URL/v1/runs?limit=50&cursor=cursor_..." \
  -H "Authorization: Bearer $EVERYN_API_KEY"

Häufig paginierte Bereiche:

BereichFilter
GET /v1/dataset-uploadslimit, cursor
GET /v1/datasetslimit, cursor
GET /v1/datasets/{datasetId}/rowslimit, cursor
GET /v1/job-specslimit, cursor
GET /v1/job-specs/{jobSpecId}/versionslimit, cursor
GET /v1/runslimit, cursor, state, datasetId, jobSpecId, createdAfter, createdBefore
GET /v1/runs/{runId}/rowslimit, cursor, state
GET /v1/runs/{runId}/eventslimit, cursor, type
GET /v1/runs/{runId}/outputslimit, cursor, datasetRowId
GET /v1/runs/{runId}/failureslimit, cursor, retryable
GET /v1/runs/{runId}/resolved-resultslimit, cursor, resultState
GET /v1/runs/{runId}/exportslimit, cursor, status, type, format
GET /v1/exportslimit, cursor, runId, status, type, format
GET /v1/webhook-endpointslimit, cursor
GET /v1/webhook-deliverieslimit, cursor, webhookEndpointId, status, eventType
GET /v1/alert-ruleslimit, cursor, enabled, eventType
GET /v1/alert-deliverieslimit, cursor, alertRuleId, status
GET /v1/organizations/{organizationId}/audit-eventslimit, cursor, type, actorType, apiKeyId

Ungültige Cursor liefern ein strukturiertes Fehler-Envelope. Nutze API-Fehler und die Endpoint-spezifische generierte Referenz, wenn ein List-Request fehlschlägt.