Send Message
**CLI:**
```bash
agentmail inboxes:messages send --inbox-id <inbox_id> --to recipient@example.com --subject "Hello" --text "Body"
```
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
inbox_id
The ID of the inbox.
Request
This endpoint expects an object.
labels
Labels of message.
reply_to
Reply-to address or addresses.
to
Recipient address or addresses.
cc
CC recipient address or addresses.
bcc
BCC recipient address or addresses.
subject
Subject of message.
text
Plain text body of message.
html
HTML body of message.
attachments
Attachments to include in message.
headers
Headers to include in message.
track_opens
Track when this message is first opened. Requires a custom domain with tracking enabled and
an HTML body. Opens surface as the opened label on the message and as a message.opened
event. One pixel is injected per message, not per recipient, so a message with several
recipients fires once when any of them opens it, and the event does not identify which one.
Response
This endpoint returns an object.
message_id
ID of message.
thread_id
ID of thread.
Errors
400
Validation Error
403
Message Rejected Error
404
Not Found Error
409
Conflict Error
