Skip to content

API reference

API: Settings

Markdown version

MethodPathWhat it doesScope
GET/v1/assistantsOutside assistants connected to the MCP server: what each may do (read, draft or propose) and whether it's on the allowlistsettings:read
PATCH/v1/assistants/:idChange what an outside assistant may do through the MCP server, or whether it's on the allowlist (owners; more access, or allowing it, in the web app only)settings:write
PUT/v1/assistants/allowlistTurn the allowlist on (only allowed assistants may connect) or off (owners; off in the web app only)settings:write
POST/v1/assistants/keys/:key_idSet what an API key may do through the MCP server before its assistant first connects, or whether it's on the allowlist (owners; more than read in the web app only)settings:write
GET/v1/settings/aiModel routing per task, bring-your-own key status, outbound switchsettings:read
PUT/v1/settings/aiUpdate model routing, your own Anthropic key, or the outbound switch (owner)settings:write
GET/v1/settings/ai-disclosureThe line added to emails an agent sends on its own (EU AI Act Art. 50); emails a person approves don't carry itsettings:read
PUT/v1/settings/ai-disclosureTurn the disclosure on or off, or reword it (owners; it must still say an AI wrote the message)settings:write
POST/v1/settings/ai/resume-backgroundResume background AI paused after a spike in model calls (owner)settings:write
GET/v1/settings/notificationsOrganization notification defaultssettings:read
PUT/v1/settings/notificationsUpdate organization notification defaults (owner)settings:write
GET/v1/settings/outside-deletesWhether connected assistants and apps may delete, merge or remove things on their own; off by defaultsettings:read
PUT/v1/settings/outside-deletesLet outside assistants delete, merge or remove things on their own, or stop them (owners, in the app) (web app only)settings:write
PUT/v1/settings/session-replayTurn session replay on or off for the organization (owners). It's off by default; turning it off deletes the organization's recordings (web app only)—
GET/v1/usage/llmModel usage and estimated cost this calendar month (UTC)billing:read

Examples

GET /v1/assistants

Outside assistants connected to the MCP server: what each may do (read, draft or propose) and whether it's on the allowlist

curl -s "https://api.tendbrook.com/v1/assistants" \
  -H "Authorization: Bearer $EC_API_KEY"
const res = await fetch(`https://api.tendbrook.com/v1/assistants`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();

PATCH /v1/assistants/$ID

Change what an outside assistant may do through the MCP server, or whether it's on the allowlist (owners; more access, or allowing it, in the web app only)

curl -s -X PATCH "https://api.tendbrook.com/v1/assistants/$ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.tendbrook.com/v1/assistants/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

PUT /v1/assistants/allowlist

Turn the allowlist on (only allowed assistants may connect) or off (owners; off in the web app only)

curl -s -X PUT "https://api.tendbrook.com/v1/assistants/allowlist" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.tendbrook.com/v1/assistants/allowlist`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

POST /v1/assistants/keys/$KEY_ID

Set what an API key may do through the MCP server before its assistant first connects, or whether it's on the allowlist (owners; more than read in the web app only)

curl -s -X POST "https://api.tendbrook.com/v1/assistants/keys/$KEY_ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.tendbrook.com/v1/assistants/keys/${key_id}`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/settings/ai

Model routing per task, bring-your-own key status, outbound switch

curl -s "https://api.tendbrook.com/v1/settings/ai" \
  -H "Authorization: Bearer $EC_API_KEY"
const res = await fetch(`https://api.tendbrook.com/v1/settings/ai`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();

PUT /v1/settings/ai

Update model routing, your own Anthropic key, or the outbound switch (owner)

curl -s -X PUT "https://api.tendbrook.com/v1/settings/ai" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.tendbrook.com/v1/settings/ai`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/settings/ai-disclosure

The line added to emails an agent sends on its own (EU AI Act Art. 50); emails a person approves don't carry it

curl -s "https://api.tendbrook.com/v1/settings/ai-disclosure" \
  -H "Authorization: Bearer $EC_API_KEY"
const res = await fetch(`https://api.tendbrook.com/v1/settings/ai-disclosure`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();

PUT /v1/settings/ai-disclosure

Turn the disclosure on or off, or reword it (owners; it must still say an AI wrote the message)

curl -s -X PUT "https://api.tendbrook.com/v1/settings/ai-disclosure" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.tendbrook.com/v1/settings/ai-disclosure`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

POST /v1/settings/ai/resume-background

Resume background AI paused after a spike in model calls (owner)

curl -s -X POST "https://api.tendbrook.com/v1/settings/ai/resume-background" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.tendbrook.com/v1/settings/ai/resume-background`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/settings/notifications

Organization notification defaults

curl -s "https://api.tendbrook.com/v1/settings/notifications" \
  -H "Authorization: Bearer $EC_API_KEY"
const res = await fetch(`https://api.tendbrook.com/v1/settings/notifications`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();

PUT /v1/settings/notifications

Update organization notification defaults (owner)

curl -s -X PUT "https://api.tendbrook.com/v1/settings/notifications" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.tendbrook.com/v1/settings/notifications`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/settings/outside-deletes

Whether connected assistants and apps may delete, merge or remove things on their own; off by default

curl -s "https://api.tendbrook.com/v1/settings/outside-deletes" \
  -H "Authorization: Bearer $EC_API_KEY"
const res = await fetch(`https://api.tendbrook.com/v1/settings/outside-deletes`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();

GET /v1/usage/llm

Model usage and estimated cost this calendar month (UTC)

curl -s "https://api.tendbrook.com/v1/usage/llm" \
  -H "Authorization: Bearer $EC_API_KEY"
const res = await fetch(`https://api.tendbrook.com/v1/usage/llm`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();

Request and response schemas: https://www.tendbrook.com/openapi.json. All resources: API reference.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.