Raccha AI Kv API
Per-account, namespace-scoped key/value storage.
Per-account, namespace-scoped key/value storage.
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-kv-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 Kv 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: kv
description: Per-account, namespace-scoped key/value storage.
paths:
/kv/{slug}/list:
get:
tags:
- kv
operationId: getKvSlugList
parameters:
- in: path
name: slug
required: true
schema:
type: string
style: simple
- in: query
name: cursor
schema:
type:
- string
- 'null'
style: form
- in: query
name: limit
schema:
default: 100
type: integer
format: uint
minimum: 0.0
style: form
- in: query
name: prefix
schema:
default: ''
type: string
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/ListResp'
summary: Get kv slug list
x-summary-source: derived
/kv/{slug}/prefix/{prefix}:
delete:
tags:
- kv
operationId: deleteKvSlugPrefixPrefix
parameters:
- in: path
name: prefix
required: true
schema:
type: string
style: simple
- in: path
name: slug
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/DeletePrefixResp'
summary: Delete kv slug prefix prefix
x-summary-source: derived
/kv/{slug}/ttl/{key}:
put:
tags:
- kv
operationId: putKvSlugTtlKey
parameters:
- in: path
name: key
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/TtlBody'
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/PutResp'
summary: Put kv slug ttl key
x-summary-source: derived
/kv/{slug}/cas/{key}:
post:
tags:
- kv
operationId: postKvSlugCasKey
parameters:
- in: path
name: key
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/CasBody'
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/PutResp'
summary: Post kv slug cas key
x-summary-source: derived
/kv/{slug}/incr/{key}:
post:
tags:
- kv
operationId: postKvSlugIncrKey
parameters:
- in: path
name: key
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/IncrBody'
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: {}
summary: Post kv slug incr key
x-summary-source: derived
/kv/{slug}/{key}:
get:
tags:
- kv
operationId: getKvSlugKey
parameters:
- in: path
name: key
required: true
schema:
type: string
style: simple
- in: path
name: slug
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: {}
summary: Get kv slug key
x-summary-source: derived
put:
tags:
- kv
operationId: putKvSlugKey
parameters:
- in: path
name: key
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/PutBody'
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/PutResp'
summary: Put kv slug key
x-summary-source: derived
delete:
tags:
- kv
operationId: deleteKvSlugKey
parameters:
- in: path
name: key
required: true
schema:
type: string
style: simple
- in: path
name: slug
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/PutResp'
summary: Delete kv slug key
x-summary-source: derived
components:
schemas:
PutResp:
type: object
required:
- ok
properties:
ok:
type: boolean
PutBody:
type: object
required:
- value
properties:
value: true
TtlBody:
type: object
required:
- ttl_seconds
- value
properties:
ttl_seconds:
type: integer
format: int64
value: true
DeletePrefixResp:
type: object
required:
- deleted
- ok
properties:
deleted:
type: integer
format: uint64
minimum: 0.0
ok:
type: boolean
ErrorBody:
type: object
required:
- error
properties:
error:
$ref: '#/components/schemas/ErrorDetail'
IncrBody:
type: object
required:
- delta
properties:
delta:
type: integer
format: int64
ListResp:
type: object
required:
- keys
properties:
keys:
type: array
items:
type: string
next_cursor:
type:
- string
- 'null'
CasBody:
type: object
required:
- expected_value
- new_value
properties:
expected_value: true
new_value: true
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