# Overview

Your own tools and agents can work in answerable beside your team: find the tickets that need someone, read them, propose replies for a person to approve, and, when you allow it, send them. This page covers what they can do, how they sign in, and the limits they work within.

## Two ways in

- **[MCP server](https://staging.preview.answerable.co/docs/developers/mcp.md)** at `https://staging.preview.answerable.co/mcp`, for agents that support MCP, such as Claude, ChatGPT, Cursor, and Claude Code.
- **[REST API](https://staging.preview.answerable.co/docs/developers/api.md)** at `https://staging.preview.answerable.co/api/v1`, for scripts, and anything else that makes HTTP requests.

Both offer the same actions, through the same checks, so use whichever your tool supports. [Connect an app](https://staging.preview.answerable.co/docs/developers/connect.md) has the steps for Claude, ChatGPT, Claude Code, Cursor, and VS Code. [Webhooks](https://staging.preview.answerable.co/docs/integrations/webhooks.md) go the other way: answerable calls your URL when tickets change.

To hand these docs to an agent, add `.md` to a page's address for its Markdown (`https://staging.preview.answerable.co/docs/developers/mcp.md`), or give it `https://staging.preview.answerable.co/llms.txt`, which lists every page.

## What agents can do

- **Find tickets.** List the workspaces they can reach, and the tickets in each: the ones waiting for you, those that need a person (**Your turn**), open, done, all of them, spam, or trash.
- **Read a ticket.** The conversation, what answerable's agent found, its current draft, the team's notes, the ticket's history, and the customer's earlier tickets.
- **Search the knowledge.** The same docs, files, help center articles, and lessons answerable's agent answers from, to ground a reply of their own.
- **Draft a reply.** Propose a reply for a teammate to review and send in answerable. Nothing is emailed.
- **Investigate again.** Ask answerable's agent to look at a ticket again from scratch.
- **Update tickets.** Close or reopen them, move them to spam or out of it, assign them to a teammate, add a note, or hand them back to answerable's agent with an instruction, several at a time.
- **Send a reply.** Email the customer. This needs its own permission, which is never on unless you choose it.
- **Take actions.** See what can be done for a ticket's customer in your other systems, such as a refund in Stripe or your own actions in your product, and do it. This needs its own permission, which is never on unless you choose it. [More](https://staging.preview.answerable.co/docs/integrations/your-product.md#actions)
- **Receive messages.** Bring in customers' messages from your own forms, apps, and channels, as tickets answerable's agent works on. [More](https://staging.preview.answerable.co/docs/developers/api.md#receiving-customers-messages)
- **Configure the agent.** Read and change answerable's agent: its instructions, replies, rules, ticket types, and safeguards. Each change is saved as a version you can restore. This needs its own permission, and an admin.
- **Work on the help center.** Read articles with how they're doing, write and change them as drafts, translate them, and, with its own permission, publish them. [More](https://staging.preview.answerable.co/docs/developers/mcp.md#help-center-articles)
- **Import and export tickets.** Bring in the history from the tool you used before, or download every ticket. This needs its own permission, and an admin. [More](https://staging.preview.answerable.co/docs/knowledge/past-tickets.md)
- **Configure the workspace.** Read the workspace's settings, and change its name, sender name, languages, support address, and widget (the contact form or the live chat). Members, webhooks, and turning test mode off stay in answerable. This needs its own permission, and an admin.

An agent acts as the person who connected it, in the workspaces they chose, and only while that person is a member. Its actions show in the ticket's history under their name and the key's or app's, such as "Sam via Claude Code".

## Authentication

Every request carries a Bearer token: an API key, or an access token from an app connected with OAuth.

```http
Authorization: Bearer ans_key_…
```

A request without one, or with one that's revoked or expired, gets `401`.

### API keys

Create keys under **Your account → API keys**, from the account menu. Give each tool its own key, with only what it needs:

- **Workspaces:** one or more of yours.
- **Permissions:** what it may do (below).
- **Expires:** in 30 days, 90 days, a year, or never.

The key is shown once, and starts with `ans_key_`. answerable keeps only a hash of it. A key works with both the MCP server and the REST API. Revoke it on the same page and it stops working at once. You can have up to 25 keys.

### OAuth

Apps that support OAuth, such as Claude and ChatGPT, connect without a key. Add answerable to the app with the MCP server's address, and the app sends you to answerable to sign in and choose the workspaces and permissions it gets. Apps you connected are listed under **Your account → Connected apps**, where you can disconnect them.

If you're building an app, answerable is an OAuth 2.1 authorization server:

- **Discovery:** `https://staging.preview.answerable.co/.well-known/oauth-authorization-server`. A `401` from either server has a `WWW-Authenticate` header whose `resource_metadata` points to that server's protected resource metadata.
- **Apps** register with Dynamic Client Registration (`/oauth/register`), or use the https address of a Client ID Metadata Document as their `client_id`.
- **Flow:** the authorization code flow with PKCE (`S256`) only.
- **Resource:** the `resource` parameter names the server the tokens are for: the MCP server (the default) or the REST API. Tokens only work at that server.
- **Tokens:** access tokens (`ans_at_…`) last an hour. Refresh tokens (`ans_rt_…`) last 30 days and work once; each refresh returns a new one. Using a code or refresh token twice signs the connection out.
- **Scopes** are the permissions below, separated by spaces. Without any, an app asks for reading and drafting. The person chooses on the consent screen, starting from what the app asked for, except sending, which they have to check themselves.

## Permissions

| Permission | Scope | Lets an agent | New keys |
| --- | --- | --- | --- |
| Read tickets | `tickets:read` | Conversations, what the agent found, and drafts. | Always |
| Update tickets | `tickets:manage` | Close, reopen and assign tickets, add notes, mark spam, and block senders. | Off |
| Investigate | `tickets:investigate` | Have the agent look into a ticket again. | Off |
| Receive messages | `tickets:receive` | Turn messages from your own forms and apps into tickets. | Off |
| Draft replies | `tickets:draft` | Propose replies for a person to send. | On |
| Send replies | `tickets:send` | Email customers without a person approving each reply. | Off |
| Take actions | `tickets:act` | Act in your other systems, like a Stripe refund, and approve the agent's actions. | Off |
| Read help center articles | `help:read` | Published and draft articles, and how often each is read. | Off |
| Write help center articles | `help:write` | Add articles and edit drafts. Nothing goes live. | Off |
| Publish help center articles | `help:publish` | Put articles live and take them down. | Off |
| Read the agent's settings | `agent:read` | Its instructions, rules, ticket types, and safeguards. | Off |
| Configure the agent | `agent:configure` | Change its settings and restore earlier versions. Admins only. | Off |
| Configure the workspace | `workspace:configure` | Its name, sender name, email setup, and contact form. Admins only. | Off |
| Import and export tickets | `tickets:import` | Add tickets from another support tool, and export them. Admins only. | Off |

Reading is always included. New keys and connections can also draft, so an agent can propose replies while a person decides what's sent. Importing and configuring the agent also need the person to be an admin of the workspace, and configuring includes reading the agent's settings.

## Limits

| Limit | Default |
| --- | --- |
| Requests a minute, per key | 60 |
| Requests a minute, per workspace | 300 |
| Drafts an hour, per key | 120 |
| Investigations an hour, per workspace | 30 |
| Investigations at once, per workspace | 5 |
| Replies sent an hour, per key | 20 |
| Ticket changes an hour, per key (and article changes) | 200 |
| Actions taken an hour, per key | 20 |
| Messages received an hour, per workspace | 300 |

answerable sets these, and a plan can raise them. Your workspace's own are listed under **Your account → API keys**. Requests count per key or connection and per workspace. Drafts, sends, ticket changes and actions taken count per key, each ticket changed counting once and each action a sent reply takes with it counting as one taken (reads, such as looking up an account, aren't counted); help center articles changed count apart from tickets; investigations and messages received count per workspace. A key that reaches several workspaces gets the most generous of their requests a minute.

When a limit is reached, the REST API answers `429` with `Retry-After` in seconds, and an MCP tool returns an error that says how long to wait. An address that sends 20 keys or tokens that don't work within 10 minutes has to wait too.

A workspace whose trial or plan has ended answers `402` until it subscribes.

## Next

- [MCP server](https://staging.preview.answerable.co/docs/developers/mcp.md): connect an agent, and the tools it gets.
- [REST API](https://staging.preview.answerable.co/docs/developers/api.md): requests, errors, and every endpoint.
- [Webhooks](https://staging.preview.answerable.co/docs/integrations/webhooks.md): hear about tickets as they change.
- [Your product](https://staging.preview.answerable.co/docs/integrations/your-product.md) and [Connect an API](https://staging.preview.answerable.co/docs/integrations/api.md): who your customers are, and actions in your systems, for answerable's agent.
