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
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
| Name | Type | Description |
|---|---|---|
| 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 -X POST https://cotlet.dev/api/v1/podium/messages \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"body":"body"}' result = client.call("podium", "send_message", {"body":"body"}) const result = await cotlet.call('podium', 'send_message', {"body":"body"}); cotlet call podium send_message --data '{"body":"body"}' Example response
{
"message_id": "msg_7a03",
"conversation_id": "conv_91d3",
"channel": "text",
"status": "sent"
}