Follow-ups
Schedule a follow-up message to a lead.
Schedule a follow-up
POST
messages:sendIdempotency-Key required/v1/leads/{lead_id}/follow-ups/Parameters
| Name | In | Type | Notes |
|---|---|---|---|
lead_idrequired | path | integer | — |
Idempotency-Keyrequired | header | string (uuid) | UUID4 identifying one intended write. Reuse it only when retrying that same write. |
Request body
| Field | Type | Notes |
|---|---|---|
cancel_on_reply | boolean | — |
file_id | string (uuid) | — |
send_atrequired | string (date-time) | — |
text | string | max length 1000 |
Response fields (201)
| Field | Type | Notes |
|---|---|---|
file_id | string | read-only |
id | string | read-only |
is_human_initiated | boolean | read-only |
lead_id | string | read-only |
media_type | string | read-only |
send_at | string (date-time) | read-only |
send_origin | string | read-only |
skip_if_replied | boolean | read-only |
status | string | read-only |
Responses
201Success400The request is invalid.401Authentication is missing, invalid, or revoked.403The authenticated identity lacks the required scope or capability.404The resource is unavailable or not visible to this organization.409The write conflicts with current state or an identical request is still running.422The write contains fields outside its closed input schema.429The request-rate budget is exhausted.
Example request
curl
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"}'