Send a message from a record

Email an agent, a user or a group from inside a service record.

POST https://cotlet.dev/api/v1/sysaid/records/{record_id}/messages

write Confirm

Sends an email notification from the record and returns the recipients. The message is logged on the record. An email cannot be recalled once sent. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: send_message
NameTypeDescription
record_id integer required integer Service record ID from search_service_records. IDs are unique across incidents, requests, problems and changes.
to string[] required string[] IDs of users and groups, "u" before a user ID and "g" before a group ID, for example u2342 or g332.
subject string required string Subject line.
body string required string Message text.
cc string[] string[] IDs to copy, in the same format as to.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/sysaid/records/1/messages \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to":["to"],"subject":"subject","body":"body"}'
Python
result = client.call("sysaid", "send_message", {"record_id":1,"to":["to"],"subject":"subject","body":"body"})
Node.js
const result = await cotlet.call('sysaid', 'send_message', {"record_id":1,"to":["to"],"subject":"subject","body":"body"});
CLI
cotlet call sysaid send_message --data '{"record_id":1,"to":["to"],"subject":"subject","body":"body"}'

Example response

JSON

{
  "record_id": 48230,
  "sent_to": [
    "u2342"
  ],
  "cc": [],
  "subject": "Update on your VPN ticket",
  "sent_at": "2026-10-23T08:45:00Z"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.