# Follow-ups

Schedule a follow-up message to a lead.

Schedule a follow-up message to a lead.

## Schedule a follow-up

`POST /v1/leads/{lead_id}/follow-ups/`

Required scope: `messages:send`

### Parameters

| Name | In | Type | Required | Notes |
| --- | --- | --- | --- | --- |
| `lead_id` | path | integer | Yes |  |
| `Idempotency-Key` | header | string (uuid) | Yes | UUID4 identifying one intended write. Reuse it only when retrying that same write. |

### Request body

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `cancel_on_reply` | boolean | No |  |
| `file_id` | string (uuid) | No |  |
| `send_at` | string (date-time) | Yes |  |
| `text` | string | No | max length 1000 |

### Response (201)

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `file_id` | string | No | read-only |
| `id` | string | No | read-only |
| `is_human_initiated` | boolean | No | read-only |
| `lead_id` | string | No | read-only |
| `media_type` | string | No | read-only |
| `send_at` | string (date-time) | No | read-only |
| `send_origin` | string | No | read-only |
| `skip_if_replied` | boolean | No | read-only |
| `status` | string | No | read-only |

### Responses

- `201` Success
- `400` The request is invalid.
- `401` Authentication is missing, invalid, or revoked.
- `403` The authenticated identity lacks the required scope or capability.
- `404` The resource is unavailable or not visible to this organization.
- `409` The write conflicts with current state or an identical request is still running.
- `422` The write contains fields outside its closed input schema.
- `429` The request-rate budget is exhausted.

```bash
curl -X POST "https://api.themochi.app/v1/leads/<lead_id>/follow-ups/" \
  -H "Authorization: Bearer $MOCHI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen | tr A-Z a-z)" \
  -H "Content-Type: application/json" \
  -d '{"send_at":"2026-01-01T00:00:00Z"}'
```

