Raccha AI Sse Hooks API
Long-lived outbound Server-Sent-Events stream registration — for subscribers with no stable inbound address (webhook_targets' sibling primitive).
Long-lived outbound Server-Sent-Events stream registration — for subscribers with no stable inbound address (webhook_targets' sibling primitive).
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/raccha-ai:raccha-ai-sse-hooks-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: raccha.ai Sse Hooks 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: sse-hooks
description: Long-lived outbound Server-Sent-Events stream registration — for subscribers with no stable inbound address (webhook_targets' sibling primitive).
paths:
/sse-hooks:
get:
tags:
- sse-hooks
operationId: getSsehooks
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/ListResp3'
summary: Get ssehooks
x-summary-source: derived
post:
tags:
- sse-hooks
operationId: postSsehooks
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RegisterBody3'
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'
summary: Post ssehooks
x-summary-source: derived
/sse-hooks/{id}:
delete:
tags:
- sse-hooks
operationId: deleteSsehooksId
parameters:
- in: path
name: id
required: true
schema:
type: string
style: simple
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/UnregisterResp2'
summary: Delete ssehooks id
x-summary-source: derived
components:
schemas:
RegisterBody3:
type: object
required:
- slug
properties:
slug:
description: Namespace slug this registration listens under (from the profile returned by `verify`). The caller must own this namespace.
type: string
topic_prefix:
description: Dot-hierarchical prefix to match against queue_name/kv key/topic name (see webhook_targets::prefix_matches, reused here directly). Empty string matches every write in the namespace.
default: ''
type: string
SseHook:
type: object
required:
- connected
- created_at
- id
- slug
- topic_prefix
properties:
connected:
type: boolean
created_at:
type: string
id:
type: string
last_seen:
type:
- string
- 'null'
slug:
type: string
topic_prefix:
type: string
ErrorBody:
type: object
required:
- error
properties:
error:
$ref: '#/components/schemas/ErrorDetail'
ListResp3:
type: object
required:
- hooks
properties:
hooks:
type: array
items:
$ref: '#/components/schemas/SseHook'
UnregisterResp2:
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