OpenAPI

OpenAPI document

Every path. No payload schemas. The API describes itself as an OpenAPI 3.1.0 document. It is public, needs no key and holds no organisation data. It lists 59 version 1 paths and 73 operations, each method with the scope it needs. It does not describe request or response fields: its own text says "Payload fields are not specified by this discovery document". Use the reference pages for write fields.

What you can rely on.

  • Every v1 path and each method on it, including the webhooks door, the routine runner, the chat doors, usage and the MCP endpoint.

  • The security scheme: HTTP bearer. The security note names the key format: keys begin with qk_.

  • The scope each operation needs.

  • The same facts as the API reference, in a form a tool can read.

Read before you generate.

  • No request body schemas. Write fields are on the reference pages: customers and sales, work, finance, AI and chat.

  • No response schemas. Response fields: not specified by the document; read what each call returns.

  • No examples, no webhook payload definitions and no error schema. Errors are on the errors page.

  • A generated client will have typed methods for paths and untyped bodies. Treat every body as a plain object and every id and money value as a string.

Fetch it. Generate from it.

There is no official SDK and no official CLI today. The document is the only machine-readable asset. Use any OpenAPI 3.1 tool you already trust.

  • Fetch the document:

  • Import it into a request tool that reads OpenAPI 3.1, to get a collection of every path with the bearer scheme set up. Put your key in the tool's bearer field, or read it from $TERANIA_KEY.

  • Generate a client with a generator that supports OpenAPI 3.1. You get method names and paths. You do not get typed bodies, so add your own types from the reference pages.

  • Check which scope a path needs before you create a key. See scopes.

  • Re-fetch when you upgrade. Record responses carry API-Version: 1. There is no published change policy for version 1 yet.

bash
curl https://app.terania.ai/api/v1/openapi.json -o terania-openapi.json

Where to go from here.