Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: raccha.ai Webhook API
description: 'HTTP API for raccha.ai: passwordless auth, a per-account key/value store, FIFO queues, scoped access keys, Telegram pairing, stateless utility tools, and account stats.
GENERATED — this file is produced by `cargo run --bin generate-openapi` (bundle-23) directly from the axum route/handler definitions in service/src/{auth,kv,queue,access,telegram,http_tools,stats}.rs via lib.rs''s build_app(). Do not hand-edit it; edit the routes/handlers and regenerate. See sdk/generate.sh, cli/''s generator, and this bundle''s report in .docs/backlog.yaml for the rest of the codegen pipeline this feeds.
### Authentication
Every route except `/auth/request-link` and `/auth/verify` requires a credential, supplied either as `Authorization: Bearer ` or an `owner_key` cookie (set by `/auth/verify`). A request with neither returns 401 `"missing credential"`. A request with a credential that is malformed, unknown, or revoked returns 401 `"invalid credential"` — deliberately indistinguishable, same as a KV slug that exists but belongs to a different account returning the same 404 as a slug that does not exist at all.'
contact:
url: https://raccha.ai/legal.html
version: '1.0'
servers:
- url: https://raccha.ai
description: Production
- url: /
description: Same origin as this docs page
tags:
- name: Webhook
description: Public inbound webhooks — URL path selects the destination queue.
paths:
/webhook/{slug}/{prefix}:
post:
tags:
- Webhook
operationId: postWebhookSlugPrefix
parameters:
- in: path
name: prefix
required: true
schema:
type: string
style: simple
- in: path
name: slug
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema: {}
required: true
responses:
default:
description: An error occurred. `error.code` and `error.message` identify the specific failure (e.g. "not found", "db", "role not found", "kv rate limited"); `error.details` is present only for a subset of validation failures. The HTTP status itself follows normal REST conventions (400 malformed/invalid input, 401 missing/invalid credential, 402 quota/plan limit, 404 not found, 409 conflict, 429 rate limited, 500 internal/db failure).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorBody'
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookResp2'
summary: Post webhook slug prefix
x-summary-source: derived
/webhooks/stripe:
post:
tags:
- Webhook
operationId: postWebhooksStripe
requestBody:
content:
application/octet-stream:
schema:
type: string
format: binary
required: true
responses:
default:
description: An error occurred. `error.code` and `error.message` identify the specific failure (e.g. "not found", "db", "role not found", "kv rate limited"); `error.details` is present only for a subset of validation failures. The HTTP status itself follows normal REST conventions (400 malformed/invalid input, 401 missing/invalid credential, 402 quota/plan limit, 404 not found, 409 conflict, 429 rate limited, 500 internal/db failure).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorBody'
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookResp3'
summary: Post webhooks stripe
x-summary-source: derived
components:
schemas:
WebhookResp2:
type: object
required:
- ok
properties:
ok:
type: boolean
ErrorDetail:
type: object
required:
- code
- message
properties:
code:
description: Stable, machine-readable error identifier -- currently the same lowercase phrase every handler already used for its plaintext body (e.g. "not found", "db", "role not found"), so existing callers that pattern-matched on the old plaintext keep working unchanged.
type: string
details: true
message:
description: Human-readable description of the failure. Identical to `code` today (the codebase never had a separate human-readable string) -- kept as its own field so a handler can later add a distinct message without a breaking envelope-shape change.
type: string
ErrorBody:
type: object
required:
- error
properties:
error:
$ref: '#/components/schemas/ErrorDetail'
WebhookResp3:
type: object
required:
- received
properties:
received:
type: boolean