Skip to content
bucker

API reference

i

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

POST/i/v0/e

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/i/v0/e

POST/i/v0/e/

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/i/v0/e/

POST/i/v1/analytics/events

A PostHog path Bucker refuses

No declared credential scheme

Reachable without a Bucker session token. Always answers 501 `capture_v1_not_supported`: The capture V1 wire is not served. Send the same events to /i/v0/e/ or /batch/.

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
  }
}

Response 501

{
  status: number
  code: string
  error: string
}

Request

curl -X POST https://api.bucker.io/i/v1/analytics/events

POST/i/v1/analytics/events/

A PostHog path Bucker refuses

No declared credential scheme

Reachable without a Bucker session token. Always answers 501 `capture_v1_not_supported`: The capture V1 wire is not served. Send the same events to /i/v0/e/ or /batch/.

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
  }
}

Response 501

{
  status: number
  code: string
  error: string
}

Request

curl -X POST https://api.bucker.io/i/v1/analytics/events/