Changing an agent

Switch one off, retune it, rewrite its greeting — from your own code.

One call, only the fields you send

PATCH /v1/agents/:publicId. The body is any of the agent's settings, plus name (up to 120 characters) and isActive. Fields you leave out are left alone.

bash
curl -X PATCH https://api.tigerbase.cloud/v1/agents/a1b2c3d4… \
  -H "Authorization: Bearer $TIGERBASE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tagline":"Closed for the holiday — back on the 5th.","greetingEnabled":false}'
200 OK
{
  "publicId": "a1b2c3d4…",
  "name": "Returns Desk",
  "isActive": true,
  "createdAt": "2026-10-01T09:12:44.000Z",
  "settings": {
    "tagline": "Closed for the holiday — back on the 5th.",
    "greetingEnabled": false,
    "…": "…"
  }
}

The response carries the agent with its settings as they now are, so you do not need a second request to see your own update.

NoteA field it does not know is refused

The body is validated against the agent's settings. A misspelt key — greetingEnable — answers 400 naming it, rather than succeeding and changing nothing.

What you would use it for

A maintenance windowSwitch the agent off with isActive: false before a deploy and on afterwards, from the same script that runs the deploy.
Opening hoursTurn the greeting off out of hours, or change the tagline to say when somebody will be back.
Rolling out a promptChange systemInstruction across several agents from one script, rather than clicking through the dashboard.
Trying a modelaiProvider and aiModel, on one agent, reversible with the same call.

Four fields it refuses

WarningThese are credentials, or the controls that protect one

customAiKey — a model provider credential.
handoffWebhookUrl — where every handoff conversation is delivered. Pointed elsewhere, somebody reads your customers' conversations as they happen, and nothing else changes to say so.
handoffWebhookSecret — the signature proving those deliveries are ours.
allowedOrigins — the only thing protecting your publishable key.

None of the four is something an integration needs to automate, and all four are a breach rather than a mistake if a key leaks. They are changed in the dashboard, which is behind a login — an API key is a string in an environment file.

403 Forbidden
{
  "statusCode": 403,
  "error": "Forbidden",
  "message": "A server API key cannot set handoffWebhookUrl. These are credentials, or the controls that protect one, and they are changed in the dashboard rather than through a key that lives in an environment file.",
  "fields": ["handoffWebhookUrl"]
}
typescript
try {
  await tigerbase.updateAgent(id, { handoffWebhookUrl: "https://…" });
} catch (error) {
  error.code;    // "forbidden_field" — not forbidden_scope
  error.message; // names which fields
}

WarningRefused, not quietly dropped

A caller who believes they turned a webhook off and finds it still running will not look again. So the request fails and names the fields, rather than succeeding with them stripped out — and nothing in that request is written.

The code is forbidden_field rather than forbidden_scope on purpose: nothing about your key is wrong, editing its scopes changes nothing, and the fix is the dashboard.

Creating and deleting

The same write scope also creates and deletes agents. Deleting asks for the agent's name back, and is reversible from the dashboard for thirty days — see Creating & deleting.

Scope, and a word about the key

Needs write. The agent is looked up inside the key's own App, so an id from anywhere else is not_found.

Grant it to one key, for one job

TipThis is the scope that does real damage if a key leaks

A key for a nightly report should have read and nothing else — so that when it does leak, and one will, the blast radius is a report.