Raccha AI Topic API
Per-account, namespace-scoped append-only event topics.
Per-account, namespace-scoped append-only event topics.
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-topic-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 Topic 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: Topic
description: Per-account, namespace-scoped append-only event topics.
paths:
/topic/{slug}/publish/{name}:
post:
tags:
- Topic
operationId: postTopicSlugPublishName
parameters:
- in: path
name: name
required: true
schema:
type: string
style: simple
- in: path
name: slug
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PublishBody'
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/PublishResp'
summary: Post topic slug publish name
x-summary-source: derived
/topic/{slug}/read/{name}:
get:
tags:
- Topic
operationId: getTopicSlugReadName
parameters:
- in: path
name: name
required: true
schema:
type: string
style: simple
- in: path
name: slug
required: true
schema:
type: string
style: simple
- in: query
name: cursor
schema:
type:
- integer
- 'null'
format: int64
style: form
- in: query
name: limit
schema:
default: 100
type: integer
format: uint
minimum: 0.0
style: form
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/ReadResp'
summary: Get topic slug read name
x-summary-source: derived
components:
schemas:
PublishResp:
type: object
required:
- cursor
- ok
properties:
cursor:
type: integer
format: int64
ok:
type: boolean
TopicEvent:
type: object
required:
- cursor
- event
properties:
cursor:
type: integer
format: int64
event: true
PublishBody:
type: object
required:
- event
properties:
event: true
ReadResp:
type: object
required:
- events
properties:
events:
type: array
items:
$ref: '#/components/schemas/TopicEvent'
next_cursor:
type:
- integer
- 'null'
format: int64
ErrorBody:
type: object
required:
- error
properties:
error:
$ref: '#/components/schemas/ErrorDetail'
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