curl -X POST https://api.wirebox.sh/api/v1/mail/send \
-H "Authorization: Bearer $WIREBOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"agent": "eva",
"to": ["user@example.com"],
"subject": "Re: Support Ticket #1042",
"text": "Hello! Your ticket has been updated.",
"thread_id": "thrd_01J8XYZ987ABC"
}'
{
"id": "msg_01J8OUTBOUND789",
"thread_id": "thrd_01J8XYZ987ABC",
"status": "queued",
"created_at": "2026-09-11T12:05:00Z"
}
Mail & Messages
Send Email
Send an outbound email or reply to an ongoing conversation thread.
POST
/
api
/
v1
/
mail
/
send
curl -X POST https://api.wirebox.sh/api/v1/mail/send \
-H "Authorization: Bearer $WIREBOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"agent": "eva",
"to": ["user@example.com"],
"subject": "Re: Support Ticket #1042",
"text": "Hello! Your ticket has been updated.",
"thread_id": "thrd_01J8XYZ987ABC"
}'
{
"id": "msg_01J8OUTBOUND789",
"thread_id": "thrd_01J8XYZ987ABC",
"status": "queued",
"created_at": "2026-09-11T12:05:00Z"
}
Body Parameters
string
required
The agent handle sending the email (e.g.
eva).string[]
required
Array of recipient email addresses.
string
required
Email subject line.
string
required
Plain-text message body.
string
Optional HTML formatted body.
string
Optional thread ID to reply to. Wirebox will set
In-Reply-To and References headers automatically.curl -X POST https://api.wirebox.sh/api/v1/mail/send \
-H "Authorization: Bearer $WIREBOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"agent": "eva",
"to": ["user@example.com"],
"subject": "Re: Support Ticket #1042",
"text": "Hello! Your ticket has been updated.",
"thread_id": "thrd_01J8XYZ987ABC"
}'
{
"id": "msg_01J8OUTBOUND789",
"thread_id": "thrd_01J8XYZ987ABC",
"status": "queued",
"created_at": "2026-09-11T12:05:00Z"
}