API reference

API reference

Version 1. Every path on one page. The Terania API lets your own software read an organisation's records and make a small, closed set of changes. It is JSON over HTTPS, authenticated with a tenant API key. Version 1 has 59 documented paths and 73 operations. Most are reads. There are 12 writes, a webhook subscription door and a routine runner. There are no delete endpoints for records: the only deletes are a webhook subscription and a chat knowledge source.

The version is in the path.

Every call goes to /api/v1. Record responses carry the header API-Version: 1; the OpenAPI document and MCP responses do not. Sending a version header of your own changes nothing: the path decides. No deprecation or sunset date is announced for version 1.

  • Path version: /api/v1/...

  • Response header: API-Version: 1

  • Client version header: ignored, does not negotiate

Read this before you plan.

Version 1 is deliberately small. Plan around these gaps.

  • No delete endpoints for records. Only a webhook subscription and a chat knowledge source can be deleted.

  • No bulk endpoints, no GraphQL, no API sandbox or test environment.

  • No filters on list routes: after and limit only. The customers list is fixed to active customers.

  • No browser use. The API sends no cross-origin headers, so treat it as server to server.

  • No OAuth for the API: a tenant API key is the only credential. See the OpenAPI document: there is no official SDK and no official CLI.

Twenty-three resources and eleven doors.

READ below means GET on the collection and on one item (/:id). Every record path has a collection and an item form. Scopes are key scopes: see the scopes reference. Money and identifiers: every large integer, such as an id or an amount in minor units, is sent as a decimal string.

ResourcePathMethodsScopes

customers

/api/v1/customers, /:id

GET, POST, PATCH

customer:read, customer:create, customer:update

people

/api/v1/people, /:id

GET

member:read

leads

/api/v1/leads, /:id

GET, POST, PATCH

lead:read, lead:create, lead:update

deals

/api/v1/deals, /:id

GET, POST, PATCH

deal:read, deal:create, deal:update

proposals

/api/v1/proposals, /:id

GET

proposal:read

estimates

/api/v1/estimates, /:id

GET

estimate:read

contracts

/api/v1/contracts, /:id

GET

contract:read

forms

/api/v1/forms, /:id

GET

form:read

form submissions

/api/v1/forms/:id/submissions, /:submissionId

GET

form-submission:read

ResourcePathMethodsScopes

projects

/api/v1/projects, /:id

GET

project:read

tasks

/api/v1/tasks, /:id

GET, POST, PATCH

task:read, task:create, task:update

time-entries

/api/v1/time-entries, /:id

GET

time:read (own entries)

cases

/api/v1/cases, /:id

GET, POST, PATCH

case:read, case:create, case:assign, case:update

meetings

/api/v1/meetings, /:id

GET

meeting:read

assets

/api/v1/assets, /:id

GET

asset:read

ResourcePathMethodsScopes

invoices

/api/v1/invoices, /:id

GET, POST (draft only)

invoice:read, invoice:create

recurring-invoices

/api/v1/recurring-invoices, /:id

GET

recurring-invoice:read

credit-notes

/api/v1/credit-notes, /:id

GET

credit-note:read

expenses

/api/v1/expenses, /:id

GET

expense:read

items

/api/v1/items, /:id

GET

item:read

Resource or doorPathMethodsScopes

ai-employees

/api/v1/ai-employees, /:id

GET

ai-employee:read

missions

/api/v1/missions, /:id

GET, POST

mission:read, mission:assign

automations (runner)

/api/v1/automations/:id/runs

POST

automation:run

calls

/api/v1/calls, /:id

GET (metadata only)

call:read

chat widgets

/api/v1/chat/widgets, /:id

GET, PATCH

chat-widget:read, chat-widget:manage

chat knowledge sources

/api/v1/chat/widgets/:id/sources, /:sourceId

POST, DELETE

chat-widget:manage

chat conversations

/api/v1/chat/widgets/:id/conversations, /api/v1/chat/conversations/:id

GET

chat-conversation:read

chat conversation actions

/api/v1/chat/conversations/:id/actions

POST

case:create

usage

/api/v1/usage

GET

billing:read

DoorPathMethodsScopes

webhooks

/api/v1/webhooks, /:id

GET, POST; DELETE on /:id

webhook:read, webhook:manage

MCP server

/api/v1/mcp

POST

read scope of the kind, or the act scope of the tool (see MCP tools)

OpenAPI document

/api/v1/openapi.json

GET (public)

none

What every read does.

These rules hold for every record read.

  • Answers are field allowlists. Money-sensitive and private fields never cross the API. An erased record reads as erased or as 404.

  • A key reaches only its issuer's organisation. An id from another organisation answers 404, the same as an id that does not exist.

  • A read of a record whose linked child rows pass 1,000 (or, for deals, 100 pipelines or 100 stages in a pipeline) is refused with 400 invalid_request: "There is too much linked data for one API read. Open it in the app instead."

  • Response bodies are each resource's own shape. The OpenAPI document does not publish payload schemas.

Pick the page you need.

Each reference page lists the exact write fields and one `curl` call.