Skip to main content
Docs

Search guides and API endpoints, for example “Idempotency-Key” or “submit job”.

    API reference

    Events

    List job / workflow run completion events

    GET/api/v1/events

    API key or token

    Parameters

    Query parameters
    NameTypeDescription
    afterstring

    Limits: max length 41

    kindstring

    One of: "job", "workflow_run"

    subject_idstring

    Limits: min length 1, max length 100

    limitinteger

    Default: 50Limits: ≥ 1, ≤ 100

    waitnumber

    Default: 0Limits: ≥ 0, ≤ 25

    Example request

    curl "https://api.cognichem.com/api/v1/events" \
      -H "X-Api-Key: $COGNICHEM_API_KEY"

    Responses

    Successful Response · application/json · RunEventsResponse

    Response fields
    FieldTypeDescription
    events[]requiredRunEvent[]
    events.cursorrequiredstring
    events.event_idrequiredinteger
    events.kindrequiredstring

    One of: "job", "workflow_run"

    events.occurred_atrequiredstring (date-time)
    events.statusrequiredstring
    events.subject_idrequiredstring
    events.workflow_run_idstring | null
    next_cursorstring | null
    Example 200 response
    {
      "events": [
        {
          "cursor": "1121.42",
          "event_id": 42,
          "kind": "job",
          "occurred_at": "2026-09-27T12:00:00Z",
          "status": "completed",
          "subject_id": "job-01J..."
        }
      ],
      "next_cursor": "1121.42"
    }