Draft an email with AIComing soon
Writes an email to a contact for a person to review. It sends nothing.
Coming soon. Writes an email to a contact for a person to review. It sends nothing.
Spends Matchai Energy. Returns 402 without doing anything when the account does not have enough Energy, or when this connection reached the Energy limit the account holder set for it.
Scopes: messages:read and contacts:read
Pricing: Included with the connection, and spends Matchai Energy.
AuthorizationBearer <matchai_<base62>>A personal API key, sent as Authorization: Bearer matchai_…. Create keys in Matchai under Settings → Connectors → Advanced (for developers). A key starts with matchai_ followed by letters and digits, carries the scopes chosen when it was created, and can be revoked at any time. Keys reach only the account that created them: to serve other professionals, use Connect with Matchai.
Scope: messages:read, contacts:read
Idempotency-Key?stringA unique string (a UUID works). Retrying with the same key within 24 hours returns the first response instead of acting twice. Reusing a key with a different body returns 409 idempotency_key_reused.
1 <= length <= 255application/json- body
contact_id*stringThe recipient.
1 <= length <= 64about*stringWhat to say, plainly.
1 <= length <= 1000tone?stringFor example "warm" or "brief".
length <= 40listing_id?stringA listing it is about.
1 <= length <= 64The draft.
application/json- response
Text for a person to review. Nothing was sent.
subject?|Subject line, for an email draft.
text*stringThe draft.
curl -X POST 'https://api.matchai.co/v1/email-drafts' \ -H 'Idempotency-Key: 6f1d3c2a-0b7e-4f5a-9c8d-1e2f3a4b5c6d' \ -H 'Content-Type: application/json' \ -d '{ "contact_id": "string", "about": "string"}'{ "subject": "string", "text": "string"}