Email a contactComing soon
Sends an email from Matchai to one of your contacts, in the account holder’s name, with up to three documents attached.
Coming soon. Sends an email from Matchai to one of your contacts, in the account holder’s name, with up to three documents attached. An email cannot be taken back once it is sent.
Final action. When the connection is set to Ask me, this call returns 202 with an approval_url and does nothing until the account holder approves it in Matchai; Matchai then performs it exactly as sent and sends approval.resolved. When the connection is set to Allowed, it runs straight away.
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:send
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:send
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
Addresses that bounced or complained are refused with 422 recipient_suppressed. A sign-off is added for you.
contact_id*stringThe recipient. Only your contacts can be emailed.
1 <= length <= 64subject*stringExact subject line.
1 <= length <= 200body*stringExact body, plain text. No sign-off.
1 <= length <= 20000document_ids?array<>Attachments, 10 MB together at most.
items <= 3listing_id?stringA listing to link. It is linked only when it is published on your own site.
1 <= length <= 64The email.
application/json- response
An email sent from Matchai to one of your contacts, in your name.
id*stringEmail id.
1 <= length <= 64contact_id*stringRecipient contact.
1 <= length <= 64to*The address itself is not returned.
subject*stringSubject.
listing_id?|Linked listing.
1 <= length <= 64document_ids?array<>Attachments.
status*string"queued""sent""delivered""bounced""complained""failed"created_at*stringCreated.
date-timesent_at?|Handed over for delivery.
date-timedelivered_at?|Delivered to the recipient’s mailbox.
date-timecurl -X POST 'https://api.matchai.co/v1/emails' \ -H 'Idempotency-Key: 6f1d3c2a-0b7e-4f5a-9c8d-1e2f3a4b5c6d' \ -H 'Content-Type: application/json' \ -d '{ "contact_id": "string", "subject": "string", "body": "string"}'{ "id": "string", "contact_id": "string", "to": { "display_name": "string" }, "subject": "string", "listing_id": "string", "document_ids": [ "string" ], "status": "queued", "created_at": "2019-08-24T14:15:22Z", "sent_at": "2019-08-24T14:15:22Z", "delivered_at": "2019-08-24T14:15:22Z"}