Send an e-mail

Sends one e-mail (including replies) from the user's connected mailbox; it joins the thread and project under the web rules. Returns 400 send when no mailbox is connected. JSON body only.

POST/api/v1/emails/send

Authorization

Authorizationheaderrequired
Bearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Scope: crm.write

Body application/json

tostringrequired
Recipient(s), comma separated.
subjectstringrequired
Subject.
bodystringrequired
Body (plain text).
ccstringoptional
Cc.
customer_id / contact_id / opp_idintegeroptional
Records to link.
in_reply_tostringoptional
Message-ID being replied to (reply.in_reply_to).

Errors

HTTPerrorMeaning
400invalidMissing or invalid field (`message` explains).
400sendThe e-mail could not be sent (no mailbox, bad recipient…).
Request
curl -X POST https://ornek.solk.app/api/v1/emails/send \
  -H "Authorization: Bearer $SOLK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "to": "x@ornek.com",
  "subject": "Deneme",
  "body": ""
}'
Response
{
  "error": "invalid",
  "message": "E-posta metni boş.",
  "ok": false
}

Example responses were captured from a v22 installation running sample data; lists are shortened to two items.