Send message

Send a text or email from Podium, in an existing conversation or to a phone number or email.

POST https://cotlet.dev/api/v1/podium/messages

write Confirm

Sends a message under your Podium login. Pass conversation_id to answer in a thread, which uses the channel of that thread, or to to start one with a phone number or an email address. close_after_send closes the conversation after sending, like Send & Close in the Inbox. The message reaches a customer and cannot be unsent. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: send_message
NameTypeDescription
location string string Location ID from list_locations. Needed when your account has more than one location.
conversation_id string string Conversation to answer. Use this or to.
to string string Phone number or email address for a new conversation. Use this or conversation_id.
body string required string Message text.
close_after_send boolean boolean Close the conversation after sending. Default: false.

Request

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

Example response

JSON

{
  "message_id": "msg_7a03",
  "conversation_id": "conv_91d3",
  "channel": "text",
  "status": "sent"
}

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.