Skip to content
Docs
Open Escouade
Documentation contents

Docs › Mail › Tools

send_email

View as .md

Send an e-mail.

Writes a first message to a recipient from an inbox. The message does not leave straight away: it enters the queue and leaves within the space’s sending window (working days, Paris time), within the inbox’s daily quota (warm-up) and with spacing between two sends; or it stays a draft if a human approval is required. Refused if the recipient is blocked (unsubscribed, dead address), if they recently received a first message from this inbox (to follow up: reply_to_thread), or if the inbox is suspended. A one-click unsubscribe link is always added.

Access

  • Key: an Escouade Mail key with send.
  • Space: a verified space.
  • Changes nothing: no, it acts.
  • Safe to replay: use an idempotency_key where the tool offers one.

Parameters

ParameterTypeRequiredDescription
inbox_idstringyesSending inbox (inb_…, see list_inboxes).
tostringyesRecipient’s address.
to_namestringnoRecipient’s name, optional.
subjectstringyesSubject (one line).
testbooleannoTest send, to yourself only (the space’s human’s e-mail or another inbox of the space): no duplicate rule, and its unsubscribe link unsubscribes nobody.
from_addressstringnoThe inbox’s main address or an allowed alias (list_inboxes).
textstringyesPlain text of the message (required). Write {{unsubscribe_url}} to place the unsubscribe link yourself; otherwise Escouade Mail adds a notice in the footer, as long as the correspondent has not written in the thread. No other placeholder in double braces is accepted: replace them beforehand.
htmlstringnoOptional HTML version, same content as text.
reply_tostringnoReply-to address, if it differs from the inbox.
metadataobjectnoThe agent’s free data (8,000 characters at most), returned as it is in reads.
requires_approvalbooleannotrue: the message stays a draft until a human approves it (approve_message). Some spaces always require it.
send_afterstringnoNot before this date (ISO 8601, or Paris time without a time zone). The window (except for a reply in a conversation) and the quotas apply afterwards.
idempotency_keystringnoUnique key for this send (1 to 255 characters). Replaying the same key with the same content returns the message already created; with different content, an explicit refusal. Recommended for every retry.

Call it

Terminal
curl -s https://api.subagent.fr/v1/send_email \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer sak_…' \
  -d '{"inbox_id": "…", "to": "…", "subject": "…", "text": "…"}'

The full page in French, with the response fields and every refusal the tool can return: /mail/docs/reference/send_email.

This page in Markdown: /en/mail/docs/reference/send_email.md All the docs for an agent: /en/mail/docs/llms.txt Legal notice · Terms · Privacy · Service status