> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent configuration and channel bindings

> Endpoints for managing agent configuration, channel bindings, and multi-round outreach sequences.

These endpoints reuse Console configuration services. Website creation uses a separate backend workflow; the corresponding [MCP management tools](/docs/mcp/tools.md) reuse these public services.

> [!NOTE]
>
> Use `Authorization: Bearer <API_KEY>`. Resources are scoped to the key owner. The rolling user-default preset includes these permissions; the readonly preset only includes `agents:read`. Explicit denials remain effective. Minimum tier: Free.

Reads use the `read` rate-limit bucket. Writes use `outreach_write`.

## Endpoints

| Method | Path | Description |
| - | - | - |
| `GET` | `/api/v2/agents` | [List agents](/docs/api/v2/agents-list.md) |
| `GET` | `/api/v2/agents/{agentId}` | [Get agent](/docs/api/v2/agents-get.md) |
| `PATCH` | `/api/v2/agents/{agentId}` | [Update agent](/docs/api/v2/agents-update.md) |
| `POST` | `/api/v2/agents/preview` | [Preview message](/docs/api/v2/agents-preview.md) |
| `POST` | `/api/v2/agents/from-website` | [Create from website](/docs/api/v2/agents-from-website.md) |
| `PUT` | `/api/v2/agents/{agentId}/channel-bindings/{channel}` | [Bind channel](/docs/api/v2/agents-bind-channel.md) |
| `DELETE` | `/api/v2/agents/{agentId}/channel-bindings/{channel}` | [Unbind channel](/docs/api/v2/agents-unbind-channel.md) |
| `GET` | `/api/v2/agents/{agentId}/sequence` | [Get sequence](/docs/api/v2/agents-sequence-get.md) |
| `PUT` | `/api/v2/agents/{agentId}/sequence` | [Update sequence](/docs/api/v2/agents-sequence-update.md) |
| `POST` | `/api/v2/agents/{agentId}/sequence/generate` | [Generate round content](/docs/api/v2/agents-sequence-generate.md) |
| `POST` | `/api/v2/agents/{agentId}/sequence/preview` | [Preview follow-up](/docs/api/v2/agents-sequence-preview.md) |

> [card] [List agents](/docs/api/v2/agents-list.md)
>
> Paginated summary list of all agents.

> [card] [Get agent](/docs/api/v2/agents-get.md)
>
> Read full configuration and channel bindings.

> [card] [Update agent](/docs/api/v2/agents-update.md)
>
> Partially edit agent configuration with optimistic concurrency.

> [card] [Preview message](/docs/api/v2/agents-preview.md)
>
> Preview a single message before sending.

> [card] [Create from website](/docs/api/v2/agents-from-website.md)
>
> Create a draft agent from a company website.

> [card] [Bind channel](/docs/api/v2/agents-bind-channel.md)
>
> Bind or rebind a channel to an agent.

> [card] [Unbind channel](/docs/api/v2/agents-unbind-channel.md)
>
> Unbind a channel from an agent.

> [card] [Get sequence](/docs/api/v2/agents-sequence-get.md)
>
> Read outreach sequence configuration.

> [card] [Update sequence](/docs/api/v2/agents-sequence-update.md)
>
> Save or disable a multi-round sequence.

> [card] [Generate round content](/docs/api/v2/agents-sequence-generate.md)
>
> Generate content for a follow-up round.

> [card] [Preview follow-up](/docs/api/v2/agents-sequence-preview.md)
>
> Preview a follow-up message in a sequence.

***

## Shared concepts

### Response envelope

Successful responses use the standard envelope:

```json theme={null}
{
  "ok": true,
  "request_id": "string",
  "item": { ... }
}
```

List responses include `items`, `total`, `page`, and `limit`.

### Agent summary vs detail

Summaries expose `id`, `name`, `description`, `status`, `default_mode`, `generation_contract_version`, and `updated_at`. Detail responses additionally include editable configuration, `config_mode`, `created_at`, and `channel_bindings`.

Each `linkedin`/`whatsapp`/`email` binding is `null` or an object containing `account_id` and `bound_at`. Use the existing `GET /api/v2/connect/accounts` to select an account.

### Optimistic concurrency

Every mutation requires `expected_updated_at`, copied exactly from the latest detail response. Stale versions return `409`; read and reconcile changes before retrying.

***

## MCP tools

| Tool | Purpose | Endpoint |
| - | - | - |
| `revor_preview_agent_message` | Preview a single message | `POST /api/v2/agents/preview` |
| `revor_get_agent_sequence` | Read sequence | `GET /api/v2/agents/{agentId}/sequence` |
| `revor_update_agent_sequence` | Save sequence | `PUT /api/v2/agents/{agentId}/sequence` |
| `revor_generate_agent_sequence_content` | Generate round content | `POST /api/v2/agents/{agentId}/sequence/generate` |
| `revor_preview_agent_sequence` | Preview follow-up | `POST /api/v2/agents/{agentId}/sequence/preview` |

***

## Errors and retries

| HTTP | Code | Meaning |
| - | - | - |
| `400` | `agent_input_invalid` | Request does not match the contract |
| `400` | `agent_configuration_invalid` | Violates business validation rules |
| `403` | `permission_denied` | Missing required permission |
| `404` | `agent_not_found` | Agent does not exist, was deleted, or belongs to another user |
| `404` | `agent_sequence_unavailable` | Feature not enabled for this agent |
| `409` | `agent_config_conflict` | Version expired or concurrent modification |
| `409` | `agent_sequence_config_conflict` | Sequence version expired or concurrent modification |
| `409` | `agent_account_already_bound` | Account occupancy conflict |
| `409` | `agent_knowledge_base_not_found` | Linked knowledge base is unavailable |
| `500` | `agent_operation_failed` | Operation failed. Read current state before retrying |

### Retry rules

* Base configuration reads, edits, and binding operations are synchronous.
* Website creation, content generation, and message previews return asynchronous jobs.
* Sequence publication returns its version synchronously; workers synchronize linked plans.

> [!WARNING]
>
> Base configuration persistence and subsequent side effects are not one transaction. After a `500`, read current state before retrying. Replaying an old base configuration version returns a conflict rather than an idempotent success.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.