AACFlow

AgentMail

E-Mail-Postfächer, Threads und Nachrichten mit AgentMail verwalten

AgentMail is an API-first email platform built for agents and automation. AgentMail lets you create email inboxes on the fly, send and receive messages, reply to threads, manage drafts, and organize conversations with labels — all through a simple REST API designed for programmatic access.

Why AgentMail?

  • Agent-Native Email: Purpose-built for AI agents and automation — create inboxes, send messages, and manage threads without human-facing UI overhead.
  • Full Email Lifecycle: Send new messages, reply to threads, forward emails, manage drafts, and schedule sends — all from a single API.
  • Thread & Conversation Management: Organize emails into threads with full read, reply, forward, and label support for structured conversation tracking.
  • Draft Workflow: Compose drafts, update them, schedule sends, and dispatch when ready — perfect for review-before-send workflows.
  • Label Organization: Tag threads and messages with custom labels for filtering, routing, and downstream automation.

Using AgentMail in AACFlow

AACFlow's AgentMail integration connects your agentic workflows directly to AgentMail using an API key. With 20 operations spanning inboxes, threads, messages, and drafts, you can build powerful email automations without writing backend code.

Key benefits of using AgentMail in AACFlow:

  • Dynamic inbox creation: Spin up new inboxes on the fly for each agent, workflow, or customer — perfect for multi-tenant email handling.
  • Automated email processing: List and read incoming messages, then trigger downstream actions based on content, sender, or labels.
  • Conversational email: Reply to threads and forward messages to keep conversations flowing naturally within your automated workflows.
  • Draft and review workflows: Create drafts, update them with AI-generated content, and send when approved — ideal for human-in-the-loop patterns.
  • Email organization: Apply labels to threads and messages to categorize, filter, and route emails through your automation pipeline.

Whether you're building an AI email assistant, automating customer support replies, processing incoming leads, or managing multi-agent email workflows, AgentMail in AACFlow gives you direct, secure access to the full AgentMail API — no middleware required. AACFlowply configure your API key, select the operation you need, and let AACFlow handle the rest.

Nutzungsanleitung

Integrate AgentMail into your workflow. Create and manage email inboxes, send and receive messages, reply to threads, manage drafts, and organize threads with labels. Requires API Key.

Tools

agentmail_create_draft

Create a new email draft in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox to create the draft in
tostringNeinRecipient email addresses (comma-separated)
subjectstringNeinDraft subject line
textstringNeinPlain text draft body
htmlstringNeinHTML draft body
ccstringNeinCC recipient email addresses (comma-separated)
bccstringNeinBCC recipient email addresses (comma-separated)
inReplyTostringNeinID of message being replied to
sendAtstringNeinISO 8601 timestamp to schedule sending

Ausgabe

ParameterTypBeschreibung
draftIdstringUnique identifier for the draft
inboxIdstringInbox the draft belongs to
subjectstringDraft subject
toarrayRecipient email addresses
ccarrayCC email addresses
bccarrayBCC email addresses
textstringPlain text content
htmlstringHTML content
previewstringDraft preview text
labelsarrayLabels assigned to the draft
inReplyTostringMessage ID this draft replies to
sendStatusstringSend status (scheduled, sending, failed)
sendAtstringScheduled send time
createdAtstringCreation timestamp
updatedAtstringLast updated timestamp

agentmail_create_inbox

Create a new email inbox with AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
usernamestringNeinUsername for the inbox email address
domainstringNeinDomain for the inbox email address
displayNamestringNeinDisplay name for the inbox

Ausgabe

ParameterTypBeschreibung
inboxIdstringUnique identifier for the inbox
emailstringEmail address of the inbox
displayNamestringDisplay name of the inbox
createdAtstringCreation timestamp
updatedAtstringLast updated timestamp

agentmail_delete_draft

Delete an email draft in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox containing the draft
draftIdstringJaID of the draft to delete

Ausgabe

ParameterTypBeschreibung
deletedbooleanWhether the draft was successfully deleted

agentmail_delete_inbox

Delete an email inbox in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox to delete

Ausgabe

ParameterTypBeschreibung
deletedbooleanWhether the inbox was successfully deleted

agentmail_delete_thread

Delete an email thread in AgentMail (moves to trash, or permanently deletes if already in trash)

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox containing the thread
threadIdstringJaID of the thread to delete
permanentbooleanNeinForce permanent deletion instead of moving to trash

Ausgabe

ParameterTypBeschreibung
deletedbooleanWhether the thread was successfully deleted

agentmail_forward_message

Forward an email message to new recipients in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox containing the message
messageIdstringJaID of the message to forward
tostringJaRecipient email addresses (comma-separated)
subjectstringNeinOverride subject line
textstringNeinAdditional plain text to prepend
htmlstringNeinAdditional HTML to prepend
ccstringNeinCC recipient email addresses (comma-separated)
bccstringNeinBCC recipient email addresses (comma-separated)

Ausgabe

ParameterTypBeschreibung
messageIdstringID of the forwarded message
threadIdstringID of the thread

agentmail_get_draft

Get details of a specific email draft in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox the draft belongs to
draftIdstringJaID of the draft to retrieve

Ausgabe

ParameterTypBeschreibung
draftIdstringUnique identifier for the draft
inboxIdstringInbox the draft belongs to
subjectstringDraft subject
toarrayRecipient email addresses
ccarrayCC email addresses
bccarrayBCC email addresses
textstringPlain text content
htmlstringHTML content
previewstringDraft preview text
labelsarrayLabels assigned to the draft
inReplyTostringMessage ID this draft replies to
sendStatusstringSend status (scheduled, sending, failed)
sendAtstringScheduled send time
createdAtstringCreation timestamp
updatedAtstringLast updated timestamp

agentmail_get_inbox

Get details of a specific email inbox in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox to retrieve

Ausgabe

ParameterTypBeschreibung
inboxIdstringUnique identifier for the inbox
emailstringEmail address of the inbox
displayNamestringDisplay name of the inbox
createdAtstringCreation timestamp
updatedAtstringLast updated timestamp

agentmail_get_message

Get details of a specific email message in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox containing the message
messageIdstringJaID of the message to retrieve

Ausgabe

ParameterTypBeschreibung
messageIdstringUnique identifier for the message
threadIdstringID of the thread this message belongs to
fromstringSender email address
toarrayRecipient email addresses
ccarrayCC email addresses
bccarrayBCC email addresses
subjectstringMessage subject
textstringPlain text content
htmlstringHTML content
createdAtstringCreation timestamp

agentmail_get_thread

Get details of a specific email thread including messages in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox containing the thread
threadIdstringJaID of the thread to retrieve

Ausgabe

ParameterTypBeschreibung
threadIdstringUnique identifier for the thread
subjectstringThread subject
sendersarrayList of sender email addresses
recipientsarrayList of recipient email addresses
messageCountnumberNumber of messages in the thread
labelsarrayLabels assigned to the thread
lastMessageAtstringTimestamp of last message
createdAtstringCreation timestamp
updatedAtstringLast updated timestamp
messagesarrayMessages in the thread
messageIdstringUnique identifier for the message
fromstringSender email address
toarrayRecipient email addresses
ccarrayCC email addresses
bccarrayBCC email addresses
subjectstringMessage subject
textstringPlain text content
htmlstringHTML content
createdAtstringCreation timestamp

agentmail_list_drafts

List email drafts in an inbox in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox to list drafts from
limitnumberNeinMaximum number of drafts to return
pageTokenstringNeinPagination token for next page of results

Ausgabe

ParameterTypBeschreibung
draftsarrayList of drafts
draftIdstringUnique identifier for the draft
inboxIdstringInbox the draft belongs to
subjectstringDraft subject
toarrayRecipient email addresses
ccarrayCC email addresses
bccarrayBCC email addresses
previewstringDraft preview text
sendStatusstringSend status (scheduled, sending, failed)
sendAtstringScheduled send time
createdAtstringCreation timestamp
updatedAtstringLast updated timestamp
countnumberTotal number of drafts
nextPageTokenstringToken for retrieving the next page

agentmail_list_inboxes

List all email inboxes in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
limitnumberNeinMaximum number of inboxes to return
pageTokenstringNeinPagination token for next page of results

Ausgabe

ParameterTypBeschreibung
inboxesarrayList of inboxes
inboxIdstringUnique identifier for the inbox
emailstringEmail address of the inbox
displayNamestringDisplay name of the inbox
createdAtstringCreation timestamp
updatedAtstringLast updated timestamp
countnumberTotal number of inboxes
nextPageTokenstringToken for retrieving the next page

agentmail_list_messages

List messages in an inbox in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox to list messages from
limitnumberNeinMaximum number of messages to return
pageTokenstringNeinPagination token for next page of results

Ausgabe

ParameterTypBeschreibung
messagesarrayList of messages in the inbox
messageIdstringUnique identifier for the message
fromstringSender email address
toarrayRecipient email addresses
subjectstringMessage subject
previewstringMessage preview text
createdAtstringCreation timestamp
countnumberTotal number of messages
nextPageTokenstringToken for retrieving the next page

agentmail_list_threads

List email threads in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox to list threads from
limitnumberNeinMaximum number of threads to return
pageTokenstringNeinPagination token for next page of results
labelsstringNeinComma-separated labels to filter threads by
beforestringNeinFilter threads before this ISO 8601 timestamp
afterstringNeinFilter threads after this ISO 8601 timestamp

Ausgabe

ParameterTypBeschreibung
threadsarrayList of email threads
threadIdstringUnique identifier for the thread
subjectstringThread subject
sendersarrayList of sender email addresses
recipientsarrayList of recipient email addresses
messageCountnumberNumber of messages in the thread
lastMessageAtstringTimestamp of last message
createdAtstringCreation timestamp
updatedAtstringLast updated timestamp
countnumberTotal number of threads
nextPageTokenstringToken for retrieving the next page

agentmail_reply_message

Reply to an existing email message in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox to reply from
messageIdstringJaID of the message to reply to
textstringNeinPlain text reply body
htmlstringNeinHTML reply body
tostringNeinOverride recipient email addresses (comma-separated)
ccstringNeinCC email addresses (comma-separated)
bccstringNeinBCC email addresses (comma-separated)
replyAllbooleanNeinReply to all recipients of the original message

Ausgabe

ParameterTypBeschreibung
messageIdstringID of the sent reply message
threadIdstringID of the thread

agentmail_send_draft

Send an existing email draft in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox containing the draft
draftIdstringJaID of the draft to send

Ausgabe

ParameterTypBeschreibung
messageIdstringID of the sent message
threadIdstringID of the thread

agentmail_send_message

Send an email message from an AgentMail inbox

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox to send from
tostringJaRecipient email address (comma-separated for multiple)
subjectstringJaEmail subject line
textstringNeinPlain text email body
htmlstringNeinHTML email body
ccstringNeinCC recipient email addresses (comma-separated)
bccstringNeinBCC recipient email addresses (comma-separated)

Ausgabe

ParameterTypBeschreibung
threadIdstringID of the created thread
messageIdstringID of the sent message
subjectstringEmail subject line
tostringRecipient email address

agentmail_update_draft

Update an existing email draft in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox containing the draft
draftIdstringJaID of the draft to update
tostringNeinRecipient email addresses (comma-separated)
subjectstringNeinDraft subject line
textstringNeinPlain text draft body
htmlstringNeinHTML draft body
ccstringNeinCC recipient email addresses (comma-separated)
bccstringNeinBCC recipient email addresses (comma-separated)
sendAtstringNeinISO 8601 timestamp to schedule sending

Ausgabe

ParameterTypBeschreibung
draftIdstringUnique identifier for the draft
inboxIdstringInbox the draft belongs to
subjectstringDraft subject
toarrayRecipient email addresses
ccarrayCC email addresses
bccarrayBCC email addresses
textstringPlain text content
htmlstringHTML content
previewstringDraft preview text
labelsarrayLabels assigned to the draft
inReplyTostringMessage ID this draft replies to
sendStatusstringSend status (scheduled, sending, failed)
sendAtstringScheduled send time
createdAtstringCreation timestamp
updatedAtstringLast updated timestamp

agentmail_update_inbox

Update the display name of an email inbox in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox to update
displayNamestringJaNew display name for the inbox

Ausgabe

ParameterTypBeschreibung
inboxIdstringUnique identifier for the inbox
emailstringEmail address of the inbox
displayNamestringDisplay name of the inbox
createdAtstringCreation timestamp
updatedAtstringLast updated timestamp

agentmail_update_message

Add or remove labels on an email message in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox containing the message
messageIdstringJaID of the message to update
addLabelsstringNeinComma-separated labels to add to the message
removeLabelsstringNeinComma-separated labels to remove from the message

Ausgabe

ParameterTypBeschreibung
messageIdstringUnique identifier for the message
labelsarrayCurrent labels on the message

agentmail_update_thread

Add or remove labels on an email thread in AgentMail

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaAgentMail API key
inboxIdstringJaID of the inbox containing the thread
threadIdstringJaID of the thread to update
addLabelsstringNeinComma-separated labels to add to the thread
removeLabelsstringNeinComma-separated labels to remove from the thread

Ausgabe

ParameterTypBeschreibung
threadIdstringUnique identifier for the thread
labelsarrayCurrent labels on the thread

On this page

Heute mit dem Aufbau beginnen
Über 100 000 Entwickler vertrauen uns.
Die SaaS-Plattform zum Aufbau von KI-Agenten und für Ihre agentische Belegschaft.
Loslegen