Skip to content
API explorerProductOpen console

Core API changelog

Changes to the Core API, newest first. Each entry says what changed and what a client that already calls the API has to do. Nothing listed here removed a route, a field or an error code.

Live speech to text, and names that come back right. A client written before this day keeps working without a change.

Change Do you have to act Worth doing
GET /voice/transcribe/stream: live audio as text, over a WebSocket No Stream audio while the person speaks: the text arrives about 0.3 s after they stop, against about 4 s for a finished recording
terms on POST /voice/transcribe No Send the names and words you expect, such as staff names and your brand

See Transcribe live audio.

Four additions. A client written before this day keeps working without a change.

Change Do you have to act Worth doing
subject_check on an MCP server: whoami or host No Set host on a session_bearer server that has no whoami, such as Notion’s, to bind each person’s own token
A bind answers verified: whoami or host No Nothing
A memory loop switch in the agent’s settings No Turn it on to let people ask the agent to remember and forget things about them
A files loop switch: the agent hands over a Word, Markdown, text or CSV file No Turn it on, and show the file block your page receives

See Bind a signed-in user’s token Memory and Files.

Your backend can now write its agent’s knowledge base, and a request that changes something can be sent again safely. A client written before this day keeps working without a change. The table says what is worth doing anyway.

Change Do you have to act Worth doing
Knowledge documents can be written and read No Nothing, unless you want it
Two new scopes, kb:read and kb:write No A token needs them to use the new routes. Create a new token to add them
A kb.updated event for a token No Set an events address if you would rather be told than poll
Knowledge writes have their own rate bucket No Nothing
An edited document is indexed at once No Nothing
Idempotency keys No Send an Idempotency-Key on calls, messages, publishes and agent turns you may have to send again
Voice minutes are checked against the plan No Handle 402 PLAN_LIMIT_REACHED on speech, voice jobs and call placement
The stream’s error frame has a code No Branch on code in the frame
A voice job reads app from the body No Nothing
Response headers can be read from a browser No Nothing
Tokens can be managed in the console No Nothing
Agent settings can be read and changed No Nothing, unless you want it
A new scope, agent:configure No A token needs it for the two new routes. Create a new token to add it
cache_ttl and cache_hit on completions No Send cache_ttl: 0 on any request that carries live data. A reply from the cache costs nothing and uses no AI turn
An agent turn can stream No Send stream: true and speak or show the reply while it is written. An agent with connected tools still sends the whole reply as one piece for now
An agent turn takes the person’s context No Send context with where the person is, such as {"interaction": "voice"}
A stream that fails uses no AI turn No Nothing. A streamed completion or turn is counted once it sends done, as a call without a stream is counted once it answers. Since 19 Nov a streamed completion that failed after its headers were sent was charged one AI turn; that was a bug

Agent turns stream, and take the person’s context

Section titled “Agent turns stream, and take the person’s context”

POST /agent/turn takes stream: true. The reply arrives as delta frames while the agent writes it, then one done frame with the whole turn, the frames a streamed completion uses. The agent’s markup for quick replies and images is held back from the pieces. Keep the text from done. When the agent’s settings turn streaming off or masking of personal data on, only done arrives. An agent with connected tools sends its whole reply as one delta for now.

It also takes context, one JSON object of at most 2048 bytes about where the person is, read by the agent as a hint, as a widget page’s context is. A turn without either field answers exactly as before. The client libraries have agent.stream (TypeScript, Python) and Agent.Stream (Go). See Run one turn of your agent.

Ten new routes under /knowledge: list, read, add, change and delete a document, upload a file, list and add a website to crawl, crawl it again, and export what changed since a version. Each document reports how its indexing stands as index.status: queued, indexing, ready or failed with a reason.

Before this, a knowledge base could only be written from the console.

POST /knowledge/search is unchanged and still needs only kb:search.

See Knowledge documents.

Two new routes, GET and PATCH /agent/settings, read and change how your agent runs: the model it answers on, the cap on a reply, the temperature, and the harness, streaming and redaction switches. Before this they could only be changed in the console.

A new model is tested with one real call before it is saved. A model that is not on your plan answers 403 MODEL_NOT_AVAILABLE, and one that does not answer the test answers 422 MODEL_NOT_SERVING. Nothing changes in either case.

The routes need a new scope, agent:configure. agent:run does not include it. They count against a rate bucket of their own.

See Agent settings.

kb:read lists and reads documents and exports changes. kb:write adds, changes and deletes them, uploads files and starts crawls. Neither is implied by kb:search, and neither implies the other.

Scopes are fixed when a token is created. An existing token does not gain the new ones. Revoke it and create it again with the scopes you want, or create a second token for the job that writes knowledge.

A workspace owner can give a token an events_url. The platform posts a small signed body there when a document finishes indexing, fails, or is deleted, and retries when your server does not answer 2xx.

See Events.

Knowledge writes have their own rate bucket

Section titled “Knowledge writes have their own rate bucket”

Writes are counted apart from knowledge reads and search, each at the plan’s rate. A bulk import cannot use up the searches a live backend depends on. X-RateLimit-* on a write describes the write bucket.

A change to a document, from the console or the API, used to wait up to five minutes for the next indexing pass. It is now indexed within seconds, as a new document always was.

The document and source routes are tools on the MCP server: knowledge_documents_list, knowledge_document_get, knowledge_document_create, knowledge_document_update, knowledge_document_delete, knowledge_sources_list, knowledge_source_create and knowledge_source_crawl. A token sees them only when it holds kb:read or kb:write.

Nine routes that change something now take an Idempotency-Key header: placing a call, posting a message, publishing to a Page, running an agent turn, starting a voice job, adding a document, uploading a file, adding a website and crawling one again.

  • The first request that succeeds is remembered for 24 hours. A repeat with the same key gets the same answer, with Idempotent-Replayed: true, and runs nothing.
  • New errors, only for a request that sends the header. 409 IDEMPOTENCY_IN_PROGRESS while the first request is still running, 422 IDEMPOTENCY_KEY_REUSED when the key was first sent with a different request, and a 503 with Retry-After when the key cannot be checked.
  • A request without the header behaves as before.
  • Over MCP the key is the idempotency_key argument of the tool.
  • The client libraries take a key from version 0.3.0 and then retry the request for you.

See Sending a request again.

Voice minutes are checked against the plan

Section titled “Voice minutes are checked against the plan”

Speech, voice jobs and phone calls were already counted as voice minutes. The count is now checked before the work starts.

  • New error on existing routes. 402 PLAN_LIMIT_REACHED on POST /voice/speak, POST /voice/transcribe, POST /voice/jobs and POST /voice/calls when the plan’s voice minutes for the period are used up. Reading a call or a job is not affected.
  • New field. GET /whoami has plan.voice_minutes with used, limit and resets_at.
  • A client that treats every 402 the same way, by stopping and telling the workspace’s owner, already does the right thing.

See Your plan’s voice minutes.

The error frame of a streamed completion carried only a message. It now carries code and request_id as well. The codes are the ones a refused call carries. A reader that only used message is not affected.

See Streaming.

POST /voice/jobs read the app only from ?app= in the URL, while every other POST reads it from the body. It now reads both, and the URL wins. A request that named its app in the body used to run against the workspace’s default app. If your workspace has more than one app and you sent app in the body, your jobs now run against the app you named.

Response headers can be read from a browser

Section titled “Response headers can be read from a browser”

The API now lists its response headers for cross-origin readers: X-Request-Id, the X-RateLimit-* headers, Retry-After, the token headers, X-Omazy-Speech-Lang and Idempotent-Replayed. The API explorer shows them. Nothing changes for a server, and a token still belongs on a server.

A workspace owner can create, rotate and revoke Core API tokens under Settings, API tokens. Before this, a token was created with a request to the console API. That route is unchanged.

See Getting one.

These changes went live on this day. A client written before it keeps working without a change. The table says what is worth doing anyway.

Change Do you have to act Worth doing
Rate limits follow the plan No Read the limit from the headers, not from a constant
AI turns are counted against the plan No Handle 402 PLAN_LIMIT_REACHED
Workspace and subscription checks No Handle 403 WORKSPACE_INACTIVE and 402 SUBSCRIPTION_PAUSED
Tokens can expire and rotate No Alert on X-Omazy-Token-Use: previous
Request ids and rate limit headers No Log X-Request-Id with every failure
The Core API over MCP No Nothing, unless you want it
Client libraries No Nothing, unless you want them

Each rate bucket used to hold 600 requests per 10 minutes for every token. It now holds ten times the plan’s calls per minute. The free plan allows 60 a minute, so a token on it has what it had before. A token on a larger plan has more. No token has less than before.

Every plan can use the Core API, the free plan included.

  • X-RateLimit-Limit now differs between workspaces. If your client has 600 written into it, read the header.
  • The 429 message carries your plan’s number in place of 600.
  • GET /whoami has a new plan.rate_per_minute.

See Rate limits.

A completion or an agent turn that the API answers now uses one AI turn from the workspace’s plan. It is the same allowance the widget and the console use. Before this, calls through the Core API were not counted against it.

  • New error. 402 PLAN_LIMIT_REACHED on POST /ai/complete and POST /agent/turn when the plan’s AI turns for the period are used up. The API keeps answering until the workspace is 10% past the included number. Other routes are not affected.
  • New field. GET /whoami has plan.ai_turns with used, limit and resets_at.
  • A client that treats every 402 the same way, by stopping and telling the workspace’s owner, already does the right thing.

See Your plan’s AI turns.

The API now checks the workspace behind a token before any route runs.

  • New error. 403 WORKSPACE_INACTIVE when the workspace is suspended or closed.
  • New error. 402 SUBSCRIPTION_PAUSED when its subscription is paused.

Both apply to every route, GET /whoami and the MCP server included. Neither is fixed by retrying. See Before any route runs.

A workspace owner can now create, list, rotate and revoke tokens through the console API. Tokens issued before this day have no expiry and keep working.

  • A token can carry an expiry. Past it the API answers 401 UNAUTHORIZED with the message core token expired; rotate the install to get a new one.
  • Rotating keeps the old token working for an overlap, 24 hours unless the owner says otherwise.
  • New headers. X-Omazy-Token-Expires-At on every response to a token with a deadline, and X-Omazy-Token-Use: previous while a server is still on a rotated token.
  • New fields. GET /whoami has install_id, token and token_expires_at.
  • Every 401 now carries WWW-Authenticate: Bearer.

See Authentication.

  • New header. X-Request-Id on every response, a refused one included. Send your own and it is kept.
  • New headers. X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset on every response from a limited route, and Retry-After on a 429.
  • Knowledge search has its own rate bucket. It used to share one with completions and agent turns, so a storm of searches could stop live turns.

See Errors and limits.

POST /mcp is new. It serves the same routes as tools over the Model Context Protocol, to the same token. A tool call runs the route it names, so scopes, limits and errors are the route’s own.

See Core API over MCP.

Version 0.1.0 of the TypeScript, Python and Go clients.

See Client libraries.

Omazy CX documentation. One voice. Every channel. Always on.

Founded by Mosthofa Imran · imran@omazy.ai