Developers

REST API

Work with answerable's tickets from your own scripts and services. The API offers the same actions as the MCP server. Its OpenAPI description and the endpoints on this page come from the same table in answerable's code.

Base URL

Base URL
https://staging.preview.answerable.co/api/v1

Paths below are relative to it. Requests and responses are JSON.

Authentication

Send an API key, or an OAuth access token issued for this API, as a Bearer token:

Shell
curl https://staging.preview.answerable.co/api/v1/workspaces \
  -H "Authorization: Bearer $ANSWERABLE_KEY"

OAuth tokens only work at the server they were issued for, so ask for one with resource=https://staging.preview.answerable.co/api/v1. Tokens for the MCP server don't work here.

Requests

  • Reads are GET, with their options in the query string. Changes are POST, or PATCH to update tickets, articles, the agent's settings, or the workspace's, with a JSON object as the body.
  • {workspace} is the workspace's address, as GET /workspaces lists it. {number} is the ticket's number: 42 for #42.
  • Browsers can call the API from any site: keys never travel in cookies.

Errors

A request that works answers 200 with the JSON its endpoint describes. One that doesn't answers with a status and an error:

JSON
{
  "error": {
    "code": "conflict",
    "message": "The customer wrote again. Read the new message before drafting."
  }
}
StatusCodeWhen
400invalidThe request isn't valid. The message names the field.
401unauthorizedThe key or token is missing, revoked, or expired.
402payment_requiredThe workspace's trial or plan has ended.
403forbiddenThe key or connection doesn't have the permission this needs.
404not_foundNo such endpoint, workspace, or ticket, or no access to it.
409conflictThe ticket changed since it was read, such as the customer writing again, or someone saved the agent's settings since expectedVersion.
429limitedA limit was reached. Retry-After says when to try again.
500internalSomething went wrong in answerable. Try again.

Workspaces and tickets you can't reach answer 404, the same as ones that don't exist.

Rate limits

Every response carries your key's request limit:

RateLimit-Limit
Requests allowed a minute
RateLimit-Remaining
Requests left in the current window
RateLimit-Reset
Seconds until the window resets

A 429 also has Retry-After, in seconds. The other limits, such as drafts and sends an hour, answer 429 the same way.

Pagination

GET /workspaces/{workspace}/tickets returns up to limit tickets (25 unless you ask for up to 100) and a nextCursor. Pass it as cursor to get the next page. It's null on the last one.

Shell
curl "https://staging.preview.answerable.co/api/v1/workspaces/acme/tickets?view=attention&limit=50" \
  -H "Authorization: Bearer $ANSWERABLE_KEY"

Revisions and retries

A ticket's revision goes up each time the customer writes. Drafting a reply, or sending one you wrote, takes the revision you read. If the customer wrote since, the request answers 409 and nothing is saved or sent: read the ticket again first. Sending the ticket's current draft takes its draftId and draftVersion instead, with body to send it with your edits. A draft that comes with actions goes out once they've run, so sending it returns no messageId or delivery yet; if one of them doesn't go through, the draft comes back, saying why.

A reply sent through the API is the key's person's own: it goes out right away, without the agent's safeguards. External agents can still send one customer at most 5 replies a day, new tickets included.

Changing the agent's settings works the same way: send the expectedVersion you read, and if someone saved since, the request answers 409 and nothing changes.

When you send, add an Idempotency-Key header, up to 200 characters, so a retried request can't email the customer twice. A repeat with the same key sends nothing new and answers with duplicate: true. Without a key, the same text for the same revision counts as a repeat.

Taking an action works the same way: with the same Idempotency-Key, a repeat takes nothing new and answers with the action it took, as it is now, and duplicate: true. Without a key, the same action with the same inputs within ten minutes counts as a repeat, unless it failed.

Who a reply goes to

A reply goes to the ticket's customer and copies everyone else on the ticket's latest email, as reply-all would. The ticket's replyCopies lists them, and a draft's cc lists the people it copies. To copy others instead, pass cc with their addresses when you draft or send, or [] for the customer alone.

Receiving customers' messages

Your own forms, apps, and channels can bring customers' messages into answerable with Receive a customer's message, which needs the Receive messages permission. Each message opens a ticket, or continues the customer's ticket you name with ticket, and answerable's agent investigates it like an email, under the same rules, safeguards, and limits. Replies go to the customer's email, by email, and their answer comes back to the same ticket.

Set verified only when your system confirmed the customer owns the address, for example because they're signed in. Otherwise the message counts as from an unverified sender: it's labeled, the customer's name isn't kept, and the agent's safeguard for Replies to unverified senders applies (by default, they wait for approval).

Files go in attachments as public https addresses. answerable downloads each once, right away, before the agent investigates, and keeps it in its own storage. Send an Idempotency-Key header, such as your own id for the message, so a retried request adds nothing; a repeat answers with status: "duplicate". Messages count per workspace, and webhooks hear about them as message.received with channel: "API".

Endpoints

EndpointNeeds
List workspaces
GET /workspaces
Read tickets
List tickets
GET /workspaces/{workspace}/tickets
Read tickets
Get a ticket
GET /workspaces/{workspace}/tickets/{number}
Read tickets
Search the knowledge
GET /workspaces/{workspace}/knowledge
Read tickets
Draft a reply
POST /workspaces/{workspace}/tickets/{number}/draft
Draft replies
Update tickets
PATCH /workspaces/{workspace}/tickets
Update tickets or Investigate
Send a reply
POST /workspaces/{workspace}/tickets/{number}/replies
Send replies
List actions
GET /workspaces/{workspace}/tickets/{number}/actions
Read tickets
Take an action
POST /workspaces/{workspace}/tickets/{number}/actions
Take actions
Email a customer first
POST /workspaces/{workspace}/tickets
Send replies
Receive a customer's message
POST /workspaces/{workspace}/messages
Receive messages
List help center articles
GET /workspaces/{workspace}/articles
Read help center articles
Get an article
GET /workspaces/{workspace}/articles/{id}
Read help center articles
Add an article
POST /workspaces/{workspace}/articles
Write help center articles
Change an article
PATCH /workspaces/{workspace}/articles/{id}
Write help center articles
Publish an article
POST /workspaces/{workspace}/articles/{id}/publish
Publish help center articles
Unpublish an article
POST /workspaces/{workspace}/articles/{id}/unpublish
Publish help center articles
List the knowledge sources
GET /workspaces/{workspace}/knowledge-sources
Read the agent's settings
Change the knowledge sources
PATCH /workspaces/{workspace}/knowledge-sources
Configure the agent
List the connectors
GET /workspaces/{workspace}/connectors
Read the agent's settings
Change the connectors
PATCH /workspaces/{workspace}/connectors
Configure the agent
Get the import format
GET /workspaces/{workspace}/imports/format
Import and export tickets
Import past tickets
POST /workspaces/{workspace}/imports
Import and export tickets
Export tickets
GET /workspaces/{workspace}/export
Import and export tickets
Get the agent's settings
GET /workspaces/{workspace}/agent
Read the agent's settings
Change the agent's settings
PATCH /workspaces/{workspace}/agent
Configure the agent
Get the workspace's settings
GET /workspaces/{workspace}
Configure the workspace
Change the workspace's settings
PATCH /workspaces/{workspace}
Configure the workspace

List workspaces

GET/workspaces

The workspaces this key or connection can reach, each with its own inbox and agent, and how many tickets in each wait for you.

Read ticketstickets:read
Response{ workspaces }
{
  workspaces: {
    slug: string
    name: string
    url: string
    // Tickets waiting for you: they need a person, and no one else on the
    // team has them. List them with list_tickets and waitingForYou.
    waitingForYou: number
    // In test mode, replies are emailed only to the workspace's members; to
    // anyone else they're kept in the conversation, unsent (delivery HELD).
    // The team turns it off in answerable when they go live.
    testMode: boolean
  }[]
}

List tickets

GET/workspaces/{workspace}/tickets

Tickets in a view, or only those waiting for you, assigned to someone, or changed since a time; latest message first. Follow nextCursor for more.

Read ticketstickets:read
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Query
viewstringDefault "attention"

attention: tickets that need a person (Your turn). open: not closed yet. done: closed. all, spam, trash.

One ofattentionopendoneallspamtrash

statusstringOptional

Only tickets with this status.

One ofOPENWAITINGCLOSED

resolvedBystringOptional

Only closed tickets resolved by answerable's agent on its own ("agent") or by a person ("person").

One ofagentperson

typestringOptional

Only tickets of this type, by its id (see get_agent), e.g. BILLING.

Up to 40 characters

waitingForYoubooleanDefault false

Only tickets waiting for you: they need a person, and no one else on the team has them. list_workspaces counts them.

assigneestringOptional

Only tickets assigned to you ("me"), to no one ("unassigned"), or to a teammate, by email address.

changedSincestringOptional

Only tickets that changed after this time (ISO 8601): a new message, the agent, or a teammate. Pass the time of your last check to see what's new.

querystringOptional

Words to find in the subject, the customer's name or email, or the messages. A customer's email address finds their tickets.

Up to 200 characters

sortstringDefault "newest"

By latest message. oldest first works through what's waiting in order.

One ofnewestoldest

limitintegerDefault 25

1 to 100

cursorstringOptional

From the previous page's nextCursor.

Up to 200 characters

Response{ tickets, nextCursor }
{
  tickets: {
    number: number
    subject: string
    status: "OPEN" | "WAITING" | "CLOSED"
    // Where it stands, e.g. "Awaiting approval" or "Needs a person".
    state: string
    // The ticket's type, by id (see get_agent).
    typeId: string | null
    // The ticket's type, by name, e.g. "Billing and subscriptions".
    type: string | null
    spam: boolean
    // Sent by a system rather than a person, e.g. a notification.
    automatic: boolean
    customer: {
      name: string | null
      email: string
    }
    // The teammate the ticket is assigned to, if anyone.
    assignee: {
      name: string | null
      email: string
    } | null
    // The agent's summary of the request.
    summary: string | null
    preview: string
    // What the ticket waits on a person for, when it does.
    waiting: {
      // APPROVAL: a reply waits for approval. PERSON: the agent handed the
      // ticket to a person. SPAM_REVIEW: possible spam to confirm. FAILED:
      // an investigation failed.
      kind: "APPROVAL" | "PERSON" | "SPAM_REVIEW" | "FAILED"
      // Why, when answerable knows: the safeguard that held the reply, what
      // the agent couldn't do, or what failed.
      reason: string | null
    } | null
    // The reply waiting for approval, if one is: an ANSWER, or a FOLLOW_UP
    // question. Read it with get_tickets.
    draft: {
      kind: "ANSWER" | "FOLLOW_UP"
    } | null
    lastMessageAt: string
    // When anything about the ticket last changed: a message, the agent, or
    // a teammate.
    changedAt: string
    // The ticket in answerable.
    url: string
  }[]
  nextCursor: string | null
}

Get a ticket

GET/workspaces/{workspace}/tickets/{number}

The conversation with links to its files, what answerable's agent found, the current draft, the team's notes, the history, and the customer's earlier tickets. include (comma-separated) also looks up the customer's account or billing; wait=true first waits for an investigation to finish.

Read ticketstickets:read
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

numberintegerRequired

The ticket's number, e.g. 42 for #42.

Positive

Query
includestring[]Default []

Also look up the customer's account (from the agent's account lookup) or their billing (from Stripe), as the ticket screen shows them. Each asks the company's systems, so only include what you need.

waitbooleanDefault false

Wait up to 50 seconds for answerable's agent to finish investigating before answering, instead of reading the ticket again later. If it's still investigating then, wait again.

Response{ number, subject, status, state, … }
{
  number: number
  subject: string
  status: "OPEN" | "WAITING" | "CLOSED"
  // Where it stands, e.g. "Awaiting approval" or "Needs a person".
  state: string
  // The ticket's type, by id (see get_agent).
  typeId: string | null
  // The ticket's type, by name, e.g. "Billing and subscriptions".
  type: string | null
  spam: boolean
  // Sent by a system rather than a person, e.g. a notification.
  automatic: boolean
  customer: {
    name: string | null
    email: string
  }
  // The teammate the ticket is assigned to, if anyone.
  assignee: {
    name: string | null
    email: string
  } | null
  // The agent's summary of the request.
  summary: string | null
  preview: string
  // What the ticket waits on a person for, when it does.
  waiting: {
    // APPROVAL: a reply waits for approval. PERSON: the agent handed the
    // ticket to a person. SPAM_REVIEW: possible spam to confirm. FAILED: an
    // investigation failed.
    kind: "APPROVAL" | "PERSON" | "SPAM_REVIEW" | "FAILED"
    // Why, when answerable knows: the safeguard that held the reply, what
    // the agent couldn't do, or what failed.
    reason: string | null
  } | null
  draft: {
    id: string
    version: number
    kind: "ANSWER" | "FOLLOW_UP"
    body: string
    // The customer wrote after it; it can't be sent.
    stale: boolean
    by: string
    // Who it copies besides the customer.
    cc: string[]
    // What the agent's reply says in the team's language, when it wrote in
    // another and the body is still its text.
    translation: string | null
  } | null
  lastMessageAt: string
  // When anything about the ticket last changed: a message, the agent, or a
  // teammate.
  changedAt: string
  // The ticket in answerable.
  url: string
  // Increases with each customer message. Pass it when drafting or sending.
  revision: number
  // The language the customer writes in, as an ISO 639-1 code ("de"), when
  // it could be told.
  language: string | null
  messages: {
    id: string
    from: "customer" | "team"
    // The customer, answerable's agent, or a teammate (and the app they
    // used).
    author: string
    sentAt: string
    // What the sender wrote, without the earlier conversation their email
    // quoted.
    text: string
    quoted: string | null
    // The language it's written in (ISO 639-1), when it could be told.
    language: string | null
    // What it says in the team's language, when it's written in another and
    // answerable translated it for the team.
    translation: string | null
    // For the team's replies: HELD was kept in the conversation, not
    // emailed.
    delivery: "QUEUED" | "SENT" | "DELIVERED" | "HELD" | "FAILED" | null
    // Why it was held or failed, e.g. "test mode".
    deliveryReason: string | null
    // Who the email copied.
    cc: string[]
    // For a message sent through the widget on the company's site: where it
    // came from.
    site: {
      // The page it was sent from, without its query.
      page: string | null
      // What the site said about the customer (answerable.setContext), by
      // the site's own names.
      context: {} | null
      // The customer's browser and system, like "Chrome 141 on macOS".
      browser: string | null
    } | null
    // Files on the email.
    attachments: {
      id: string
      filename: string
      type: string
      // In bytes.
      size: number
      // Downloads the file, without signing in, for 10 minutes; read the
      // ticket again for a new one. null while it's still being stored, or
      // if it couldn't be.
      url: string | null
    }[]
  }[]
  // Who a new reply copies besides the customer unless you pass cc:
  // everyone else on the latest email.
  replyCopies: string[]
  findings: {
    text: string
    sources: {
      title: string
      url: string
    }[]
  }[]
  missingInformation: string[]
  recommendedAction: string | null
  customerHistory: {
    number: number
    subject: string
    status: "OPEN" | "WAITING" | "CLOSED"
    lastMessageAt: string
  }[]
  // Links to other tickets, by number.
  links: {
    // The ticket this one was merged into, which has its messages now.
    mergedInto: number | null
    // Tickets merged into this one.
    mergedIn: number[]
    // answerable's agent found this ticket asks the same as that open one,
    // and suggests merging it into it (mergeInto with update_tickets).
    suggestedMerge: number | null
    // Tickets linked as related.
    related: number[]
  }
  // The team's notes, oldest first. Customers never see them; answerable's
  // agent reads them.
  notes: {
    // Who wrote it, and the app they used.
    author: string
    text: string
    at: string
    edited: boolean
  }[]
  // answerable's latest investigation of the ticket.
  investigation: {
    // While QUEUED or RUNNING, the findings and draft can still change.
    // CANCELLED: the ticket changed first.
    status: "QUEUED" | "RUNNING" | "SUCCEEDED" | "FAILED" | "CANCELLED"
    requestedAt: string
    finishedAt: string | null
  } | null
  // What happened to the ticket besides messages, oldest first: closing,
  // reopening, spam decisions, assignments, handoffs, and teammates a rule
  // let know (NOTIFIED).
  history: {
    type:
      | "CLOSED"
      | "REOPENED"
      | "MARKED_SPAM"
      | "MARKED_NOT_SPAM"
      | "ASSIGNED"
      | "HANDED_OFF"
      | "DELIVERY_FAILED"
      | "NOT_INVESTIGATED"
      | "TYPE_CHANGED"
      | "IMPORTED"
      | "NOTIFIED"
      | "TRASHED"
      | "RESTORED"
      | "MERGED"
      | "MERGED_IN"
      | "UNMERGED"
      | "LINKED"
      | "UNLINKED"
      | "ACTION_TAKEN"
      | "ACTION_FAILED"
      | "ACTION_DECLINED"
    at: string
    // answerable's agent, a teammate (and the app they used), the
    // customer's reply, or answerable itself.
    by: string
    // ASSIGNED: who got the ticket; null when it went back to the agent.
    assignee?: string | null
    // Why, when answerable recorded it. NOTIFIED: why the agent found the
    // rule matched.
    reason: string | null
    // NOTIFIED: the teammates the rule let know.
    told?: string
    // NOTIFIED: the rule's words.
    rule?: string
    // MERGED: the ticket it was merged into. MERGED_IN: the ticket merged
    // into it. UNMERGED, LINKED, UNLINKED: the other ticket.
    ticket?: number
  }[]
  // With include account: the customer's account, or null when there's no
  // account lookup. verified false means the sender may not be the account
  // holder.
  account?: {} | null
  // With include billing: the customer's billing from Stripe, or null when
  // Stripe isn't connected. verified false means the sender may not be the
  // account holder.
  billing?: {} | null
}

Search the knowledge

GET/workspaces/{workspace}/knowledge

Search the knowledge answerable's agent answers from with query, or read one article in full with url.

Read ticketstickets:read
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Query
querystringOptional

Words to search the agent's knowledge for: imported docs sites and files, and live docs searches.

Up to 500 characters

urlstringOptional

Instead of query: an article to read in full, by the url a search returned.

Up to 2,000 characters

Response{ results, unavailable, article }
{
  // For a query: matching articles with an excerpt. Read one in full with
  // its url before relying on it.
  results?: {
    source: string
    title: string
    url: string
    excerpt: string
    section?: string
  }[]
  // Knowledge sources that couldn't be searched just now.
  unavailable?: string[]
  // For a url: the article.
  article?: {
    title: string
    url: string
    content: string
    truncated: boolean
  }
}

Draft a reply

POST/workspaces/{workspace}/tickets/{number}/draft

Propose a reply for a teammate to review and send. It replaces the current draft; nothing is emailed. Returns 409 if the customer wrote since revision.

Draft repliestickets:draft
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

numberintegerRequired

The ticket's number, e.g. 42 for #42.

Positive

Body
bodystringRequired

The complete email to the customer, with greeting and sign-off. Plain text, or Markdown's **bold**, _italic_, [links](https://…), and - or 1. lists, used sparingly; every line break is kept and the rest of Markdown shows as typed.

Up to 50,000 characters

revisionintegerRequired

The ticket's revision when you read it (from get_tickets). If the customer wrote since, nothing is saved.

Positive

kindstringDefault "ANSWER"

ANSWER closes the ticket once sent; FOLLOW_UP asks something and waits.

One ofANSWERFOLLOW_UP

ccstring[]Optional

Who the reply copies besides the customer, e.g. ["sam@example.com"]; [] for the customer alone. Left out, everyone else on the ticket's latest email (replyCopies in get_tickets).

Response{ draftId, version, url }
{
  draftId: string
  version: number
  url: string
}

Update tickets

PATCH/workspaces/{workspace}/tickets

Close or reopen one or more tickets, move them to Spam or out of it, assign them, add a note, block their sender or send the sender's email to Spam, have answerable's agent investigate again, or hand them back to it with an instruction. Only the fields you send change. With investigate or instruction, draftOnly keeps the agent's reply as a draft, and wait waits for it to finish. investigate and instruction need tickets:investigate; the rest, and instruction too, need tickets:manage. Tickets that can't change are listed in failed; the others still do.

Update ticketstickets:manageInvestigatetickets:investigate
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Body
numbersinteger[]Required

The tickets to change, by number: up to 50.

statusstringOptional

CLOSED closes a ticket without replying; a proposed reply stays on it, unsendable until it's reopened. OPEN reopens a closed ticket.

One ofOPENCLOSED

spambooleanOptional

true moves the ticket to Spam, which closes it. false takes it out of Spam and has answerable's agent investigate it.

assigneestringnullOptional

A teammate's email address, to give them the ticket: the agent's replies to it then wait for their approval. null gives it back to the agent.

notestringOptional

A note for the team, added to each ticket as yours. Customers never see notes; answerable's agent reads them.

Up to 10,000 characters

mergeIntointegernullOptional

Merge each ticket into this one, by number: it closes without a reply, its messages move there, and later replies to its email go there too. Use it when a customer wrote in again about the same thing. Another customer's ticket works too. If the merged ticket still waited for an answer, the other is investigated again with both. null takes a merged ticket back out: its messages return and it reopens.

relatedTointegerOptional

Link each ticket to this one as related, such as two people reporting the same problem. Nothing else changes.

Positive

notRelatedTointegerOptional

Remove the related link between each ticket and this one.

Positive

senderstringOptional

What happens to the email of each ticket's customer from now on. blocked: it's ignored, with no ticket. spam: it goes straight to Spam, and so do their open tickets. normal: undoes either. Their other tickets stay as they are.

One ofblockedspamnormal

investigatebooleanOptional

true has answerable's agent investigate the ticket again from scratch, with its latest settings. The ticket's investigation (get_tickets) says when it's done. Needs the Investigate permission.

instructionstringOptional

Hand the ticket back to answerable's agent with what to do next, e.g. "Ask which plan they're on". It's added as your note, and the ticket is reopened, unassigned, taken out of Spam and investigated; the agent's reply then goes out or waits for approval under its settings, or always waits with draftOnly. Needs the Investigate permission too.

Up to 2,000 characters

draftOnlybooleanDefault false

With investigate or instruction: the agent's reply waits for approval as a draft, even where its settings would send it. Read it with get_tickets, then send or edit it.

waitbooleanDefault false

With investigate or instruction: wait up to 50 seconds for answerable's agent to finish, so the tickets come back with its draft or decision. Those still investigating then are in stillInvestigating; read them again with get_tickets and wait.

Response{ tickets, failed, stillInvestigating }
{
  // The tickets that changed, or already were as asked, as they are now.
  tickets: {
    number: number
    subject: string
    status: "OPEN" | "WAITING" | "CLOSED"
    // Where it stands, e.g. "Awaiting approval" or "Needs a person".
    state: string
    // The ticket's type, by id (see get_agent).
    typeId: string | null
    // The ticket's type, by name, e.g. "Billing and subscriptions".
    type: string | null
    spam: boolean
    // Sent by a system rather than a person, e.g. a notification.
    automatic: boolean
    customer: {
      name: string | null
      email: string
    }
    // The teammate the ticket is assigned to, if anyone.
    assignee: {
      name: string | null
      email: string
    } | null
    // The agent's summary of the request.
    summary: string | null
    preview: string
    // What the ticket waits on a person for, when it does.
    waiting: {
      // APPROVAL: a reply waits for approval. PERSON: the agent handed the
      // ticket to a person. SPAM_REVIEW: possible spam to confirm. FAILED:
      // an investigation failed.
      kind: "APPROVAL" | "PERSON" | "SPAM_REVIEW" | "FAILED"
      // Why, when answerable knows: the safeguard that held the reply, what
      // the agent couldn't do, or what failed.
      reason: string | null
    } | null
    // The reply waiting for approval, if one is: an ANSWER, or a FOLLOW_UP
    // question. Read it with get_tickets.
    draft: {
      kind: "ANSWER" | "FOLLOW_UP"
    } | null
    lastMessageAt: string
    // When anything about the ticket last changed: a message, the agent, or
    // a teammate.
    changedAt: string
    // The ticket in answerable.
    url: string
  }[]
  // Tickets left as they were, and why.
  failed: {
    number: number
    error: string
  }[]
  // With wait: tickets answerable's agent was still investigating when the
  // wait ended. Read them with get_tickets and wait.
  stillInvestigating?: number[]
}

Send a reply

POST/workspaces/{workspace}/tickets/{number}/replies

Email the customer: the current draft (draftId and draftVersion, with body to send it with your edits), or a reply you wrote (body and revision). It goes out right away, without answerable's safeguards. Send an Idempotency-Key header so a retried request can't send twice.

Send repliestickets:send
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

numberintegerRequired

The ticket's number, e.g. 42 for #42.

Positive

Body
bodystringOptional

The email, with greeting and sign-off. Plain text, or Markdown's **bold**, _italic_, [links](https://…), and - or 1. lists, used sparingly; every line break is kept and the rest of Markdown shows as typed. With draftId, it replaces the draft's text: the draft is approved with your edits.

Up to 50,000 characters

revisionintegerOptional

With body and no draftId: the ticket's revision when you read it.

Positive

draftIduuidOptional

To approve the ticket's draft: its id, from get_tickets. It's sent as is, or with your body.

draftVersionintegerOptional

With draftId: the draft's version you read.

Positive

closebooleanDefault true

With body and no draftId: close the ticket (an answer), or wait for the customer (a question). A draft closes or waits by its kind.

ccstring[]Optional

Who the reply copies besides the customer, e.g. ["sam@example.com"]; [] for the customer alone. Left out, a reply you wrote copies everyone else on the ticket's latest email (replyCopies in get_tickets), and a draft keeps its own. Not for a new ticket.

Headers
Idempotency-KeystringOptional

Repeating a request with the same key sends nothing new.

Up to 200 characters

Response{ number, messageId, duplicate, delivery, … }
{
  // The ticket, e.g. a new ticket's number.
  number: number
  // null for a duplicate, or for a draft with actions: it goes out once
  // they've run.
  messageId: string | null
  // true when this was sent already, so nothing new went out.
  duplicate: boolean
  // What happens to the email; null for a duplicate or a draft with
  // actions. Tell the person when it was held: the customer didn't get it.
  delivery: {
    // QUEUED: going out now. HELD: kept in the conversation and not
    // emailed, e.g. in test mode. FAILED: couldn't be sent.
    status: "QUEUED" | "SENT" | "DELIVERED" | "HELD" | "FAILED"
    // Why it was held or failed, e.g. "test mode".
    reason: string | null
  } | null
  url: string
}

List actions

GET/workspaces/{workspace}/tickets/{number}/actions

What can be done for the ticket's customer in the systems the workspace connected, such as a refund in Stripe or the company's own actions in its product, with the customer's own choices, and whether the latest email is verified as theirs.

Read ticketstickets:read
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

numberintegerRequired

The ticket's number, e.g. 42 for #42.

Positive

Response{ senderVerified, actions }
{
  // false when the latest email isn't verified as the customer's: make sure
  // it's them before changing their account.
  senderVerified: boolean
  actions: {
    // Pass it as action to take_action.
    key: string
    name: string
    // The system it runs in, such as Stripe.
    where: string
    description: string
    // MONEY moves money; DESTRUCTIVE can't be undone.
    kind: "CHANGE" | "MONEY" | "DESTRUCTIVE"
    // Why it can't be taken for this customer now.
    unavailable: string | null
    inputs: {
      name: string
      label: string
      type: "text" | "number" | "boolean" | "choice" | "money" | "json"
      required: boolean
      description?: string
      // For a choice: the customer's own options. Pass one's value.
      options?: {
        value: string
        label: string
        detail?: string
        // What's left of it, for money taken from it.
        amount?: {
          // In the currency's smallest unit, such as cents.
          amount: number
          currency: string
        }
      }[]
      // For money: the choice it's taken from. Pass it in the smallest
      // unit, at most that option's amount.
      of?: string
      // For money that isn't taken from a choice: its currency. Pass it in
      // the smallest unit.
      currency?: string
      min?: number
      max?: number
      maxLength?: number
      // For json: the JSON Schema of its value. Pass it as JSON text.
      schema?: {}
    }[]
  }[]
}

Take an action

POST/workspaces/{workspace}/tickets/{number}/actions

Take one of the ticket's actions now: it runs in the other system right away, checked again against the customer's data, and the ticket's history keeps it. A failure is in the response, with status FAILED and why in error. Send an Idempotency-Key header so a retried request can't take it twice; without one, the same action with the same inputs within ten minutes counts as a repeat, unless it failed.

Take actionstickets:act
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

numberintegerRequired

The ticket's number, e.g. 42 for #42.

Positive

Body
actionstringRequired

The action's key, from get_actions.

Up to 200 characters

inputsobjectDefault {}

Each input by name: a choice's value, a number, true or false, text, money in the smallest unit, or JSON text.

Headers
Idempotency-KeystringOptional

Repeating a request with the same key takes nothing new, and answers with the action it took.

Up to 200 characters

Response{ id, name, where, summary, … }
{
  id: string
  name: string
  where: string
  // Its inputs in words.
  summary: string
  status:
    | "DONE"
    | "FAILED"
    | "RUNNING"
    | "APPROVED"
    | "PROPOSED"
    | "DECLINED"
    | "DISCARDED"
  // What the other system said, when it's DONE.
  result: {
    message: string
    url?: string
  } | null
  // Why it didn't go through, when it FAILED. One that may have gone
  // through says to check first.
  error: string | null
  // True when the same request took it before (the same Idempotency-Key, or
  // the same action and inputs within ten minutes), so nothing new ran:
  // this is that action, as it is now.
  duplicate: boolean
}

Email a customer first

POST/workspaces/{workspace}/tickets

Start a ticket by emailing a customer, new or known. It starts closed, and their reply reopens it. Send an Idempotency-Key header so a retried request can't send twice.

Send repliestickets:send
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Body
tostringRequired

The customer's email address. Their reply comes back to the new ticket.

namestringOptional

The customer's name, if answerable doesn't know it yet.

Up to 200 characters

subjectstringRequired

The email's subject.

Up to 300 characters

bodystringRequired

The email, with greeting and sign-off. Plain text, or Markdown's **bold**, _italic_, [links](https://…), and - or 1. lists, used sparingly; every line break is kept and the rest of Markdown shows as typed.

Up to 50,000 characters

Headers
Idempotency-KeystringOptional

Repeating a request with the same key sends nothing new.

Up to 200 characters

Response{ number, messageId, duplicate, delivery, … }
{
  // The ticket, e.g. a new ticket's number.
  number: number
  // null for a duplicate, or for a draft with actions: it goes out once
  // they've run.
  messageId: string | null
  // true when this was sent already, so nothing new went out.
  duplicate: boolean
  // What happens to the email; null for a duplicate or a draft with
  // actions. Tell the person when it was held: the customer didn't get it.
  delivery: {
    // QUEUED: going out now. HELD: kept in the conversation and not
    // emailed, e.g. in test mode. FAILED: couldn't be sent.
    status: "QUEUED" | "SENT" | "DELIVERED" | "HELD" | "FAILED"
    // Why it was held or failed, e.g. "test mode".
    reason: string | null
  } | null
  url: string
}

Receive a customer's message

POST/workspaces/{workspace}/messages

Bring in a message from your own form, app, or channel: it opens a ticket, or with ticket continues one, and answerable's agent investigates it like an email. Replies go to the customer's email. Send an Idempotency-Key header, such as your own id for the message, so a retried request adds nothing.

Receive messagestickets:receive
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Body
emailstringRequired

The customer's email address. answerable's replies go to it.

Up to 320 characters

namestringOptional

The customer's name. Kept only with verified.

Up to 100 characters

verifiedbooleanDefault false

Set when your system confirmed the customer owns the address, e.g. they're signed in. Otherwise the message counts as from an unverified sender, and the agent's safeguards for those apply.

subjectstringOptional

A new ticket's subject. Without it, the message's first line.

Up to 200 characters

bodystringRequired

What the customer wrote, as plain text.

Up to 20,000 characters

ticketintegerOptional

Add the message to this ticket, which must be the same customer's, instead of opening a new one.

Positive

attachmentsobject[]Default []

Files the customer sent.

Headers
Idempotency-KeystringOptional

Repeating a request with the same key adds nothing new.

Up to 200 characters

Response{ number, messageId, status, investigating, … }
{
  // The ticket the message is on.
  number: number
  messageId: string
  // created: a new ticket. appended: the next message on a ticket.
  // duplicate: received before, with the same Idempotency-Key, so nothing
  // was added.
  status: "created" | "appended" | "duplicate"
  // Whether answerable's agent is investigating it. It isn't for a blocked
  // or spam sender, past the hourly limits, or with AI paused.
  investigating: boolean
  // The ticket in answerable.
  url: string
}

List help center articles

GET/workspaces/{workspace}/articles

The help center's articles in its order, with their state, category, address on the help site, the languages each is written in (languages, each with its own title, state and address), reads over the last 30 days, and answers to "Was this helpful?", filtered by state, category, title words (query), changedSince, a language they're written in, or one they're missing. Follow nextCursor for more.

Read help center articleshelp:read
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Query
statestringOptional

Only articles in this state.

One ofDRAFTPUBLISHEDCHANGED

categorystringOptional

Only articles in this category, by name. "" for articles in none.

Up to 80 characters

querystringOptional

Only articles whose title has these words. To search their text, use search_knowledge.

Up to 200 characters

changedSincestringOptional

Only articles changed after this time (ISO 8601).

languagestringOptional

With ids, read each article in this language (one it's written in); left out, in its first language (the main one when it's written in it). Listing, only articles written in this language.

missingstringOptional

Only articles not written in this language yet, to translate.

limitintegerDefault 50

1 to 200

cursorstringOptional

From the previous page's nextCursor.

Up to 20 characters

Response{ articles, categories, site, nextCursor }
{
  articles: {
    id: string
    // The language the title, state and url (and when read in full, the
    // text) are in.
    language: string
    title: string
    // Its category's name; null when it's in none.
    category: string | null
    // DRAFT: not on the help center (never published, or taken off).
    // PUBLISHED: live as written. CHANGED: live, with changes waiting in
    // its draft.
    state: "DRAFT" | "PUBLISHED" | "CHANGED"
    // Where it is on the help site; null when it isn't live or the site is
    // off.
    url: string | null
    // Every language it's written in, the main customer language first,
    // each with its own title, state and address.
    languages: {
      language: string
      title: string
      // DRAFT: not on the help center (never published, or taken off).
      // PUBLISHED: live as written. CHANGED: live, with changes waiting in
      // its draft.
      state: "DRAFT" | "PUBLISHED" | "CHANGED"
      url: string | null
    }[]
    // When its text last changed.
    changedAt: string
    // Who changed it last.
    changedBy: string | null
    publishedAt: string | null
    // Reads on the help site over the last 30 days, in every language.
    views: number
    // Readers who answered "Was this helpful?" with yes.
    helpful: number
    // Readers who answered no.
    notHelpful: number
  }[]
  // The help center's categories, in order, with how many articles each
  // has.
  categories: {
    name: string
    articles: number
  }[]
  // The help site; null before the first article.
  site: {
    url: string
    on: boolean
  } | null
  nextCursor: string | null
}

Get an article

GET/workspaces/{workspace}/articles/{id}

An article in full, in one of its languages (language; its first when left out, and 404 when it isn't written in it): its Markdown (the draft if there is one), what's published when that differs, what readers said was missing, and the baseId to send when changing it.

Read help center articleshelp:read
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

iduuidRequired

The article's id (see get_articles).

Query
languagestringOptional

The language to read, publish or unpublish: one the article is written in. Left out: its first language to read and publish; every language to unpublish.

Response{ id, language, title, category, … }
{
  id: string
  // The language the title, state and url (and when read in full, the text)
  // are in.
  language: string
  title: string
  // Its category's name; null when it's in none.
  category: string | null
  // DRAFT: not on the help center (never published, or taken off).
  // PUBLISHED: live as written. CHANGED: live, with changes waiting in its
  // draft.
  state: "DRAFT" | "PUBLISHED" | "CHANGED"
  // Where it is on the help site; null when it isn't live or the site is
  // off.
  url: string | null
  // Every language it's written in, the main customer language first, each
  // with its own title, state and address.
  languages: {
    language: string
    title: string
    // DRAFT: not on the help center (never published, or taken off).
    // PUBLISHED: live as written. CHANGED: live, with changes waiting in
    // its draft.
    state: "DRAFT" | "PUBLISHED" | "CHANGED"
    url: string | null
  }[]
  // When its text last changed.
  changedAt: string
  // Who changed it last.
  changedBy: string | null
  publishedAt: string | null
  // Reads on the help site over the last 30 days, in every language.
  views: number
  // Readers who answered "Was this helpful?" with yes.
  helpful: number
  // Readers who answered no.
  notHelpful: number
  // The text to edit, as Markdown: the draft if there is one, otherwise
  // what's published.
  body: string
  // The version that text is. Pass it with a change, so nothing is
  // overwritten if someone saved since.
  baseId: string | null
  // What's live, when it differs from the draft or there's no draft.
  published: {
    title: string
    body: string
  } | null
  // The latest of what readers who said it didn't help were looking for.
  readersSaid: {
    comment: string
    at: string
  }[]
}

Add an article

POST/workspaces/{workspace}/articles

Add an article as a draft, in a category by name (made when there's none), in the main customer language or the language given. With publish: true it goes on the help center right away, which also needs help:publish.

Write help center articleshelp:write
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Body
languagestringOptional

The language version to change: one it's written in, or one of the workspace's customer languages it isn't in yet, which adds it (with title and body, or translateFrom). Left out: a new article is in the main customer language, and a change goes to the article's first language, except publish: false, which takes every language off.

titlestringOptional

Up to 200 characters

bodystringOptional

The whole text, as Markdown: headings (##), lists, links, https images, code, tables, and :::note, :::tip, :::warning callouts.

Up to 100,000 characters

categorystringnullOptional

Move it to this category, by name; it's made when there's none by that name. null takes it out of its category.

publishbooleanOptional

true puts it on the help center as written (after the other changes), so readers and answerable's agent see it. false takes it off. Needs Publish help center articles.

Response{ id, language, title, category, … }
{
  id: string
  // The language the title, state and url (and when read in full, the text)
  // are in.
  language: string
  title: string
  // Its category's name; null when it's in none.
  category: string | null
  // DRAFT: not on the help center (never published, or taken off).
  // PUBLISHED: live as written. CHANGED: live, with changes waiting in its
  // draft.
  state: "DRAFT" | "PUBLISHED" | "CHANGED"
  // Where it is on the help site; null when it isn't live or the site is
  // off.
  url: string | null
  // Every language it's written in, the main customer language first, each
  // with its own title, state and address.
  languages: {
    language: string
    title: string
    // DRAFT: not on the help center (never published, or taken off).
    // PUBLISHED: live as written. CHANGED: live, with changes waiting in
    // its draft.
    state: "DRAFT" | "PUBLISHED" | "CHANGED"
    url: string | null
  }[]
  // When its text last changed.
  changedAt: string
  // Who changed it last.
  changedBy: string | null
  publishedAt: string | null
  // Reads on the help site over the last 30 days, in every language.
  views: number
  // Readers who answered "Was this helpful?" with yes.
  helpful: number
  // Readers who answered no.
  notHelpful: number
  // Pass it with the next change.
  baseId: string | null
}

Change an article

PATCH/workspaces/{workspace}/articles/{id}

Change an article's title or text in one of its languages (language; its first when left out; saved as that language's draft; send the baseId you read, and it returns 409 if someone saved since), move it to a category by name (null for none), or throw its draft away (discardDraft). A language it isn't written in yet adds it, from your title and body or from answerable's translation of another (translateFrom); removeLanguage takes one away. Only the fields sent change. Nothing goes live until it's published.

Write help center articleshelp:write
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

iduuidRequired

The article's id (see get_articles).

Body
languagestringOptional

The language version to change: one it's written in, or one of the workspace's customer languages it isn't in yet, which adds it (with title and body, or translateFrom). Left out: a new article is in the main customer language, and a change goes to the article's first language, except publish: false, which takes every language off.

translateFromstringOptional

With a new language: start it from answerable's translation of the article in this language, as a draft. Don't pass title or body with it.

removeLanguagebooleanOptional

Remove this language version, with its history, from the site and the agent. An article's only language can't be removed.

baseIdstringnullOptional

The baseId you read with get_articles, needed to change the title or text. If someone saved since, the article isn't changed.

titlestringOptional

Up to 200 characters

bodystringOptional

The whole text, as Markdown: headings (##), lists, links, https images, code, tables, and :::note, :::tip, :::warning callouts.

Up to 100,000 characters

categorystringnullOptional

Move it to this category, by name; it's made when there's none by that name. null takes it out of its category.

discardDraftbooleanOptional

Throw away its draft, back to what's published.

Response{ id, language, title, category, … }
{
  id: string
  // The language the title, state and url (and when read in full, the text)
  // are in.
  language: string
  title: string
  // Its category's name; null when it's in none.
  category: string | null
  // DRAFT: not on the help center (never published, or taken off).
  // PUBLISHED: live as written. CHANGED: live, with changes waiting in its
  // draft.
  state: "DRAFT" | "PUBLISHED" | "CHANGED"
  // Where it is on the help site; null when it isn't live or the site is
  // off.
  url: string | null
  // Every language it's written in, the main customer language first, each
  // with its own title, state and address.
  languages: {
    language: string
    title: string
    // DRAFT: not on the help center (never published, or taken off).
    // PUBLISHED: live as written. CHANGED: live, with changes waiting in
    // its draft.
    state: "DRAFT" | "PUBLISHED" | "CHANGED"
    url: string | null
  }[]
  // When its text last changed.
  changedAt: string
  // Who changed it last.
  changedBy: string | null
  publishedAt: string | null
  // Reads on the help site over the last 30 days, in every language.
  views: number
  // Readers who answered "Was this helpful?" with yes.
  helpful: number
  // Readers who answered no.
  notHelpful: number
  // Pass it with the next change.
  baseId: string | null
}

Publish an article

POST/workspaces/{workspace}/articles/{id}/publish

Put the article on the help center as written, in one language (language; its first when left out), its draft in place of what was published there, where readers and answerable's agent see it.

Publish help center articleshelp:publish
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

iduuidRequired

The article's id (see get_articles).

Body
languagestringOptional

The language to read, publish or unpublish: one the article is written in. Left out: its first language to read and publish; every language to unpublish.

Response{ id, language, title, category, … }
{
  id: string
  // The language the title, state and url (and when read in full, the text)
  // are in.
  language: string
  title: string
  // Its category's name; null when it's in none.
  category: string | null
  // DRAFT: not on the help center (never published, or taken off).
  // PUBLISHED: live as written. CHANGED: live, with changes waiting in its
  // draft.
  state: "DRAFT" | "PUBLISHED" | "CHANGED"
  // Where it is on the help site; null when it isn't live or the site is
  // off.
  url: string | null
  // Every language it's written in, the main customer language first, each
  // with its own title, state and address.
  languages: {
    language: string
    title: string
    // DRAFT: not on the help center (never published, or taken off).
    // PUBLISHED: live as written. CHANGED: live, with changes waiting in
    // its draft.
    state: "DRAFT" | "PUBLISHED" | "CHANGED"
    url: string | null
  }[]
  // When its text last changed.
  changedAt: string
  // Who changed it last.
  changedBy: string | null
  publishedAt: string | null
  // Reads on the help site over the last 30 days, in every language.
  views: number
  // Readers who answered "Was this helpful?" with yes.
  helpful: number
  // Readers who answered no.
  notHelpful: number
  // Pass it with the next change.
  baseId: string | null
}

Unpublish an article

POST/workspaces/{workspace}/articles/{id}/unpublish

Take the article off the help center: in one language, or in every language when none is given. Its text stays, to change and publish again.

Publish help center articleshelp:publish
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

iduuidRequired

The article's id (see get_articles).

Body
languagestringOptional

The language to read, publish or unpublish: one the article is written in. Left out: its first language to read and publish; every language to unpublish.

Response{ id, language, title, category, … }
{
  id: string
  // The language the title, state and url (and when read in full, the text)
  // are in.
  language: string
  title: string
  // Its category's name; null when it's in none.
  category: string | null
  // DRAFT: not on the help center (never published, or taken off).
  // PUBLISHED: live as written. CHANGED: live, with changes waiting in its
  // draft.
  state: "DRAFT" | "PUBLISHED" | "CHANGED"
  // Where it is on the help site; null when it isn't live or the site is
  // off.
  url: string | null
  // Every language it's written in, the main customer language first, each
  // with its own title, state and address.
  languages: {
    language: string
    title: string
    // DRAFT: not on the help center (never published, or taken off).
    // PUBLISHED: live as written. CHANGED: live, with changes waiting in
    // its draft.
    state: "DRAFT" | "PUBLISHED" | "CHANGED"
    url: string | null
  }[]
  // When its text last changed.
  changedAt: string
  // Who changed it last.
  changedBy: string | null
  publishedAt: string | null
  // Reads on the help site over the last 30 days, in every language.
  views: number
  // Readers who answered "Was this helpful?" with yes.
  helpful: number
  // Readers who answered no.
  notHelpful: number
  // Pass it with the next change.
  baseId: string | null
}

List the knowledge sources

GET/workspaces/{workspace}/knowledge-sources

What answerable's agent answers from: imported docs sites, uploaded files, docs searches, the help center, and lessons from the team's replies, whether it reads each, and where each one's import stands. With the plan's limits.

Read the agent's settingsagent:read
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Response{ sources, limits, url }
{
  sources: {
    id: string
    // DOCS_SITE (a docs site answerable imports and keeps fresh), FILES
    // (the files uploaded), DOCS_SEARCH (a search endpoint asked live),
    // HELP_CENTER (the help center's published articles), or LEARNED
    // (lessons from the team's replies).
    kind: "DOCS_SITE" | "FILES" | "DOCS_SEARCH" | "LEARNED" | "HELP_CENTER"
    name: string
    // A docs site's or docs search's address.
    url: string | null
    // answerable's agent reads it. Turned on and off with update_agent's
    // knowledgeSources.
    on: boolean
    // READY: the agent can use it. IMPORTING: finding or reading a site's
    // pages, or reading files. WAITING_TO_IMPORT: a site's pages were
    // found; tell the person how many, then import them (import: true).
    // NOT_IMPORTED: nothing read yet. FAILED: the latest import failed and
    // nothing is indexed.
    status:
      | "READY"
      | "IMPORTING"
      | "WAITING_TO_IMPORT"
      | "NOT_IMPORTED"
      | "FAILED"
    // For a site and files: pages or files the agent can search, still
    // being read, left out (empty or duplicate), and failed.
    documents?: {
      indexed: number
      inProgress: number
      skipped: number
      failed: number
    }
    // For a docs site: its latest import, which finds the site's pages,
    // waits for them to be confirmed, then reads them.
    import?: {
      status: string
      startedAt: string
      finishedAt: string | null
      pagesFound: number
      pageLimit: number
      message: string | null
    } | null
    // For a docs site: when its pages were last read. It's read again
    // daily.
    lastImportedAt?: string | null
    // For the files: each one, newest first, up to 100.
    files?: {
      id: string
      name: string
      status: string
      bytes: number
    }[]
    // For lessons: AUTOMATIC uses what it learns right away, APPROVAL waits
    // for someone to approve each, OFF learns nothing new.
    mode?: "AUTOMATIC" | "APPROVAL" | "OFF"
  }[]
  // The workspace's plan: docs sites, files, the largest file, all files
  // together, and pages a site may have.
  limits: {
    sites: number
    files: number
    fileBytes: number
    storageBytes: number
    sitePages: number
  }
  // Knowledge in answerable.
  url: string
}

Change the knowledge sources

PATCH/workspaces/{workspace}/knowledge-sources

Add, change or remove up to 10 knowledge sources, shaped as the GET returns them: an item without id adds one (a docs site to import, a docs search, files to upload), one with id changes the fields sent, and remove: true removes it. Every change is checked first, and nothing changes unless all are valid. Files go to the upload addresses in uploads; send their ids in uploaded once their bytes are there. Admins only.

Configure the agentagent:configure
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Body
sourcesobject[]Required

Up to 10 changes, applied in order. Each is checked first, and nothing changes unless all are valid. If one fails as it's saved, the ones before it stay saved.

Response{ sources, removed, uploads, failed, … }
{
  // The sources added or changed, as they are now.
  sources: {
    id: string
    // DOCS_SITE (a docs site answerable imports and keeps fresh), FILES
    // (the files uploaded), DOCS_SEARCH (a search endpoint asked live),
    // HELP_CENTER (the help center's published articles), or LEARNED
    // (lessons from the team's replies).
    kind: "DOCS_SITE" | "FILES" | "DOCS_SEARCH" | "LEARNED" | "HELP_CENTER"
    name: string
    // A docs site's or docs search's address.
    url: string | null
    // answerable's agent reads it. Turned on and off with update_agent's
    // knowledgeSources.
    on: boolean
    // READY: the agent can use it. IMPORTING: finding or reading a site's
    // pages, or reading files. WAITING_TO_IMPORT: a site's pages were
    // found; tell the person how many, then import them (import: true).
    // NOT_IMPORTED: nothing read yet. FAILED: the latest import failed and
    // nothing is indexed.
    status:
      | "READY"
      | "IMPORTING"
      | "WAITING_TO_IMPORT"
      | "NOT_IMPORTED"
      | "FAILED"
    // For a site and files: pages or files the agent can search, still
    // being read, left out (empty or duplicate), and failed.
    documents?: {
      indexed: number
      inProgress: number
      skipped: number
      failed: number
    }
    // For a docs site: its latest import, which finds the site's pages,
    // waits for them to be confirmed, then reads them.
    import?: {
      status: string
      startedAt: string
      finishedAt: string | null
      pagesFound: number
      pageLimit: number
      message: string | null
    } | null
    // For a docs site: when its pages were last read. It's read again
    // daily.
    lastImportedAt?: string | null
    // For the files: each one, newest first, up to 100.
    files?: {
      id: string
      name: string
      status: string
      bytes: number
    }[]
    // For lessons: AUTOMATIC uses what it learns right away, APPROVAL waits
    // for someone to approve each, OFF learns nothing new.
    mode?: "AUTOMATIC" | "APPROVAL" | "OFF"
  }[]
  removed: string[]
  // Where to send each file's bytes: PUT them to url with these headers
  // (curl -T <file> -H 'Content-Type: application/octet-stream' '<url>'),
  // before expiresAt. Then call again with uploaded: their fileIds, for
  // answerable to read them.
  uploads: {
    fileId: string
    filename: string
    url: string
    method: "PUT"
    headers: {}
    expiresAt: string
  }[]
  // A change that failed as it was saved: those before it were saved, it
  // and the rest weren't.
  failed: {
    index: number
    message: string
  } | null
  url: string
}

List the connectors

GET/workspaces/{workspace}/connectors

The systems answerable's agent looks things up in and acts in (your product, Stripe, APIs and MCP servers): whether it uses each, whether each is ready or waits for a key or a sign-in, how its latest calls went, and its operations with how each is set. No secrets.

Read the agent's settingsagent:read
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Response{ connectors, url }
{
  connectors: {
    id: string
    // YOUR_PRODUCT (the company's own account lookup and actions), STRIPE
    // (billing), API, or MCP (a remote MCP server).
    kind: "YOUR_PRODUCT" | "STRIPE" | "API" | "MCP"
    name: string
    // answerable's agent uses it. Turned on and off with update_agent's
    // connectors.
    on: boolean
    // READY: the agent can use it. KEY_NEEDED: it waits for its key or
    // token, which an admin adds at keyUrl. SIGN_IN_NEEDED: someone needs
    // to sign in to it, at signInUrl. BROKEN: its credentials can't be read
    // anymore; set it up again on its page.
    status: "READY" | "KEY_NEEDED" | "SIGN_IN_NEEDED" | "BROKEN"
    // Your product's lookup endpoint, an API's base address its operations'
    // paths go after, or an MCP server's address; null for Stripe.
    url: string | null
    // Your product's actions endpoint, if it has one.
    actionsUrl?: string | null
    // An API's or MCP server's way of signing in; null for your product and
    // Stripe.
    auth: {
      in: "none" | "bearer" | "header" | "query"
      // With header or query: the header or query parameter the key goes
      // in, e.g. "X-API-Key" or "api_key".
      name?: string
    } | "none" | "token" | "oauth" | null
    // The last characters of its key or token, to tell which one it is.
    keyHint: string | null
    // For one that takes a key or token (Stripe, an API, an MCP server):
    // where an admin adds or replaces it. Give it to the person: keys never
    // go through you.
    keyUrl: string | null
    // For an MCP server that's signed in to: where an admin signs in to it,
    // or again. Give it to the person.
    signInUrl: string | null
    // Who last signed in to it, and when. The agent uses it as them.
    signedIn: {
      by: string
      at: string | null
    } | null
    // For Stripe: which of the company's Stripe modes its key reads.
    stripeMode: "live" | "test" | null
    // How the latest calls through it went.
    lastCall: {
      workedAt: string | null
      failedAt: string | null
      error: string | null
    }
    // For an MCP server: when its tools were last listed.
    toolsCheckedAt: string | null
    // Its reads and actions: an API's operations, an MCP server's tools,
    // your product's listed actions, or Stripe's.
    operations: {
      // Its id within the connector: the operation's or tool's.
      id: string
      // <connector id>:<id>, its key in update_agent's tools.
      key: string
      name: string
      description: string
      // READ: Only looks something up. CHANGE: A change that can be undone.
      // DESTRUCTIVE: Can't be undone, like a delete. MONEY: Moves money,
      // like a refund.
      effect: "READ" | "CHANGE" | "DESTRUCTIVE" | "MONEY"
      // Its setting in the agent's settings, or null while it's off. Set
      // with update_agent's tools.
      setting: {
        mode: "ON" | "TEAM" | "APPROVAL" | "AUTO"
        when: string | null
        limit: number | null
      } | null
      // An API's operation: its method.
      method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"
      // An API's operation: its path after the connector's url, with
      // {placeholders}.
      path?: string
      // What it takes. An API's operation's inputs are as update_connectors
      // takes them (with in, fill, and type's options); an MCP tool's are
      // as its server lists them.
      inputs: {
        name: string
        // text, number, boolean, choice or money for an API's operation;
        // MCP tools also have json.
        type: string
        required: boolean
        description?: string
      }[]
      // An MCP tool's inputs answerable fills from the ticket, never the
      // agent: customer_email (Customer's email), account_id (Their account
      // in your product), stripe_customer_id (Their Stripe customer),
      // ticket_number (Ticket number).
      fills?: {}
      // An MCP tool its server changed since it was approved: the agent
      // reads it as it was until someone approves this (update_connectors
      // with approve: the fingerprint). Show the person the change first.
      review?: {
        fingerprint: string
        name: string
        description: string
        effect: "READ" | "CHANGE" | "DESTRUCTIVE" | "MONEY"
        inputs: {
          name: string
          // text, number, boolean, choice or money for an API's operation;
          // MCP tools also have json.
          type: string
          required: boolean
          description?: string
        }[]
      } | null
      // Its server doesn't list it anymore; its setting is kept for when
      // it's back.
      gone?: boolean
      // Why it can't be taken now, such as a key without write access.
      unavailable?: string | null
      // answerable's own (Stripe's), which can't be changed here.
      builtIn?: boolean
    }[]
    // Its page in answerable.
    page: string
  }[]
  // Integrations in answerable.
  url: string
}

Change the connectors

PATCH/workspaces/{workspace}/connectors

Add, change or remove up to 10 connectors and their operations, shaped as the GET returns them: an item without id adds one, one with id changes the fields sent, and remove: true removes it. Every change is checked first, and nothing changes unless all are valid. Keys, tokens and sign-ins are never sent: a connector that needs one comes back with keyUrl or signInUrl, for an admin to open. try runs one operation afterwards, the way the agent would. Admins only.

Configure the agentagent:configure
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Body
connectorsobject[]Optional

Up to 10 changes, applied in order. Each is checked first, and nothing changes unless all are valid. Checks that reach the other system (an API's address, an MCP server's tools or sign-in) happen as each is saved: if one fails, the ones before it stay saved.

tryobjectOptional

Try one operation after the changes, the way the agent would: a read runs and returns what came back.

Response{ connectors, removed, failed, tried, … }
{
  // The connectors added or changed, as they are now. Ones waiting for a
  // key or a sign-in say where in keyUrl or signInUrl: give the person that
  // link.
  connectors: {
    id: string
    // YOUR_PRODUCT (the company's own account lookup and actions), STRIPE
    // (billing), API, or MCP (a remote MCP server).
    kind: "YOUR_PRODUCT" | "STRIPE" | "API" | "MCP"
    name: string
    // answerable's agent uses it. Turned on and off with update_agent's
    // connectors.
    on: boolean
    // READY: the agent can use it. KEY_NEEDED: it waits for its key or
    // token, which an admin adds at keyUrl. SIGN_IN_NEEDED: someone needs
    // to sign in to it, at signInUrl. BROKEN: its credentials can't be read
    // anymore; set it up again on its page.
    status: "READY" | "KEY_NEEDED" | "SIGN_IN_NEEDED" | "BROKEN"
    // Your product's lookup endpoint, an API's base address its operations'
    // paths go after, or an MCP server's address; null for Stripe.
    url: string | null
    // Your product's actions endpoint, if it has one.
    actionsUrl?: string | null
    // An API's or MCP server's way of signing in; null for your product and
    // Stripe.
    auth: {
      in: "none" | "bearer" | "header" | "query"
      // With header or query: the header or query parameter the key goes
      // in, e.g. "X-API-Key" or "api_key".
      name?: string
    } | "none" | "token" | "oauth" | null
    // The last characters of its key or token, to tell which one it is.
    keyHint: string | null
    // For one that takes a key or token (Stripe, an API, an MCP server):
    // where an admin adds or replaces it. Give it to the person: keys never
    // go through you.
    keyUrl: string | null
    // For an MCP server that's signed in to: where an admin signs in to it,
    // or again. Give it to the person.
    signInUrl: string | null
    // Who last signed in to it, and when. The agent uses it as them.
    signedIn: {
      by: string
      at: string | null
    } | null
    // For Stripe: which of the company's Stripe modes its key reads.
    stripeMode: "live" | "test" | null
    // How the latest calls through it went.
    lastCall: {
      workedAt: string | null
      failedAt: string | null
      error: string | null
    }
    // For an MCP server: when its tools were last listed.
    toolsCheckedAt: string | null
    // Its reads and actions: an API's operations, an MCP server's tools,
    // your product's listed actions, or Stripe's.
    operations: {
      // Its id within the connector: the operation's or tool's.
      id: string
      // <connector id>:<id>, its key in update_agent's tools.
      key: string
      name: string
      description: string
      // READ: Only looks something up. CHANGE: A change that can be undone.
      // DESTRUCTIVE: Can't be undone, like a delete. MONEY: Moves money,
      // like a refund.
      effect: "READ" | "CHANGE" | "DESTRUCTIVE" | "MONEY"
      // Its setting in the agent's settings, or null while it's off. Set
      // with update_agent's tools.
      setting: {
        mode: "ON" | "TEAM" | "APPROVAL" | "AUTO"
        when: string | null
        limit: number | null
      } | null
      // An API's operation: its method.
      method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"
      // An API's operation: its path after the connector's url, with
      // {placeholders}.
      path?: string
      // What it takes. An API's operation's inputs are as update_connectors
      // takes them (with in, fill, and type's options); an MCP tool's are
      // as its server lists them.
      inputs: {
        name: string
        // text, number, boolean, choice or money for an API's operation;
        // MCP tools also have json.
        type: string
        required: boolean
        description?: string
      }[]
      // An MCP tool's inputs answerable fills from the ticket, never the
      // agent: customer_email (Customer's email), account_id (Their account
      // in your product), stripe_customer_id (Their Stripe customer),
      // ticket_number (Ticket number).
      fills?: {}
      // An MCP tool its server changed since it was approved: the agent
      // reads it as it was until someone approves this (update_connectors
      // with approve: the fingerprint). Show the person the change first.
      review?: {
        fingerprint: string
        name: string
        description: string
        effect: "READ" | "CHANGE" | "DESTRUCTIVE" | "MONEY"
        inputs: {
          name: string
          // text, number, boolean, choice or money for an API's operation;
          // MCP tools also have json.
          type: string
          required: boolean
          description?: string
        }[]
      } | null
      // Its server doesn't list it anymore; its setting is kept for when
      // it's back.
      gone?: boolean
      // Why it can't be taken now, such as a key without write access.
      unavailable?: string | null
      // answerable's own (Stripe's), which can't be changed here.
      builtIn?: boolean
    }[]
    // Its page in answerable.
    page: string
  }[]
  // Connectors removed, by id.
  removed: string[]
  // A change that failed as it was saved: those before it were saved, it
  // and the rest weren't. Fix it and send it and the rest again.
  failed: {
    index: number
    message: string
  } | null
  tried: {
    ok: boolean
    // read: what came back. preview: the request an action would send.
    // sent: what the system said.
    kind?: "read" | "preview" | "sent"
    result?: unknown
    request?: string
    // What went wrong, or what the system said.
    message?: string
    url?: string | null
    ms?: number | null
  } | null
  url: string
}

Get the import format

GET/workspaces/{workspace}/imports/format

The format past tickets are imported in, with an example, the rules, the workspace's remaining limits, and an upload address a script can post batches to for an hour. Admins only.

Import and export ticketstickets:import
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Response{ format, example, rules, limits, … }
{
  // The JSON Schema of one ticket.
  format: {}
  // A ticket in the format.
  example: {}
  // What happens to imported tickets.
  rules: string[]
  limits: {
    ticketsPerCall: number
    requestBytes: number
    messagesPerTicket: number
    charactersPerMessage: number
    attachmentMonths: number
  }
  // What's left of the workspace's import limits.
  remaining: {
    tickets: number
    messages: number
  }
  // What's already imported, by source.
  imported: {
    source: string
    tickets: number
    messages: number
  }[]
  // An address to POST batches to from a script, without signing in: a JSON
  // body like import_tickets' (source, tickets, dryRun, keepOpen) with no
  // workspace. It works for an hour; get a new one after.
  upload: {
    url: string
    expiresAt: string
  }
  // The import guide.
  docs: string
}

Import past tickets

POST/workspaces/{workspace}/imports

Import up to 100 tickets from another support tool. A ticket already imported from the same source only gets what it doesn't have yet, so a batch can be sent again. Imported tickets are never answered or emailed. Admins only.

Import and export ticketstickets:import
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Body
sourcestringRequired

The tool the tickets come from, such as "UserVoice" or "Zendesk". Tickets are identified by source and externalId.

Up to 40 characters

ticketsobject[]Required

Up to 100 tickets in answerable's import format (see get_import_format). Each is checked on its own: invalid ones are rejected with the reason, and the rest are imported.

dryRunbooleanDefault false

Check the tickets and preview the first few as they'd look, without importing anything.

keepOpenbooleanDefault true

Import open tickets as needing a person and waiting ones as waiting on the customer (the default). false closes them all. Nothing is sent either way.

Response{ source, dryRun, imported, updated, … }
{
  source: string
  dryRun: boolean
  // Tickets imported, or in a dry run, that would be.
  imported: number
  // Already imported from this source, and given the messages or notes they
  // didn't have.
  updated: number
  // Already imported from this source in full, so left as they are.
  skipped: number
  // Invalid tickets, by their place in the batch.
  rejected: {
    index: number
    externalId: string | null
    reason: string
  }[]
  messages: number
  notes: number
  // Files fetched in the background, and ones left out as too old.
  attachments: {
    fetching: number
    tooOld: number
  }
  // What's left of the workspace's import limits.
  remaining: {
    tickets: number
    messages: number
  }
  // In a dry run, the first few tickets as they'd be imported. Show them to
  // the person before importing the rest.
  preview?: {
    externalId: string
    subject: string
    customer: string
    status: "open" | "waiting" | "closed"
    createdAt: string
    messages: {
      author: string
      sentAt: string
      text: string
      attachments: number
    }[]
    notes: number
  }[]
}

Export tickets

GET/workspaces/{workspace}/export

Every ticket in the workspace, a page at a time, oldest first, in the import format: its messages, notes, and links to its files. Deleted and sample tickets are left out. Admins only.

Import and export ticketstickets:import
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Query
afterintegerOptional

The nextCursor from the page before. Leave it out for the first page.

At least 0

limitintegerDefault 50

Tickets on this page.

1 to 100

Response{ tickets, nextCursor }
{
  // Oldest first, in the import format. Files' links work for 7 days. Notes
  // are messages by "note".
  tickets: {
    // The ticket's id in the tool. A ticket already imported from the same
    // source only gets the messages and notes it doesn't have yet.
    externalId: string | number
    subject?: string
    // Its status in the tool: open when it waits on the team, waiting when
    // it waits on the customer, closed when it's done. Give it whenever the
    // tool has one: open and waiting tickets stay that way unless keepOpen
    // is false. Without it a ticket arrives closed. Leave out spam and
    // deleted tickets.
    status?: "open" | "waiting" | "closed"
    // When it was opened. Defaults to its first message.
    createdAt?: string
    // The ticket's page in the tool, linked from answerable.
    url?: string
    customer: {
      // Customers are matched by email.
      email: string
      name?: string
    }
    // Oldest first or in any order; they're sorted by sentAt. Only the most
    // recent 500 are kept.
    messages: {
      // The message's id in the tool, if it has one. A message already
      // imported with it isn't added again.
      externalId?: string | number
      // customer: the customer wrote it. team: someone on the team replied
      // (matched to a member by email when there is one). bot: the tool's
      // own automation replied. note: an internal note the customer never
      // saw.
      author: "customer" | "team" | "bot" | "note"
      // Who wrote it. For customer messages it defaults to the ticket's
      // customer.
      from?: {
        // Their email address.
        email?: string
        // Their name.
        name?: string
      }
      // When it was sent, in ISO 8601 with a time zone.
      sentAt: string
      // The body as plain text, when that's all the tool has. Give text or
      // html. Runs of blank lines become one. HTML escapes in it (&gt;) are
      // unescaped, and text with HTML tags is read as html.
      text?: string
      // The body as HTML, exactly as the tool gives it, read as an arriving
      // email is: shown with its paragraphs and formatting (links, lists,
      // bold), and as text to the agent. Better than text when the tool has
      // it. Don't strip its tags or turn it into text yourself: that loses
      // its blank lines and leaves escapes like &gt; in the text.
      html?: string
      // The email's Message-ID header, when it was an email. A customer
      // replying to that email later lands in this ticket.
      messageId?: string
      // Files, fetched in the background for messages from the last 12
      // months only, once, when the message is first imported. A file that
      // can't be fetched is listed as unavailable, and sending the ticket
      // again doesn't fetch it again.
      attachments?: {
        // A public https address answerable's servers download the file
        // from, once, without signing in, not a path on your computer.
        // Check that it downloads without credentials before importing.
        url: string
        filename?: string
        contentType?: string
      }[]
    }[]
    // The ticket's number in answerable, also its externalId.
    number: number
    // Its ticket type, e.g. "Billing and subscriptions".
    type: string | null
    spam: boolean
  }[]
  // Pass as after for the next page; null on the last.
  nextCursor: number | null
}

Get the agent's settings

GET/workspaces/{workspace}/agent

The agent's instructions, reply style, spam handling, rules, ticket types, and safeguards at the current version, or at version, with the latest versions and what each changed, and the workspace's people by id.

Read the agent's settingsagent:read
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Query
versionintegerOptional

An earlier version to read, from history. Leave it out for the current settings.

Positive

Response{ version, currentVersion, savedAt, savedBy, … }
{
  // The version shown.
  version: number
  // The latest version. Pass it as expectedVersion to update_agent.
  currentVersion: number
  savedAt: string
  // Who saved it; null if their account was deleted.
  savedBy: {
    name: string | null
    email: string
  } | null
  // The app or key they used, e.g. "Claude Code"; null in answerable
  // itself.
  via: string | null
  // The earlier version it brought back, if it was a restore.
  restoredFrom: number | null
  // The settings at this version.
  document: {
    // What the agent should know and do, in the team's words, beyond
    // answerable's own rules. Up to 20,000 characters.
    instructions: string
    // How the agent writes to customers (the Replies tab).
    replyStyle: {
      // The name replies are signed with, such as "Abel". Empty to sign as
      // the team.
      name: string
      // How every reply ends, exactly as written, lines separated by \n,
      // such as "Best,\nAva\nCustomer support, Slides". Empty to let the
      // agent write a short, plain one.
      signOff: string
      // FRIENDLY (Friendly): Warm and plain, like a helpful person on the
      // team. NEUTRAL (Neutral): Polite and matter-of-fact, without small
      // talk. FORMAL (Formal): Courteous full sentences, no contractions or
      // slang.
      tone: "FRIENDLY" | "NEUTRAL" | "FORMAL"
      // SHORT (Short): A few sentences, plus steps when they're needed.
      // BALANCED (Balanced): A short paragraph or two that covers the
      // answer fully. DETAILED (Detailed): Explains the why and gives
      // complete steps.
      length: "SHORT" | "BALANCED" | "DETAILED"
      // Up to 3 replies the team likes, as models for voice and length.
      examples: string[]
    }
    // Clear spam: CLOSE_WHEN_SURE closes it, REVIEW leaves it for a person.
    spamHandling: "CLOSE_WHEN_SURE" | "REVIEW"
    // Limits on what the agent sends on its own, and where tickets from
    // busy senders go.
    safeguards: {
      // Replies the agent may send one address in a day, across tickets: 3,
      // 5, or 10.
      repliesPerCustomerPerDay: number
      // Replies of any kind the agent may send on a ticket before a person
      // acts on it: 2, 3, or 5.
      repliesPerTicket: number
      // Follow-up questions the agent may send on a ticket before a person
      // acts on it: 1, 2, or 3.
      followUpsPerTicket: number
      // Replies to senders whose domain doesn't confirm the email came from
      // them: HOLD for approval, or TRUST like any other. Possibly forged
      // mail always waits.
      unverifiedSenders: "HOLD" | "TRUST"
      // Replies that copy people besides the customer (everyone else on
      // their email): HOLD for approval, or SEND under the ticket type's
      // level when the sender is verified.
      otherRecipients: "HOLD" | "SEND"
      // A new ticket that asks the same as one of the customer's tickets
      // from the last few days that's still open: MERGE (default) merges it
      // into that ticket automatically (no reply; the other is investigated
      // again with both), SUGGEST holds it for a person to merge.
      duplicateTickets: "SUGGEST" | "MERGE"
      // New tickets from a sender who writes more often than the agent
      // investigates: PERSON leaves them for a person, SPAM files them as
      // spam.
      floodingSender: "PERSON" | "SPAM"
    }
    // The workspace's own rules, in order: tickets go through gates
    // (anything to answer? does a person need it? can the reply go out on
    // its own?), and at each the first matching rule after answerable's own
    // checks stops the ticket there; every matching rule with notify lets
    // its people know when the ticket ends up where it sends it. Up to 10
    // at each gate.
    rules: {
      // Keeps the rule's identity as it's edited and moved.
      id: string
      // When it applies, in the team's words, e.g. "The customer is very
      // angry". The agent answers it yes or no on every ticket.
      when: string
      // Where a ticket it matches goes, which is also where it sits. CLOSE:
      // closes it without a reply; SPAM: closes it as spam (gate 1, the
      // Intake tab; never for a message that tries to steer the agent or
      // asks for a person, and a SPAM rule sends someone who wrote in
      // before to a person instead). PERSON: the ticket goes to a person
      // (gate 2, the Handoffs tab). CONTINUE: also at gate 2, stops
      // nothing; it's for notify, which it needs. These are answered on
      // every ticket. APPROVAL: a safeguard on a reply that would go out on
      // its own, answered by the final review (gate 3, the Safeguards tab);
      // the reply waits for a person's approval.
      outcome: "CLOSE" | "SPAM" | "PERSON" | "APPROVAL" | "CONTINUE"
      // With PERSON or APPROVAL, the teammate who gets the ticket, by id
      // (see teammates). null for whoever's free, and always with the other
      // outcomes.
      teammateId: string | null
      // Who to let know by email, by id (see teammates), once per ticket,
      // when the ticket ends up where outcome sends it (a CONTINUE rule:
      // unless it closes). Any outcome; CONTINUE needs someone. Leave it
      // out to tell nobody.
      notify?: string[]
      // false keeps the rule without the agent answering it.
      enabled: boolean
      // The ticket types it applies to, by id. Leave it out for every type.
      types?: string[]
    }[]
    // How much the agent may do on its own with a ticket, for every type
    // whose level is null, from least to most. HANDOFF (Hand to a person):
    // A person takes these and writes the reply. The agent still
    // investigates and leaves what it found. DRAFT (Propose replies):
    // Investigates and drafts replies. Every message to the customer waits
    // for approval. GATHER_INFO (Ask follow-ups): Also asks the customer
    // follow-up questions on its own. Answers wait for approval.
    // ANSWER_RESOLVE (Answer and resolve): Also sends answers on its own
    // and resolves the ticket, once they pass the checks before sending. A
    // type set to this level follows it.
    level: "HANDOFF" | "DRAFT" | "GATHER_INFO" | "ANSWER_RESOLVE"
    // What the agent sorts tickets into, in order, up to 15, with "OTHER"
    // (Other or unclear) last.
    types: {
      // Tickets keep their type by this id, so a renamed type keeps its
      // tickets and stats.
      id: string
      // What the type is called. The agent sorts tickets by the name and
      // description.
      name: string
      // What belongs in the type, and what doesn't. Can be empty.
      description: string
      // How much the agent may do on its own with these tickets, as for the
      // agent's level. null follows the agent's level.
      level: "HANDOFF" | "DRAFT" | "GATHER_INFO" | "ANSWER_RESOLVE" | null
      // Who gets these tickets when they wait on a person, by id (see
      // teammates); null for anyone. A rule that names someone wins.
      ownerId: string | null
      // How to answer these tickets, on top of the company's instructions:
      // what to include, link, or avoid. The agent follows them when it
      // writes a reply to a ticket of this type. Can be empty.
      instructions: string
    }[]
    // The knowledge sources the agent reads, by id (see knowledgeSources).
    knowledgeSources: string[]
    // The connectors that are on, by id (see connectors): your product,
    // Stripe, APIs and MCP servers.
    connectors: string[]
    // Each tool's setting, by key (<connector id>:<tool id>, see tools). A
    // tool with none is off.
    tools: {}
  }
  // The workspace's people, for the teammateId of rules and the ownerId of
  // types.
  teammates: {
    id: string
    name: string | null
    email: string
  }[]
  // The workspace's knowledge sources (get_knowledge_sources), for the
  // agent's knowledgeSources.
  knowledgeSources: {
    id: string
    // DOCS_SITE, FILES, DOCS_SEARCH, LEARNED or HELP_CENTER.
    kind: string
    name: string
  }[]
  // The workspace's connectors (get_connectors), for the agent's
  // connectors.
  connectors: {
    id: string
    kind: "YOUR_PRODUCT" | "STRIPE" | "API" | "MCP"
    name: string
  }[]
  // Every tool the connectors offer, by key, for the agent's tools.
  tools: {
    key: string
    connectorId: string
    name: string
    // READ checks something; CHANGE, MONEY and DESTRUCTIVE act.
    effect: "READ" | "CHANGE" | "DESTRUCTIVE" | "MONEY"
  }[]
  // The latest versions, newest first.
  history: {
    version: number
    savedAt: string
    // Who saved it; null if their account was deleted.
    savedBy: {
      name: string | null
      email: string
    } | null
    // The app or key they used, e.g. "Claude Code"; null in answerable
    // itself.
    via: string | null
    // The earlier version it brought back, if it was a restore.
    restoredFrom: number | null
    // What it changed from the version before.
    changes: {
      // Where the setting is in answerable.
      tab:
        | "Instructions"
        | "Replies"
        | "Intake"
        | "Handoffs"
        | "Autonomy"
        | "Safeguards"
        | "Knowledge"
        | "Integrations"
      // The change, e.g. "Billing and subscriptions: Propose replies to
      // Answer and resolve".
      text: string
      // For rewritten text, the lines taken out and put in.
      lines?: {
        removed: string[]
        added: string[]
      }
    }[]
  }[]
  // The agent's settings in answerable.
  url: string
}

Change the agent's settings

PATCH/workspaces/{workspace}/agent

Save changes (the parts of the settings to change, shaped as the GET returns them) or restoreVersion (an earlier version to bring back) as a new version. rules and types replace the whole list. Returns 409 if someone saved since expectedVersion. Admins only.

Configure the agentagent:configure
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Body
expectedVersionintegerRequired

The current version, from get_agent. If someone saved since, nothing changes: read the settings again and redo the change.

Positive

changesobjectOptional

The settings to change, in the shape get_agent returns them. Only the parts you send change. Send either changes or restoreVersion.

restoreVersionintegerOptional

Instead of changes: an earlier version to bring back, from get_agent's history. It's saved as a new version, so it can be undone the same way.

Positive

Response{ version, changed, changes, url }
{
  // The version now current: a new one, or expectedVersion when nothing
  // changed.
  version: number
  // false when the settings already were as asked, and no version was
  // saved.
  changed: boolean
  // What changed, in words.
  changes: {
    // Where the setting is in answerable.
    tab:
      | "Instructions"
      | "Replies"
      | "Intake"
      | "Handoffs"
      | "Autonomy"
      | "Safeguards"
      | "Knowledge"
      | "Integrations"
    // The change, e.g. "Billing and subscriptions: Propose replies to
    // Answer and resolve".
    text: string
    // For rewritten text, the lines taken out and put in.
    lines?: {
      removed: string[]
      added: string[]
    }
  }[]
  // The agent's settings in answerable.
  url: string
}

Get the workspace's settings

GET/workspaces/{workspace}

Its name, test mode, plan and credits, members, where connecting its support address stands (with the DNS records to add), the contact form, and its webhooks. No secrets. Admins only.

Configure the workspaceworkspace:configure
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Response{ name, slug, languages, testMode, … }
{
  name: string
  // The workspace's address.
  slug: string
  // The team's language, the customers' languages (the main one first), and
  // whether customers are answered in their own language (ISO 639-1 codes).
  languages: {
    team: string
    customers: string[]
    replyInCustomerLanguage: boolean
  }
  // In test mode, replies are emailed only to the workspace's members. Only
  // a person can turn it off, in answerable.
  testMode: {
    on: boolean
    changedAt: string | null
    changedBy: string | null
  }
  plan: {
    plan: string
    // trial, subscribed or expired.
    state: string
    // When the trial or plan ends; null for no end.
    endsAt: string | null
    // AI credits used this period.
    credits: {
      used: number
      limit: number | null
      resets: string | null
    }
    // Why answerable's agent is paused, when it is.
    paused: string | null
  }
  members: {
    name: string | null
    email: string
    // ADMIN or MEMBER.
    role: string
  }[]
  // People invited who haven't joined yet.
  invitations: {
    email: string
    role: string
    expired: boolean
  }[]
  email: {
    // Where connecting the support address stands: address (none yet),
    // domain (DNS records to add), forwarding, or connected.
    step: "address" | "domain" | "forwarding" | "connected"
    senderName: string
    // The address replies come from now; null where email isn't set up on
    // this server.
    from: string | null
    // The company's own support address, connected or being connected.
    supportAddress: string | null
    // Where the support address's mail is to be forwarded.
    forwardTo: string
    domain: {
      name: string
      // PENDING, VERIFIED or FAILED.
      status: string
      // The DNS records to add.
      records: {
        // DKIM, SPF or DMARC.
        purpose: string
        // TXT, MX or CNAME.
        type: string
        // Relative to the domain.
        name: string
        value: string
        priority?: number
        // pending, verified or failed.
        status?: string
      }[]
      checkedAt: string | null
    } | null
    // Whether mail sent to the support address has arrived.
    forwarding: {
      verifiedAt: string | null
      testSentAt: string | null
    }
  }
  widget: {
    enabled: boolean
    // CHAT or FORM: what the widget's button opens.
    mode: string
    chat: {
      greeting: string
      suggestions: string[]
      signedInAccess: boolean
      verifyEmail: boolean
      budgetShare: number
    }
    allowedOrigins: string[]
    // The script tag that adds the widget to a site. More options are in
    // the docs.
    embed: string
  }
  // Read only: webhooks are added and changed in answerable.
  webhooks: {
    // Where events are posted. A Slack address shows only its host.
    url: string
    // The events it gets, e.g. "ticket.needs_attention".
    events: string[]
    // Why nothing is being sent, when deliveries kept failing and it was
    // paused.
    paused: string | null
    lastDelivery: {
      event: string
      status: string
      at: string
    } | null
  }[]
  // The workspace's settings in answerable.
  url: string
}

Change the workspace's settings

PATCH/workspaces/{workspace}

Change its name, sender name, support address (or check its DNS records, or send a forwarding test), and contact form. Only the fields sent change. Members, webhooks, and turning test mode off stay in answerable. Admins only.

Configure the workspaceworkspace:configure
Path
workspacestringRequired

The workspace's address, e.g. "acme" (see list_workspaces).

Up to 100 characters

Body
namestringOptional

The workspace's name. Its address stays the same.

Up to 100 characters

senderNamestringOptional

The name replies are sent under, e.g. "Slides Support".

Up to 80 characters

supportAddressstringOptional

Start connecting the company's own support address, e.g. support@slides.com, or change it, so replies come from it. Returns the DNS records to add and where to forward its mail. Until it's connected, replies come from answerable's address.

Up to 254 characters

checkEmailbooleanOptional

true asks the email provider to look for the domain's DNS records again. The email setup that comes back says what it found.

sendForwardingTestbooleanOptional

true emails the support address, to check its mail is forwarded to answerable. Read the workspace again in a minute to see whether it arrived.

languagesobjectOptional

The workspace's languages (Workspace → General → Languages).

widgetobjectOptional

The widget on the company's site: a live chat or a contact form, whose messages become tickets.

Response{ name, slug, languages, testMode, … }
{
  name: string
  // The workspace's address.
  slug: string
  // The team's language, the customers' languages (the main one first), and
  // whether customers are answered in their own language (ISO 639-1 codes).
  languages: {
    team: string
    customers: string[]
    replyInCustomerLanguage: boolean
  }
  // In test mode, replies are emailed only to the workspace's members. Only
  // a person can turn it off, in answerable.
  testMode: {
    on: boolean
    changedAt: string | null
    changedBy: string | null
  }
  plan: {
    plan: string
    // trial, subscribed or expired.
    state: string
    // When the trial or plan ends; null for no end.
    endsAt: string | null
    // AI credits used this period.
    credits: {
      used: number
      limit: number | null
      resets: string | null
    }
    // Why answerable's agent is paused, when it is.
    paused: string | null
  }
  members: {
    name: string | null
    email: string
    // ADMIN or MEMBER.
    role: string
  }[]
  // People invited who haven't joined yet.
  invitations: {
    email: string
    role: string
    expired: boolean
  }[]
  email: {
    // Where connecting the support address stands: address (none yet),
    // domain (DNS records to add), forwarding, or connected.
    step: "address" | "domain" | "forwarding" | "connected"
    senderName: string
    // The address replies come from now; null where email isn't set up on
    // this server.
    from: string | null
    // The company's own support address, connected or being connected.
    supportAddress: string | null
    // Where the support address's mail is to be forwarded.
    forwardTo: string
    domain: {
      name: string
      // PENDING, VERIFIED or FAILED.
      status: string
      // The DNS records to add.
      records: {
        // DKIM, SPF or DMARC.
        purpose: string
        // TXT, MX or CNAME.
        type: string
        // Relative to the domain.
        name: string
        value: string
        priority?: number
        // pending, verified or failed.
        status?: string
      }[]
      checkedAt: string | null
    } | null
    // Whether mail sent to the support address has arrived.
    forwarding: {
      verifiedAt: string | null
      testSentAt: string | null
    }
  }
  widget: {
    enabled: boolean
    // CHAT or FORM: what the widget's button opens.
    mode: string
    chat: {
      greeting: string
      suggestions: string[]
      signedInAccess: boolean
      verifyEmail: boolean
      budgetShare: number
    }
    allowedOrigins: string[]
    // The script tag that adds the widget to a site. More options are in
    // the docs.
    embed: string
  }
  // Read only: webhooks are added and changed in answerable.
  webhooks: {
    // Where events are posted. A Slack address shows only its host.
    url: string
    // The events it gets, e.g. "ticket.needs_attention".
    events: string[]
    // Why nothing is being sent, when deliveries kept failing and it was
    // paused.
    paused: string | null
    lastDelivery: {
      event: string
      status: string
      at: string
    } | null
  }[]
  // The workspace's settings in answerable.
  url: string
}

For agents: this page as Markdown, and every page in llms.txt.