Send individual SMS or MMS, broadcast to a contact list, or post a private internal comment using POST /v1/message/send. Requires inbox_id and creator_id.
curl --request POST \
--url https://api.heymarket.com/v1/message/send \
--header 'Content-Type: application/json' \
--data '
{
"inbox_id": 123,
"creator_id": 123,
"phone_number": "<string>",
"targets": [
"<string>"
],
"chat_id": 123,
"list_id": 123,
"text": "<string>",
"media_url": "<string>",
"template_id": 123,
"local_id": "<string>",
"activity_id": "<string>",
"private": true,
"author": "<string>",
"survey_id": 123
}
'{
"id": 123,
"date": "<string>",
"gallery_url": "<string>"
}GET /v1/inboxes.14155551234). Use this for individual messages. Provide either phone_number or chat_id, not both.targets.chat_id or phone_number, not both.list_id, you must also provide local_id.list_id.true, the message is created as a private internal comment visible only to team members. It is not sent to the customer.media_url.curl --request POST \
--url https://api.heymarket.com/v1/message/send \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"inbox_id": 101,
"creator_id": 55,
"phone_number": "14155551234",
"text": "Hi! Your appointment is confirmed for tomorrow at 10am."
}'
creator_id is the member ID returned by GET /v1/inboxes, not the general user ID. Retrieve your inbox members list to find the correct value.local_id is required when sending a broadcast to a list via list_id. Use a unique value per send attempt to ensure idempotency.Was this page helpful?
curl --request POST \
--url https://api.heymarket.com/v1/message/send \
--header 'Content-Type: application/json' \
--data '
{
"inbox_id": 123,
"creator_id": 123,
"phone_number": "<string>",
"targets": [
"<string>"
],
"chat_id": 123,
"list_id": 123,
"text": "<string>",
"media_url": "<string>",
"template_id": 123,
"local_id": "<string>",
"activity_id": "<string>",
"private": true,
"author": "<string>",
"survey_id": 123
}
'{
"id": 123,
"date": "<string>",
"gallery_url": "<string>"
}