Base URL — your platform URL. On EKS, in-cluster that’s typically http://sariva-platform.<namespace>.svc:8000, or whatever route your operator exposes. On the VM path it is http://localhost:8000 on the host, or the public HTTPS name you put in front of it. All routes are under /api/v1.
Auth — a Sariva platform API key as a bearer token:
Authorization: Bearer sariva_<your-key>
Mint one as described in Mint your admin bearer. (Slack-driven flows don’t need this — Slack identity is resolved separately.)
llm.state is the AI backend as the last model call found it: ok, billing (out of credits), auth (key or credentials rejected), rate_limited, unreachable, or unknown (no call yet since start). Any state but ok and unknown sets llm_reachable: false and status: "degraded" — still HTTP 200, so the install stays in service and can say so. While the model is down the chat reads no message: every reply says it cannot read messages right now, that nothing was done and that anything waiting is still waiting. A billing or auth failure posts one alert to the alerts channel (and one low-severity page) when it starts and one when it clears.
The developer self-service surface (see Register an application for the full field reference):
Method & path
Purpose
POST /api/v1/apps/register
Register an app; returns the record + a generated client config
GET /api/v1/apps/
List your team’s apps
GET /api/v1/apps/{alias}
App detail + current health summary
PUT /api/v1/apps/{alias}
Update alert preferences
DELETE /api/v1/apps/{alias}
De-register
GET /api/v1/apps/{alias}/config
Re-download the client config
GET /api/v1/apps/{alias}/health
Pod status (Kubernetes only) + the last alert + per-type alert_lifecycle (active / clear); a producer’s verdict from its pod and topics. Never reads the app’s logs ("logs": "not_read")
Registering clusters, attaching credentials, and verifying ACLs are REST operations too — but most operators drive them through the sariva CLI, which is itself a REST client (--api-url + --api-key). See Connecting Kafka clusters. The exact routes are in the OpenAPI schema.
Every endpoint carries machine-readable intent + safety metadata (surfaced in the OpenAPI description), so an AI agent can tell a read from an irreversible write before calling. The same metadata powers the MCP server, which is the recommended way for external AI agents to call the Sariva platform.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Sariva","description":"Operate Kafka and Flink through conversation. Documentation for the Sariva AI Platform.","colors":{"primary":"#2563EB","light":"#60A5FA","dark":"#1D4ED8"},"logo":{"light":"https://mintcdn.com/sariva/w7AcFgZxpthg-__q/images/logo-light.svg?fit=max\u0026auto=format\u0026n=w7AcFgZxpthg-__q\u0026q=85\u0026s=c4c33b806886d40fd35a203ac9afb5bf","dark":"https://mintcdn.com/sariva/w7AcFgZxpthg-__q/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=w7AcFgZxpthg-__q\u0026q=85\u0026s=a0b839861d2fda6589c88d9d53a5e115"},"favicon":"https://mintcdn.com/sariva/w7AcFgZxpthg-__q/images/favicon.svg?fit=max\u0026auto=format\u0026n=w7AcFgZxpthg-__q\u0026q=85\u0026s=9dad211229d8de6cf8ca23fcb2b58bdf","appearance":{"default":"system","strict":false},"background":{"color":{"light":"#F8FAFC","dark":"#0B1120"}},"navbar":{"links":[{"href":"https://sariva.ai","label":"Marketing site"}],"primary":{"type":"button","label":"Get early access","href":"https://sariva.ai/#contact"}},"footer":{"links":[{"header":"Sariva","items":[{"label":"sariva.ai","href":"https://sariva.ai"},{"label":"hello@sariva.ai","href":"mailto:hello@sariva.ai"},{"label":"GitHub","href":"https://github.com/sariva-inc"}]}]},"fonts":{"family":"Inter"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sariva","hasAudioNarration":false,"actualSubdomain":"sariva","customDomains":[],"gitSource":{"type":"github","owner":"sariva-inc","repo":"sariva-platform","deployBranch":"main","contentDirectory":"docs-site","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af52e910f0e164bc8540175","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"Prerequisites","count":21},{"language":"default","tag":"Setup tasks","count":13},{"language":"default","tag":"Connecting Kafka clusters","count":12},{"language":"default","tag":"Reference","count":8},{"language":"default","tag":"For application teams","count":5},{"language":"default","tag":"Concepts","count":4},{"language":"default","tag":"Deployment paths","count":4},{"language":"default","tag":"Validate \u0026 operate","count":4},{"language":"default","tag":"Confluent Platform (CFK)","count":4},{"language":"default","tag":"Slack","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":":root{--sariva-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;--sariva-text: #0f172a;--sariva-muted: #475569;--sariva-border: #e2e8f0}body,#body-content,#content,#content-area{font-family:var(--sariva-font-sans)}#page-title,h1,h2,h3,h4{font-family:var(--sariva-font-sans);letter-spacing:-0.025em}.sariva-callout{margin:1.5rem 0;border-radius:14px;padding:1.15rem 1.35rem;border-left:6px solid;box-shadow:0 4px 14px rgba(15, 23, 42, 0.08);font-family:var(--sariva-font-sans);line-height:1.72}.sariva-callout-title{display:flex;align-items:center;gap:0.65rem;margin-bottom:0.65rem;font-weight:800;text-transform:uppercase;letter-spacing:0.025em;font-size:0.95rem}.sariva-callout-icon{display:inline-flex;align-items:center;justify-content:center;width:1.35rem;height:1.35rem;font-size:1.2rem;line-height:1}.sariva-callout-body{font-size:1rem}.sariva-callout-body>:first-child{margin-top:0}.sariva-callout-body>:last-child{margin-bottom:0}.sariva-callout-info{background:#eaf7fb;border-left-color:#38bdf8;color:#0f3b4a}.sariva-callout-warning{background:#fff7e6;border-left-color:#f5b301;color:#6b4200}.sariva-callout-danger{background:#fdecec;border-left-color:#ef4444;color:#5f1111}.sariva-callout-success{background:#ecf9ee;border-left-color:#16a34a;color:#114b1f}html.dark .sariva-callout-info{background:rgba(56, 189, 248, 0.12);color:#d6f3fb}html.dark .sariva-callout-warning{background:rgba(245, 179, 1, 0.14);color:#ffedb0}html.dark .sariva-callout-danger{background:rgba(239, 68, 68, 0.14);color:#ffd4d4}html.dark .sariva-callout-success{background:rgba(22, 163, 74, 0.14);color:#d2f7dc}"}],"page":{"pagePath":"api-mcp/rest-api","slug":"/api-mcp/rest-api","pageMetadata":{"title":"REST API","description":"The Sariva platform's REST API — the spine that Slack, the CLI, and integrations all run on.","icon":"code","href":"/api-mcp/rest-api"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"The Sariva platform’s REST API — the spine that Slack, the CLI, and integrations all run on.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Every interface — Slack, the `,_jsx(_components.code,{children:`sariva`}),` CLI, application registration — runs on one REST API. You can call it directly to build your own integrations.`]}),`\n`,_jsx(Heading,{level:`2`,id:`base-url-\u0026-auth`,children:`Base URL \u0026 auth`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Base URL`}),` — your platform URL. On EKS, in-cluster that’s typically `,_jsx(_components.code,{children:`http://sariva-platform.\u003cnamespace>.svc:8000`}),`, or whatever route your operator exposes. On the `,_jsx(_components.a,{href:`/deploy/vm-docker-cc`,children:`VM path`}),` it is `,_jsx(_components.code,{children:`http://localhost:8000`}),` on the host, or the public HTTPS name you put in front of it. All routes are under `,_jsx(_components.code,{children:`/api/v1`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Auth`}),` — a Sariva platform API key as a `,_jsx(_components.strong,{children:`bearer token`}),`:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Authorization: Bearer sariva_\u003cyour-key>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Mint one as described in `,_jsx(_components.a,{href:`/install-setup/mint-bearer`,children:`Mint your admin bearer`}),`. (Slack-driven flows don’t need this — Slack identity is resolved separately.)`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-authoritative-contract-openapi`,children:`The authoritative contract: OpenAPI`}),`\n`,_jsx(_components.p,{children:`The always-current, machine-readable contract is the OpenAPI schema:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`platform-ur`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`l`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/api/v1/openapi.json`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Note the `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`/api/v1`})}),` prefix — `,_jsx(_components.code,{children:`/openapi.json`}),` at the root returns `,_jsx(_components.code,{children:`404`}),`. Point Swagger UI, Postman, or an OpenAPI client generator at `,_jsx(_components.code,{children:`/api/v1/openapi.json`}),`.`]})}),`\n`,_jsx(_components.p,{children:`The endpoints below are the most common ones; the OpenAPI schema is the full surface.`}),`\n`,_jsx(Heading,{level:`2`,id:`health`,children:`Health`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`platform-ur`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`l`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/api/v1/health`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`llm.state`}),` is the AI backend as the last model call found it: `,_jsx(_components.code,{children:`ok`}),`, `,_jsx(_components.code,{children:`billing`}),` (out of credits), `,_jsx(_components.code,{children:`auth`}),` (key or credentials rejected), `,_jsx(_components.code,{children:`rate_limited`}),`, `,_jsx(_components.code,{children:`unreachable`}),`, or `,_jsx(_components.code,{children:`unknown`}),` (no call yet since start). Any state but `,_jsx(_components.code,{children:`ok`}),` and `,_jsx(_components.code,{children:`unknown`}),` sets `,_jsx(_components.code,{children:`llm_reachable: false`}),` and `,_jsx(_components.code,{children:`status: \"degraded\"`}),` — still HTTP `,_jsx(_components.code,{children:`200`}),`, so the install stays in service and can say so. While the model is down the chat reads no message: every reply says it cannot read messages right now, that nothing was done and that anything waiting is still waiting. A `,_jsx(_components.code,{children:`billing`}),` or `,_jsx(_components.code,{children:`auth`}),` failure posts one alert to the alerts channel (and one low-severity page) when it starts and one when it clears.`]}),`\n`,_jsx(Heading,{level:`2`,id:`applications`,children:`Applications`}),`\n`,_jsxs(_components.p,{children:[`The developer self-service surface (see `,_jsx(_components.a,{href:`/app-teams/register`,children:`Register an application`}),` for the full field reference):`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method \u0026 path`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /api/v1/apps/register`})}),_jsx(_components.td,{children:`Register an app; returns the record + a generated client config`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /api/v1/apps/`})}),_jsx(_components.td,{children:`List your team’s apps`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /api/v1/apps/{alias}`})}),_jsx(_components.td,{children:`App detail + current health summary`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PUT /api/v1/apps/{alias}`})}),_jsx(_components.td,{children:`Update alert preferences`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DELETE /api/v1/apps/{alias}`})}),_jsx(_components.td,{children:`De-register`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /api/v1/apps/{alias}/config`})}),_jsx(_components.td,{children:`Re-download the client config`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /api/v1/apps/{alias}/health`})}),_jsxs(_components.td,{children:[`Pod status (Kubernetes only) + the last alert + per-type `,_jsx(_components.code,{children:`alert_lifecycle`}),` (active / clear); a producer’s verdict from its pod and topics. Never reads the app’s logs (`,_jsx(_components.code,{children:`\"logs\": \"not_read\"`}),`)`]})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`platform-ur`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`l`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/api/v1/apps/payments-consumer/health`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sariva_\u003cyour-key>\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`cluster-operations`,children:`Cluster operations`}),`\n`,_jsxs(_components.p,{children:[`Registering clusters, attaching credentials, and verifying ACLs are REST operations too — but most operators drive them through the `,_jsx(_components.code,{children:`sariva`}),` CLI, which is itself a REST client (`,_jsx(_components.code,{children:`--api-url`}),` + `,_jsx(_components.code,{children:`--api-key`}),`). See `,_jsx(_components.a,{href:`/connecting-clusters/overview`,children:`Connecting Kafka clusters`}),`. The exact routes are in the OpenAPI schema.`]}),`\n`,_jsx(Heading,{level:`2`,id:`built-for-ai-agents`,children:`Built for AI agents`}),`\n`,_jsxs(_components.p,{children:[`Every endpoint carries machine-readable `,_jsx(_components.strong,{children:`intent + safety metadata`}),` (surfaced in the OpenAPI `,_jsx(_components.code,{children:`description`}),`), so an AI agent can tell a read from an irreversible write before calling. The same metadata powers the `,_jsx(_components.a,{href:`/api-mcp/mcp`,children:`MCP server`}),`, which is the recommended way for external AI agents to call the `,_jsx(`span`,{style:{color:`#2A48F0`,fontWeight:600},children:`Sariva platform`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"REST API","description":"The Sariva platform's REST API — the spine that Slack, the CLI, and integrations all run on.","icon":"code","href":"/api-mcp/rest-api"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Base URL \u0026 auth","slug":"base-url-\u0026-auth","depth":2,"children":[]},{"title":"The authoritative contract: OpenAPI","slug":"the-authoritative-contract-openapi","depth":2,"children":[]},{"title":"Health","slug":"health","depth":2,"children":[]},{"title":"Applications","slug":"applications","depth":2,"children":[]},{"title":"Cluster operations","slug":"cluster-operations","depth":2,"children":[]},{"title":"Built for AI agents","slug":"built-for-ai-agents","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"sariva","siteName":"Sariva","title":"REST API - Sariva","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T03:12:20.406Z","originalFileLocation":"api-mcp/rest-api.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"The Sariva platform\u0026#x27;s REST API — the spine that Slack, the CLI, and integrations all run on.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Sariva\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sariva/2Tk6RoEfE2XbMlC5/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/sariva/2Tk6RoEfE2XbMlC5/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sariva/2Tk6RoEfE2XbMlC5/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sariva/2Tk6RoEfE2XbMlC5/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sariva/2Tk6RoEfE2XbMlC5/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sariva/2Tk6RoEfE2XbMlC5/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sariva/2Tk6RoEfE2XbMlC5/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sariva/2Tk6RoEfE2XbMlC5/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sariva/2Tk6RoEfE2XbMlC5/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"REST API - Sariva\">\u003cmeta data-mint-head property=\"og:description\" content=\"The Sariva platform\u0026#x27;s REST API — the spine that Slack, the CLI, and integrations all run on.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Sariva\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://sariva.mintlify.app/api-mcp/rest-api\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sariva.mintlify.site/_mintlify/api/og/v2?division=API+%26+MCP\u0026amp;title=REST+API\u0026amp;description=The+Sariva+platform%27s+REST+API+%E2%80%94+the+spine+that+Slack%2C+the+CLI%2C+and+integrations+all+run+on.\u0026amp;theme=2b505b5eb0badadd9153d2b0\u0026amp;signature=5c7e96c1e9f095cf1153d4555c10bbb5b143dabbe134346b7f4f9037814a8470\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"REST API - Sariva\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The Sariva platform\u0026#x27;s REST API — the spine that Slack, the CLI, and integrations all run on.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sariva.mintlify.site/_mintlify/api/og/v2?division=API+%26+MCP\u0026amp;title=REST+API\u0026amp;description=The+Sariva+platform%27s+REST+API+%E2%80%94+the+spine+that+Slack%2C+the+CLI%2C+and+integrations+all+run+on.\u0026amp;theme=2b505b5eb0badadd9153d2b0\u0026amp;signature=5c7e96c1e9f095cf1153d4555c10bbb5b143dabbe134346b7f4f9037814a8470\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/sariva/2Tk6RoEfE2XbMlC5/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Sariva\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563EB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://sariva.mintlify.app/api-mcp/rest-api\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-mcp/rest-api.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://sariva.mintlify.app/#organization\",\"name\":\"Sariva\",\"url\":\"https://sariva.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sariva/w7AcFgZxpthg-__q/images/logo-light.svg?fit=max\u0026auto=format\u0026n=w7AcFgZxpthg-__q\u0026q=85\u0026s=c4c33b806886d40fd35a203ac9afb5bf\"}},{\"@type\":\"WebSite\",\"@id\":\"https://sariva.mintlify.app#website\",\"name\":\"Sariva\",\"url\":\"https://sariva.mintlify.app\",\"publisher\":{\"@id\":\"https://sariva.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://sariva.mintlify.app/api-mcp/rest-api#webpage\",\"url\":\"https://sariva.mintlify.app/api-mcp/rest-api\",\"name\":\"REST API\",\"description\":\"The Sariva platform's REST API — the spine that Slack, the CLI, and integrations all run on.\",\"dateModified\":\"2026-11-12T03:12:20.406Z\",\"isPartOf\":{\"@id\":\"https://sariva.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://sariva.mintlify.app/api-mcp/rest-api#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://sariva.mintlify.app/api-mcp/rest-api#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Sariva\",\"item\":\"https://sariva.mintlify.app\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"REST API\",\"item\":\"https://sariva.mintlify.app/api-mcp/rest-api\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://sariva.mintlify.app/api-mcp/rest-api#article\",\"headline\":\"REST API\",\"name\":\"REST API\",\"description\":\"The Sariva platform's REST API — the spine that Slack, the CLI, and integrations all run on.\",\"url\":\"https://sariva.mintlify.app/api-mcp/rest-api\",\"mainEntityOfPage\":{\"@id\":\"https://sariva.mintlify.app/api-mcp/rest-api#webpage\"},\"dateModified\":\"2026-11-12T03:12:20.406Z\",\"publisher\":{\"@id\":\"https://sariva.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://sariva.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Sariva\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Sariva\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-mcp/rest-api.md","siteName":"Sariva","nav":{"global":null,"groups":[{"group":"Getting started","pages":[{"title":"Welcome","icon":"hand-wave","href":"/index"},{"title":"Overview — choose your path","icon":"map","href":"/getting-started/overview"}]},{"group":"Concepts","pages":[{"title":"How Sariva works","icon":"diagram-project","href":"/concepts/how-it-works"},{"title":"Agents \u0026 request flow","icon":"robot","href":"/concepts/agents"},{"title":"The GitOps approval loop","icon":"code-pull-request","href":"/concepts/gitops-loop"},{"title":"Alerting","icon":"bell","href":"/concepts/alerting"}]},{"group":"Deployment paths","pages":[{"title":"Choose a deployment path","icon":"route","href":"/deploy/overview"},{"title":"AWS EKS + Confluent Cloud","icon":"aws","href":"/deploy/aws-eks-cc"},{"title":"AWS EKS + Confluent Platform (CFK)","icon":"aws","href":"/deploy/aws-eks-cfk"},{"title":"Linux VM (Docker) + Confluent Cloud","icon":"docker","href":"/deploy/vm-docker-cc"}]},{"group":"Prerequisites","pages":[{"title":"Prerequisites checklist","icon":"list-check","href":"/prerequisites/checklist"},{"group":"AWS","pages":[{"title":"Amazon EKS","icon":"aws","href":"/prerequisites/aws/eks"},{"title":"EKS sizing for CFK/CP","icon":"aws","href":"/prerequisites/aws/sizing"}]},{"group":"Confluent Platform (CFK)","pages":[{"title":"Confluent Platform package","icon":"scale-balanced","href":"/prerequisites/cfk/package"},{"title":"Permissions model","icon":"shield-halved","href":"/prerequisites/cfk/permissions"},{"title":"mTLS certificate options","icon":"certificate","href":"/prerequisites/cfk/mtls"},{"title":"Metrics: how they work","icon":"chart-line","href":"/prerequisites/cfk/metrics"}]},{"group":"Confluent Cloud","pages":[{"title":"Confluent Cloud overview","icon":"cloud","href":"/prerequisites/confluent-cloud/overview"},{"title":"Service accounts \u0026 up-front keys","icon":"key","href":"/prerequisites/confluent-cloud/service-account-keys"}]},{"title":"GitHub","icon":"github","href":"/prerequisites/github"},{"title":"LLM backend","icon":"brain","href":"/prerequisites/llm-backend"},{"title":"Channels and conversations","icon":"comments","href":"/prerequisites/channels-and-conversations"},{"group":"Slack","pages":[{"title":"Create the Slack app","icon":"slack","href":"/prerequisites/slack/overview"},{"title":"Scopes \u0026 secrets","icon":"key","href":"/prerequisites/slack/scopes-secrets"},{"title":"Channels \u0026 verify","icon":"circle-check","href":"/prerequisites/slack/channels-verify"}]},{"group":"Microsoft Teams","pages":[{"title":"Create the Teams bot","icon":"microsoft","href":"/prerequisites/teams/overview"},{"title":"Install the app in Teams","icon":"box","href":"/prerequisites/teams/install-app"},{"title":"Teams: channels and verification","icon":"microsoft","href":"/prerequisites/teams/channels-verify"}]},{"group":"Paging","pages":[{"title":"PagerDuty","icon":"bell","href":"/prerequisites/paging/pagerduty"},{"title":"xMatters","icon":"bell","href":"/prerequisites/paging/xmatters"}]},{"group":"Log sources","pages":[{"title":"New Relic","icon":"magnifying-glass-chart","href":"/prerequisites/log-sources/newrelic"}]}]},{"group":"Setup tasks","pages":[{"title":"AWS S3/DynamoDB state with GitHub Actions","icon":"aws","href":"/install-setup/access-and-state/aws-github-actions"},{"title":"Confluent Cloud credentials for CI","icon":"cloud-arrow-up","href":"/install-setup/access-and-state/cc-ci-credentials"},{"title":"Install the CLI","icon":"download","href":"/getting-started/install-cli"},{"title":"Run the wizard — Confluent Cloud","icon":"wand-magic-sparkles","href":"/install-setup/wizard"},{"title":"Run the wizard — CFK","icon":"wand-magic-sparkles","href":"/install-setup/wizard-cfk"},{"title":"Set up certificates","icon":"certificate","href":"/install-setup/cfk-certificates"},{"title":"Review generated files","icon":"file-lines","href":"/install-setup/generated-files"},{"title":"Create the runtime Secret","icon":"lock","href":"/install-setup/runtime-secret"},{"title":"Wire the pod's AWS identity","icon":"id-badge","href":"/install-setup/irsa"},{"title":"Cross-account reader setup","icon":"key","href":"/install-setup/cross-account-reader"},{"title":"Deploy the Sariva platform","icon":"rocket","href":"/install-setup/deploy-platform"},{"title":"Use your admin bearer","icon":"key","href":"/install-setup/mint-bearer"},{"title":"Bootstrap GitOps and run first apply","icon":"layer-group","href":"/install-setup/infrastructure"}]},{"group":"Connecting Kafka clusters","pages":[{"title":"Overview — connecting a Kafka cluster","icon":"link","href":"/connecting-clusters/overview"},{"title":"Connecting a CFK cluster","icon":"link","href":"/connecting-clusters/cfk"},{"title":"Confluent Cloud: per-cluster credentials","icon":"shield-halved","href":"/connecting-clusters/cc-per-cluster-access"},{"title":"Confluent Cloud: audit logs","icon":"file-lines","href":"/connecting-clusters/cc-audit-logs"},{"title":"Kubernetes Secret","icon":"dharmachakra","href":"/connecting-clusters/kubernetes-secret"},{"title":"AWS Secrets Manager","icon":"aws","href":"/connecting-clusters/aws-secrets-manager"},{"title":"AWS SSM Parameter Store","icon":"aws","href":"/connecting-clusters/aws-ssm"},{"title":"file:// and env:// references","icon":"file-shield","href":"/connecting-clusters/file-env"},{"title":"Self-hosted Kafka","icon":"server","href":"/connecting-clusters/self-hosted"},{"title":"Amazon MSK","icon":"aws","href":"/connecting-clusters/msk"},{"title":"Migrating an older credential","icon":"right-left","href":"/connecting-clusters/migration"},{"title":"Credential rotation","icon":"rotate","href":"/connecting-clusters/rotation"}]},{"group":"Validate \u0026 operate","pages":[{"title":"Deploy a CP cluster (CFK)","icon":"rocket","href":"/operate/deploy-cluster-cfk"},{"title":"Topics \u0026 growth (CFK)","icon":"diagram-project","href":"/operate/topics-cfk"},{"title":"Validate and operate","icon":"circle-check","href":"/install-setup/health-check"},{"title":"Using Sariva","icon":"comments","href":"/using-sariva/overview"}]},{"group":"For application teams","pages":[{"title":"For application teams","icon":"users","href":"/app-teams/overview"},{"title":"Register an application","icon":"plus","href":"/app-teams/register"},{"title":"Health \u0026 alerts","icon":"bell","href":"/app-teams/health-and-alerts"},{"title":"App logs \u0026 pod health","icon":"file-magnifying-glass","href":"/app-teams/logs-and-pod-health"},{"title":"Ask Sariva about your app","description":"Ask lag/health questions in Slack or Teams — and duplicate/loss risk questions — scoped to your app.","icon":"comments","href":"/app-teams/ask-sariva"}]},{"group":"API \u0026 MCP","pages":[{"title":"REST API","icon":"code","href":"/api-mcp/rest-api"},{"title":"MCP server","description":"Let external AI agents call Sariva's operational tools over the Model Context Protocol.","icon":"plug","href":"/api-mcp/mcp"}]},{"group":"Reference","pages":[{"title":"Support matrix","icon":"table-list","href":"/reference/support-matrix"},{"title":"Hand-author the configuration","icon":"file-pen","href":"/reference/hand-authoring-config"},{"title":"RBAC","icon":"shield-keyhole","href":"/reference/rbac"},{"title":"Logging \u0026 log levels","icon":"file-lines","href":"/reference/logging"},{"title":"State backend \u0026 CI network","icon":"database","href":"/install-setup/state-backend"},{"title":"CI → AWS auth \u0026 credentials","icon":"key-skeleton","href":"/install-setup/ci-aws-auth"},{"title":"Minimum read-only ACLs","icon":"shield-halved","href":"/prerequisites/confluent-cloud/minimum-acls"},{"title":"Audit logs","icon":"file-lines","href":"/prerequisites/confluent-cloud/audit-logs"}]},{"group":"Troubleshooting","pages":[{"title":"Troubleshooting","icon":"wrench","href":"/troubleshooting"}]},{"group":"FAQ","pages":[{"title":"FAQ","icon":"circle-question","href":"/faq"}]},{"group":"Changelog","pages":[{"title":"Changelog","icon":"clock-rotate-left","href":"/changelog"}]}]},"basePath":"","title":"REST API - Sariva","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":[],"chunks":[]}