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

# Create agent from website

> Create a draft agent from a company website.

Create a draft agent from a company website.

## Overview

| | |
| - | - |
| Method | `POST` |
| Path | `/api/v2/agents/from-website` |
| Permission | `agents:write` |
| Idempotency | Required (`Idempotency-Key` header) |
| Returns | Public job (poll `GET /api/v2/jobs/{id}`) |

## Request body

**company\_website** `string` *required*

A domain or HTTP(S) website URL.

**mode** `string` *required*

`icebreaker` or `autoreply`.

**locale** `string`

Defaults to `en`.

**name** `string`

Optional. A name for the new agent.

```bash cURL theme={null}
curl -X POST "https://revor.ai/api/v2/agents/from-website" \
  -H "Authorization: Bearer sk-revor-REPLACE_ME" \
  -H "Idempotency-Key: agent-from-web-001" \
  -H "Content-Type: application/json" \
  -d '{
    "company_website": "example.com",
    "mode": "icebreaker",
    "locale": "en",
    "name": "Example outreach agent"
  }'
```

## Response

```json 202 theme={null}
{
  "ok": true,
  "request_id": "req_xxx",
  "item": {
    "id": "job-uuid",
    "status": "queued",
    "type": "agent_from_website"
  }
}
```

### Behavior

* Returns `202` with `item` (public job).
* Poll `GET /api/v2/jobs/{id}`; successful `result.item.id` identifies the agent.
* Both modes create a draft without binding or publishing.
* Outreach (`icebreaker`) uses V2; customer service (`autoreply`) uses V1.
* Reuse the same idempotency key for retries of the same request.

## Errors

| HTTP | Code | Meaning |
| - | - | - |
| `400` | `agent_input_invalid` | Request does not match the contract |
| `403` | `permission_denied` | Missing required permission |
| `500` | `agent_operation_failed` | Operation failed. Read current state before retrying |


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