AptlyStar

AgentMail

Manage email inboxes, threads, and messages with AgentMail

Instructions d'utilisation

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.

Outils

agentmail_create_draft

Create a new email draft in AgentMail

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox to create the draft in
tostringNonRecipient email addresses (comma-separated)
subjectstringNonDraft subject line
textstringNonPlain text draft body
htmlstringNonHTML draft body
ccstringNonCC recipient email addresses (comma-separated)
bccstringNonBCC recipient email addresses (comma-separated)
inReplyTostringNonID of message being replied to
sendAtstringNonISO 8601 timestamp to schedule sending

Sortie

ParamètreTypeDescription
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

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
usernamestringNonUsername for the inbox email address
domainstringNonDomain for the inbox email address
displayNamestringNonDisplay name for the inbox

Sortie

ParamètreTypeDescription
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

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox containing the draft
draftIdstringOuiID of the draft to delete

Sortie

ParamètreTypeDescription
deletedbooleanWhether the draft was successfully deleted

agentmail_delete_inbox

Delete an email inbox in AgentMail

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox to delete

Sortie

ParamètreTypeDescription
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)

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox containing the thread
threadIdstringOuiID of the thread to delete
permanentbooleanNonForce permanent deletion instead of moving to trash

Sortie

ParamètreTypeDescription
deletedbooleanWhether the thread was successfully deleted

agentmail_forward_message

Forward an email message to new recipients in AgentMail

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox containing the message
messageIdstringOuiID of the message to forward
tostringOuiRecipient email addresses (comma-separated)
subjectstringNonOverride subject line
textstringNonAdditional plain text to prepend
htmlstringNonAdditional HTML to prepend
ccstringNonCC recipient email addresses (comma-separated)
bccstringNonBCC recipient email addresses (comma-separated)

Sortie

ParamètreTypeDescription
messageIdstringID of the forwarded message
threadIdstringID of the thread

agentmail_get_draft

Get details of a specific email draft in AgentMail

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox the draft belongs to
draftIdstringOuiID of the draft to retrieve

Sortie

ParamètreTypeDescription
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

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox to retrieve

Sortie

ParamètreTypeDescription
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

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox containing the message
messageIdstringOuiID of the message to retrieve

Sortie

ParamètreTypeDescription
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
timestampstringTime the message was sent or drafted
createdAtstringCreation timestamp

agentmail_get_thread

Get details of a specific email thread including messages in AgentMail

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox containing the thread
threadIdstringOuiID of the thread to retrieve

Sortie

ParamètreTypeDescription
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

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox to list drafts from
limitnumberNonMaximum number of drafts to return
pageTokenstringNonPagination token for next page of results

Sortie

ParamètreTypeDescription
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

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
limitnumberNonMaximum number of inboxes to return
pageTokenstringNonPagination token for next page of results

Sortie

ParamètreTypeDescription
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

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox to list messages from
limitnumberNonMaximum number of messages to return
pageTokenstringNonPagination token for next page of results

Sortie

ParamètreTypeDescription
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

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox to list threads from
limitnumberNonMaximum number of threads to return
pageTokenstringNonPagination token for next page of results
labelsstringNonComma-separated labels to filter threads by
beforestringNonFilter threads before this ISO 8601 timestamp
afterstringNonFilter threads after this ISO 8601 timestamp

Sortie

ParamètreTypeDescription
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

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox to reply from
messageIdstringOuiID of the message to reply to
textstringNonPlain text reply body
htmlstringNonHTML reply body
tostringNonOverride recipient email addresses (comma-separated)
ccstringNonCC email addresses (comma-separated)
bccstringNonBCC email addresses (comma-separated)
replyAllbooleanNonReply to all recipients of the original message

Sortie

ParamètreTypeDescription
messageIdstringID of the sent reply message
threadIdstringID of the thread

agentmail_send_draft

Send an existing email draft in AgentMail

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox containing the draft
draftIdstringOuiID of the draft to send

Sortie

ParamètreTypeDescription
messageIdstringID of the sent message
threadIdstringID of the thread

agentmail_send_message

Send an email message from an AgentMail inbox

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox to send from
tostringOuiRecipient email address (comma-separated for multiple)
subjectstringOuiEmail subject line
textstringNonPlain text email body
htmlstringNonHTML email body
ccstringNonCC recipient email addresses (comma-separated)
bccstringNonBCC recipient email addresses (comma-separated)

Sortie

ParamètreTypeDescription
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

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox containing the draft
draftIdstringOuiID of the draft to update
tostringNonRecipient email addresses (comma-separated)
subjectstringNonDraft subject line
textstringNonPlain text draft body
htmlstringNonHTML draft body
ccstringNonCC recipient email addresses (comma-separated)
bccstringNonBCC recipient email addresses (comma-separated)
sendAtstringNonISO 8601 timestamp to schedule sending

Sortie

ParamètreTypeDescription
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

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox to update
displayNamestringOuiNew display name for the inbox

Sortie

ParamètreTypeDescription
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

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox containing the message
messageIdstringOuiID of the message to update
addLabelsstringNonComma-separated labels to add to the message
removeLabelsstringNonComma-separated labels to remove from the message

Sortie

ParamètreTypeDescription
messageIdstringUnique identifier for the message
labelsarrayCurrent labels on the message

agentmail_update_thread

Add or remove labels on an email thread in AgentMail

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiAgentMail API key
inboxIdstringOuiID of the inbox containing the thread
threadIdstringOuiID of the thread to update
addLabelsstringNonComma-separated labels to add to the thread
removeLabelsstringNonComma-separated labels to remove from the thread

Sortie

ParamètreTypeDescription
threadIdstringUnique identifier for the thread
labelsarrayCurrent labels on the thread

On this page