1. Manual
  2. Reference
  3. Endpoints
API v1 Last updated 26 Nov 2026

Reference · 03 · all methods

Eight methods, one contract.

The control plane is a small, boring JSON API. Ingest is the only method your producers need; everything else is for operators: listing deliveries, reading attempt logs, replaying a failed envelope and maintaining endpoints.

Base https://gateway.gitiox.com/v1 8 methods JSON in · JSON out API v1 · edition 1.8

00Conventions

Five rules apply to every method below. They are not repeated on the individual pages.

Authentication

All requests carry a bearer token. Tokens are created per environment and carry explicit scopes; a request without the required scope fails with 403 insufficient_scope. Tokens beginning with gx_test_ are sandbox-only, tokens beginning with gx_live_ operate on production data, and they are never interchangeable.

httpminimum request shape
GET /v1/meta HTTP/1.1
Host: gateway.gitiox.com
Authorization: Bearer gx_live_7c1e0a94d2b6f8e3
Accept: application/json
x-request-id: req_client_9f3a81

An x-request-id may be supplied by the client; when it is absent Gateway generates one. Every response echoes the identifier used, in the same header and in the body.

Identifiers

Identifiers are prefixed ULIDs: lexicographically sortable, 26 characters, no leading zeros. Do not parse them for meaning beyond the prefix.

PrefixResourceExample
evt_Canonical event envelopeevt_01JCA1M4Q7T3XK9Z2P8R5V6WNE
dlv_Delivery of one event to one endpointdlv_01JCA1M4Q7T3XK9Z2P8R5V6WNE
ep_Registered consumer endpointep_01JC9Z4T7M2XQP6VF3K8N1RAWD
src_Gitiox event sourcesrc_01J9K3M8YVQ2
rpl_Replay of a deliveryrpl_01JCB7N2C5W8Q3M6T0V4X9Y1ZAD
req_Request correlation idreq_01JCA1M4R2D8K7N3Q5V0W6X9YZ

Table 1 — identifier prefixes in API v1.

Timestamps and pagination

All timestamps are RFC 3339 in UTC with a trailing Z, second precision. Cursor pagination is used everywhere: pass limit and optionally starting_after, then follow next_cursor while has_more is true. Cursors are opaque and expire after 24 hours; a stale cursor returns 422 invalid_cursor and requires restarting the listing.

Idempotency and errors

Unsafe methods accept an Idempotency-Key header, valid for 24 hours. Repeating the same key with the same body returns the original response and the original identifiers; reusing a key with a different body returns 409 idempotency_reuse. Error bodies are always an object with an error.code — see errors & retries for the complete table.

Event type catalogue

Endpoints subscribe to event types by name. Wildcards are limited to one trailing .* segment, for example ci.*. The catalogue is additive; new types are announced in the changelog and never change meaning.

  • repository.push
  • repository.branch.created
  • repository.tag.deleted
  • ci.run.started
  • ci.run.finished
  • release.published
  • identity.user.invited
  • identity.user.removed
  • audit.export.ready
  • service.alert

01POST/v1/events

Publish one event to Gateway. The edge validates the token, the source binding, the optional source signature and the size limit before queueing a delivery.

Headers

HeaderValueDescription
AuthorizationrequiredBearer <token>Token with the ingest:write scope, bound to the source.
X-Gitiox-Sourcerequiredsrc_…Source the event belongs to. Must match the token binding.
Idempotency-Keyrecommended1–255 charsDeduplicates retries for 24 hours. Returns the original delivery on repeat.
X-Gitiox-Signatureconditionalt=…,v1=…Required when the source has a signing secret. HMAC-SHA256 over the raw body.
Content-Typerequiredapplication/jsonUTF-8 JSON. Other media types are rejected with 415.

Body

FieldTypeDescription
typerequiredstringEvent type from the catalogue, e.g. repository.push.
occurred_atrequiredtimestampWhen the event happened. Sandbox tolerance ±7 days; live tolerance ±300 s for future values.
actorrequiredobjectWho caused the event: id, login, optional email. Service actors use login: "system".
targetrequiredobjectThe affected resource: kind, id, optional name.
datarequiredobjectType-specific payload. Maximum 64 KiB after serialisation; unknown keys are preserved under data.raw.
metadataoptionalobjectUp to 20 string pairs, at most 256 characters each. Stored with the envelope and returned verbatim.
json202 Accepted
{
  "delivery_id": "dlv_01JCA1M4Q7T3XK9Z2P8R5V6WNE",
  "event_id": "evt_01JCA1M4Q7T3XK9Z2P8R5V6WNE",
  "status": "queued",
  "endpoint_count": 2,
  "accepted_at": "2026-11-24T09:42:18Z",
  "request_id": "req_01JCA1M4R2D8K7N3Q5V0W6X9YZ"
}

endpoint_count is the number of endpoints subscribed to the event type at intake. When it is 0 the event is still persisted and visible for 24 hours, but no delivery is created.

02GET/v1/deliveries

List deliveries newest first, filtered by status, endpoint or event type. Each item is the same resource returned by the single-delivery method, without the attempt array.

Query parameters

ParameterTypeDescription
statusoptionalenumqueued, delivering, delivered, failed or dead_letter.
endpoint_idoptionalstringOnly deliveries to this endpoint. Prefix ep_ required.
event_typeoptionalstringExact event type, no wildcards.
created_afteroptionaltimestampInclusive lower bound on created_at. Maximum window: 30 days.
limitoptionalintegerPage size, 1–100. Default 25.
starting_afteroptionalstringOpaque cursor from next_cursor. Do not construct cursors by hand.
bashdead letters for one endpoint
curl -sS -G "https://gateway.gitiox.com/v1/deliveries" \
  -H "Authorization: Bearer $GITIOX_TOKEN" \
  --data-urlencode "status=dead_letter" \
  --data-urlencode "endpoint_id=ep_01JC9Z4T7M2XQP6VF3K8N1RAWD" \
  --data-urlencode "limit=25"
json200 OK · list envelope
{
  "object": "list",
  "data": [
    {
      "id": "dlv_01JCB2P6R8V4M1Q7T3X9Z5W0NEC",
      "status": "dead_letter",
      "event_type": "ci.run.finished",
      "endpoint_id": "ep_01JC9Z4T7M2XQP6VF3K8N1RAWD",
      "attempts": 8,
      "created_at": "2026-11-21T18:03:41Z",
      "last_attempt_at": "2026-11-22T00:03:52Z",
      "purge_at": "2026-11-29T00:03:52Z"
    }
  ],
  "has_more": false,
  "next_cursor": null,
  "request_id": "req_01JCB2P7A1C3E5G7J9L1N3P5Q7R"
}

03GET/v1/deliveries/{id}

Read one delivery including every attempt: response code, latency, error class and the request id used at the consumer. This is the object to attach to a support ticket.

Path and query parameters

ParameterTypeDescription
idrequiredstringDelivery identifier with the dlv_ prefix.
include_headersoptionalbooleanInclude the first 2 KiB of the consumer response headers. Default false.
include_bodyoptionalbooleanInclude up to 4 KiB of the consumer response body. Default false; may contain sensitive data.
json200 OK · delivery with attempts
{
  "id": "dlv_01JCA1M4Q7T3XK9Z2P8R5V6WNE",
  "status": "delivered",
  "event": {
    "id": "evt_01JCA1M4Q7T3XK9Z2P8R5V6WNE",
    "type": "repository.push",
    "occurred_at": "2026-11-24T09:42:18Z"
  },
  "endpoint": {
    "id": "ep_01JC9Z4T7M2XQP6VF3K8N1RAWD",
    "url": "https://ops.example.net/hooks/gitiox"
  },
  "created_at": "2026-11-24T09:42:18Z",
  "delivered_at": "2026-11-24T09:42:19Z",
  "next_retry_at": null,
  "attempts": [
    {
      "n": 1,
      "at": "2026-11-24T09:42:19Z",
      "status_code": 200,
      "latency_ms": 184,
      "outcome": "delivered",
      "request_id": "req_01JCA1M4R2D8K7N3Q5V0W6X9YZ"
    }
  ]
}

Response capture

include_body returns consumer data to the caller. It is disabled for tokens without the deliveries:read_raw scope, and every use is written to the audit log.

04POST/v1/deliveries/{id}/replay

Queue a fresh delivery of an existing envelope. Replay re-signs with a current timestamp, starts a new attempt counter and accepts an optional endpoint override introduced in 1.8.

Body

FieldTypeDescription
reasonrequiredstring3–200 characters. Stored on the replay record and visible in the audit log.
endpoint_idoptionalstringDeliver to another endpoint instead of the original. The envelope is unchanged.
max_attemptsoptionalintegerOverride the retry budget for this replay, 1–8. Defaults to the original delivery budget.
bashreplay to a different endpoint
curl -sS -X POST \
  "https://gateway.gitiox.com/v1/deliveries/dlv_01JCA1M4Q7T3XK9Z2P8R5V6WNE/replay" \
  -H "Authorization: Bearer $GITIOX_TOKEN" \
  -H "Idempotency-Key: replay-drain-4471" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "drain backlog to the new consumer",
    "endpoint_id": "ep_01JCC3Q8S2V7M4T1R6X9Z0W5NEQ",
    "max_attempts": 4
  }'

The response is 202 with replay_id, scheduled_at and the resolved endpoint_id. Replay is refused with 409 not_replayable when the delivery is already queued or delivering, and with 410 delivery_purged after the seven-day retention window.

05GET/v1/endpoints

List registered consumers with their subscription filter, health and concurrency cap. Secrets are never included.

ParameterTypeDescription
activeoptionalbooleanFilter paused endpoints in or out. Omit for both.
limitoptionalintegerPage size, 1–100. Default 25.
starting_afteroptionalstringOpaque cursor from a previous page.

06POST/v1/endpoints

Register a consumer URL. The signing secret is generated server-side and returned exactly once in the 201 response.

FieldTypeDescription
urlrequiredstringAbsolute HTTPS URL, no query string, no fragment. HTTP and loopback addresses are refused.
eventsrequiredstring[]One or more event types, or ["*"] for the whole catalogue. Wildcards only as a trailing .*.
descriptionoptionalstringFree text up to 120 characters, shown in the console.
activeoptionalbooleanStart delivering immediately. Default true.
max_concurrencyoptionalintegerParallel deliveries to this endpoint, 1–50. Default 8. Added in 1.8.
metadataoptionalobjectUp to 20 string pairs for your own inventory tooling.

Secret handling

The response field signing_secret appears once. Store it in the consumer's secret manager before the deploy that starts receiving traffic; rotate later with PATCH /v1/endpoints/{id} and a 24-hour overlap.

07PATCH/v1/endpoints/{id}

Update the URL, filter, description, concurrency cap or active flag, and rotate the signing secret. Omitted fields are left untouched; null is never accepted.

FieldTypeDescription
urloptionalstringNew HTTPS URL. In-flight attempts continue to the old URL and are not re-delivered.
eventsoptionalstring[]Replaces the whole filter. Removed types stop receiving deliveries immediately.
activeoptionalbooleanPausing keeps queued deliveries and stops new attempts.
rotate_secretoptionalbooleanWhen true, returns a new signing_secret. The old secret stays valid for 24 hours.
bashrotate a signing secret
curl -sS -X PATCH \
  "https://gateway.gitiox.com/v1/endpoints/ep_01JC9Z4T7M2XQP6VF3K8N1RAWD" \
  -H "Authorization: Bearer $GITIOX_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "rotate_secret": true }'

08GET/v1/meta

Service discovery for the region: API version, manual edition, retry schedule and current server time. The only method that does not require a token.

json200 OK
{
  "service": "gitiox-gateway",
  "api_version": "v1",
  "release": "1.8.3",
  "region": "eu-north-1",
  "server_time": "2026-11-26T14:02:11Z",
  "retry_schedule_seconds": [0, 30, 120, 600, 1800, 3600, 5400, 7200],
  "signature_tolerance_seconds": 300,
  "limits": {
    "ingest_per_minute": 3000,
    "control_requests_per_minute": 600,
    "replays_per_minute": 60,
    "max_payload_bytes": 1048576
  }
}

09Headers & rate limits

Request headers

HeaderUsed byNotes
Authorizationall except /v1/metaBearer token. Never send it from a browser.
Idempotency-KeyPOST, PATCH24-hour window; key scope is the token, not the resource.
x-request-idallOptional client id, echoed in response header and body. Max 64 chars.
Accept-Encodingallgzip supported. Payload limits apply after decompression.

Response headers

HeaderExampleMeaning
x-request-idreq_01JCA1M4R2D8K7N3Q5V0W6X9YZCorrelation id for this request. Quote it in tickets.
x-ratelimit-limit600Requests allowed in the current window.
x-ratelimit-remaining571Remaining requests in the window.
x-ratelimit-reset38Seconds until the window resets.
retry-after12Present on 429 and 503. Seconds to wait before retrying.
x-gateway-regioneu-north-1Region that served the request.

Rate limit classes

ClassLimitBurstApplies to
ingest3,000 / min500POST /v1/events, per source
control600 / min120All GET and POST control-plane methods, per token
replay60 / min10POST /v1/deliveries/{id}/replay, per token

Table 2 — rate-limit classes. Windows are fixed 60-second windows aligned to the minute.

Next

The complete error table, retry schedule and dead-letter semantics are on the errors & retries page. If you are integrating for the first time, start with the quickstart.