Emails
What this feature is for
Emails are the primary action object for both inbound handling and outbound communication.
Practical workflows
Inbound inspection
- List messages with
GET /api/v1/emailsfiltered by inbox. - Inspect one message with
GET /api/v1/emails/{id}. - Apply deterministic metadata updates where needed.
Outbound actions
- Reply:
POST /api/v1/emails/{id}/reply - Forward:
POST /api/v1/emails/{id}/forward - Send new message:
POST /api/v1/emails/send
Additional behavior
GET /api/v1/emails/searchhelps with narrow retrieval.- Thread grouping should be derived and then applied to response processing.
Notes for agents
- Track action state per email to avoid duplicate sends.
- Use label or metadata updates to mark processed messages.