# Capture a visitor lead from the widget

> POST /lead: Capture a visitor lead from the widget

`POST https://usedocs.app/lead`

## Request body

Required, `application/json`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `botId` | `string (uuid)` | Yes |  |
| `botKey` | `string` |  |  |
| `conversationId` | `string` |  |  |
| `email` | `string (email)` | Yes |  |
| `name` | `string` |  |  |
| `note` | `string` |  |  |

## Responses

| Status | Description |
| --- | --- |
| `200` | Lead stored |
| `400` | Structured JSON error |
| `403` | Structured JSON error |