Sending Email
Send, reply, and forward emails from your agent.
Sending Email
Send
POST /v1/inboxes/:id/send| Field | Type | Required | Description |
|---|---|---|---|
to | string or string[] | Yes | Recipient(s) |
subject | string | Yes | Email subject |
text | string | No | Plain text body |
html | string | No | HTML body |
cc | string or string[] | No | CC recipients |
curl -X POST https://api.lumbox.co/v1/inboxes/inb_abc123/send \
-H "X-API-Key: ak_..." \
-H "Content-Type: application/json" \
-d '{
"to": "user@example.com",
"subject": "Hello from my agent",
"text": "This email was sent by an AI agent."
}'Reply
POST /v1/inboxes/:id/replyReplies to an existing email with proper threading headers (In-Reply-To, References).
| Field | Type | Required | Description |
|---|---|---|---|
email_id | string | Yes | Email to reply to |
text | string | No | Reply text body |
html | string | No | Reply HTML body |
reply_all | boolean | No | Reply to all recipients |
Forward
POST /v1/inboxes/:id/forwardForwards an email to another address.
| Field | Type | Required | Description |
|---|---|---|---|
email_id | string | Yes | Email to forward |
to | string or string[] | Yes | Forward to |
comment | string | No | Comment above forwarded message |