Skip to content
bucker

API reference

batch

2 operations. Shapes are sketches of the declared schemas, bounded in depth — the authoritative document is linked from the index.

POST/batch

Capture events in the PostHog format

No declared credential scheme

Reachable without a Bucker session token. PostHog-compatible capture. The project API key in the body (`api_key`, `token` or `properties.token`) is a Bucker DSN public key and names the project. Refused with 403 until the project enables the `posthog` ingest door, and with 422 while the product-analytics gate is shut.

Response 200

{
  status: number
}

Response 429 · `rate_limited` or `quota_exceeded` — over a ceiling. `Retry-After` says when to come back, and `x-ratelimit-limit` / `-remaining` / `-reset` describe the bucket.

{
  error: {
    code: "bad_request" | "conflict" | "forbidden" | "internal_error" | "mfa_required" | "not_found" | "payload_too_large" | "quota_exceeded" | … 6 more
    message: string
    details?: unknown
    requestId?: string
  }
}

Response 500 · `internal_error` — an unhandled failure on this side. The message is always generic; `requestId` is the part worth quoting.

{
  error: {
    code: "bad_request" | "conflict" | "forbidden" | "internal_error" | "mfa_required" | "not_found" | "payload_too_large" | "quota_exceeded" | … 6 more
    message: string
    details?: unknown
    requestId?: string
  }
}

Request

curl -X POST https://api.bucker.io/batch

POST/batch/

Capture events in the PostHog format

No declared credential scheme

Reachable without a Bucker session token. PostHog-compatible capture. The project API key in the body (`api_key`, `token` or `properties.token`) is a Bucker DSN public key and names the project. Refused with 403 until the project enables the `posthog` ingest door, and with 422 while the product-analytics gate is shut.

Response 200

{
  status: number
}

Response 429 · `rate_limited` or `quota_exceeded` — over a ceiling. `Retry-After` says when to come back, and `x-ratelimit-limit` / `-remaining` / `-reset` describe the bucket.

{
  error: {
    code: "bad_request" | "conflict" | "forbidden" | "internal_error" | "mfa_required" | "not_found" | "payload_too_large" | "quota_exceeded" | … 6 more
    message: string
    details?: unknown
    requestId?: string
  }
}

Response 500 · `internal_error` — an unhandled failure on this side. The message is always generic; `requestId` is the part worth quoting.

{
  error: {
    code: "bad_request" | "conflict" | "forbidden" | "internal_error" | "mfa_required" | "not_found" | "payload_too_large" | "quota_exceeded" | … 6 more
    message: string
    details?: unknown
    requestId?: string
  }
}

Request

curl -X POST https://api.bucker.io/batch/