This page documents the canonical HTTP contract for this endpoint.
This endpoint may send immediately. A future send_at queues a scheduled outbox delivery; an omitted time sends now for a standalone task, or uses the sequence working window for a sequence task. The response is an outbox receipt, not just a task status. Sending requires an active enrollment where applicable, a usable recipient email, an authorized connected mailbox, resolved template variables, and provider readiness.
Path parameters
task_idrequiredstring
Task ID.
| Name | Type | Description |
|---|---|---|
| task_idrequired | string | Task ID. |
Query parameters
actorUserId· optionalstring
Optional actor override.
| Name | Type | Description |
|---|---|---|
| actorUserId | string | Optional actor override. |
Body parameters
send_at· optionalstring (ISO datetime)
Optional send time. Omitted means send now for a standalone task; sequence tasks use the sequence schedule window.
provider· optionalstring
Optional gmail or microsoft provider override.
provider_account_email· optionalstring
Optional authorized sender mailbox address.
subject· optionalstring
Optional subject override.
body_text· optionalstring
Optional plain-text body override.
body_html· optionalstring
Optional HTML body override.
body_format· optionalstring
auto, text, html, or both (both is Gmail-only); defaults to auto.
thread_ref· optionalobject
Optional thread reference.
context_tags· optionalarray<object>
Optional send context tags.
attachments· optionalarray<object>
Optional attachment descriptors.
| Name | Type | Description |
|---|---|---|
| send_at | string (ISO datetime) | Optional send time. Omitted means send now for a standalone task; sequence tasks use the sequence schedule window. |
| provider | string | Optional gmail or microsoft provider override. |
| provider_account_email | string | Optional authorized sender mailbox address. |
| subject | string | Optional subject override. |
| body_text | string | Optional plain-text body override. |
| body_html | string | Optional HTML body override. |
| body_format | string | auto, text, html, or both (both is Gmail-only); defaults to auto. |
| thread_ref | object | Optional thread reference. |
| context_tags | array<object> | Optional send context tags. |
| attachments | array<object> | Optional attachment descriptors. |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid payload or actor. |
| 401 | Invalid API key or missing auth. |
| 403 | Missing tasks:write scope. |
| 404 | Task or lead not found. |
| 409 | Task requires an action, sender unavailable, sequence enrollment inactive, or template variables unresolved. |
