Send a chat message

Send a private message to one user in Connecteam Chat.

POST https://cotlet.dev/api/v1/connecteam/users/{user_id}/messages

write Confirm

Sends the text to the user in a private conversation, the same message you start from the Chat icon next to the approval progress bar. The employee gets it in the Connecteam app. The message is text only, and it cannot be recalled by this tool. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: send_message
NameTypeDescription
user_id integer required integer User ID from list_users or list_timesheets.
text string required string Message text.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/connecteam/users/1/messages \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"text"}'
Python
result = client.call("connecteam", "send_message", {"user_id":1,"text":"text"})
Node.js
const result = await cotlet.call('connecteam', 'send_message', {"user_id":1,"text":"text"});
CLI
cotlet call connecteam send_message --data '{"user_id":1,"text":"text"}'

Example response

JSON

{
  "sent": true,
  "user_id": 8821077,
  "name": "Priya Nair"
}

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.