Skip to the documentation
API

Suggest a subject line

A short subject for the body of an email.

POST/emails/subject

Runs the real call on your workspace.

POST /emails/subject

A short subject for the body of an email.

Example

Needs emails:send. message is the body, as text or HTML. The subject comes back under 100 characters, in the style of the mail you send.

curl
curl -X POST "$OE/emails/subject" -H "$AUTH" -H "Content-Type: application/json" \  -d '{ "message": "Thanks for the signed contract. Could you send the invoice by Friday?" }'
Response
{ "object": "subject_suggestion", "subject": "Signed contract and invoice by Friday" }

Nothing is saved, and each call spends one AI action.

Reference