curl --request POST \
--url https://integration.getmateo.com/api/v1/send_message \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_status": "open",
"to": [
{
"handle": "<string>",
"country_codes": [
"<string>"
],
"full_name": "<string>",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_contact_id": "<string>",
"secondary_external_contact_id": "<string>"
}
],
"cc": [
{
"handle": "<string>",
"country_codes": [
"<string>"
],
"full_name": "<string>",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_contact_id": "<string>",
"secondary_external_contact_id": "<string>"
}
],
"bcc": [
{
"handle": "<string>",
"country_codes": [
"<string>"
],
"full_name": "<string>",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_contact_id": "<string>",
"secondary_external_contact_id": "<string>"
}
],
"subject": "<string>",
"html": "<string>",
"text": "<string>",
"content": {},
"send_after": "2023-11-07T05:31:56Z",
"placeholder_values": [
"<string>"
],
"reply_to_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attachments": [
"<string>"
],
"template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"review_channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"marketing_channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actions": [
{
"text": "<string>",
"type": "quick_reply",
"data": "<string>",
"subtype": "url"
}
]
}
'{
"conversation": {
"id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"organisation_id": "<string>",
"subject": "<string>",
"assignee_id": "<string>",
"unread": true,
"channel_id": "<string>",
"contact_id": "<string>",
"external_id": "<string>",
"is_spam": true,
"inbox_id": "<string>",
"latest_message_id": "<string>",
"latest_inbound_message_id": "<string>",
"latest_message_created_at": "<string>",
"latest_inbound_message_created_at": "<string>",
"tags": [
"<string>"
],
"files": [
{}
],
"channel_type": "email",
"status": "open"
},
"message": {
"id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"organisation_id": "<string>",
"conversation_id": "<string>",
"is_inbound": true,
"subject": "<string>",
"blurb": "<string>",
"author_id": "<string>",
"content": {},
"raw_content": "<string>",
"status": "sent",
"attachment_count": 123,
"reply_to_message_id": "<string>",
"external_files": {},
"external_id": "<string>",
"template_id": "<string>",
"review_channel_id": "<string>",
"author_type": "employee",
"forwarded": true,
"forwarded_message_text": "<string>",
"send_after": "<string>",
"footer": "<string>",
"sendout_id": "<string>",
"campaign_id": "<string>",
"sent_at": "<string>",
"timestamp": "<string>",
"location": {},
"location_metadata": {},
"contacts": {},
"files": {},
"header_media_filename": "<string>"
},
"recipients": [
{
"id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"organisation_id": "<string>",
"conversation_id": "<string>",
"message_id": "<string>",
"contact_id": "<string>",
"handle": "<string>",
"full_name": "<string>",
"is_organisation": true,
"role": "from",
"status": "sent"
}
],
"actions": [
{
"id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"organisation_id": "<string>",
"conversation_id": "<string>",
"message_id": "<string>",
"text": "<string>",
"data": "<string>",
"clicked": true,
"type": "quick_reply",
"subtype": "url"
}
]
}Send a message
curl --request POST \
--url https://integration.getmateo.com/api/v1/send_message \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_status": "open",
"to": [
{
"handle": "<string>",
"country_codes": [
"<string>"
],
"full_name": "<string>",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_contact_id": "<string>",
"secondary_external_contact_id": "<string>"
}
],
"cc": [
{
"handle": "<string>",
"country_codes": [
"<string>"
],
"full_name": "<string>",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_contact_id": "<string>",
"secondary_external_contact_id": "<string>"
}
],
"bcc": [
{
"handle": "<string>",
"country_codes": [
"<string>"
],
"full_name": "<string>",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_contact_id": "<string>",
"secondary_external_contact_id": "<string>"
}
],
"subject": "<string>",
"html": "<string>",
"text": "<string>",
"content": {},
"send_after": "2023-11-07T05:31:56Z",
"placeholder_values": [
"<string>"
],
"reply_to_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attachments": [
"<string>"
],
"template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"review_channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"marketing_channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actions": [
{
"text": "<string>",
"type": "quick_reply",
"data": "<string>",
"subtype": "url"
}
]
}
'{
"conversation": {
"id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"organisation_id": "<string>",
"subject": "<string>",
"assignee_id": "<string>",
"unread": true,
"channel_id": "<string>",
"contact_id": "<string>",
"external_id": "<string>",
"is_spam": true,
"inbox_id": "<string>",
"latest_message_id": "<string>",
"latest_inbound_message_id": "<string>",
"latest_message_created_at": "<string>",
"latest_inbound_message_created_at": "<string>",
"tags": [
"<string>"
],
"files": [
{}
],
"channel_type": "email",
"status": "open"
},
"message": {
"id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"organisation_id": "<string>",
"conversation_id": "<string>",
"is_inbound": true,
"subject": "<string>",
"blurb": "<string>",
"author_id": "<string>",
"content": {},
"raw_content": "<string>",
"status": "sent",
"attachment_count": 123,
"reply_to_message_id": "<string>",
"external_files": {},
"external_id": "<string>",
"template_id": "<string>",
"review_channel_id": "<string>",
"author_type": "employee",
"forwarded": true,
"forwarded_message_text": "<string>",
"send_after": "<string>",
"footer": "<string>",
"sendout_id": "<string>",
"campaign_id": "<string>",
"sent_at": "<string>",
"timestamp": "<string>",
"location": {},
"location_metadata": {},
"contacts": {},
"files": {},
"header_media_filename": "<string>"
},
"recipients": [
{
"id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"organisation_id": "<string>",
"conversation_id": "<string>",
"message_id": "<string>",
"contact_id": "<string>",
"handle": "<string>",
"full_name": "<string>",
"is_organisation": true,
"role": "from",
"status": "sent"
}
],
"actions": [
{
"id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"organisation_id": "<string>",
"conversation_id": "<string>",
"message_id": "<string>",
"text": "<string>",
"data": "<string>",
"clicked": true,
"type": "quick_reply",
"subtype": "url"
}
]
}contact_id and no handle. If the contact does not exist yet, make sure to create it first.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Channel ID from which the message will be sent
Message ID
Conversation ID
Conversation Status
open, closed, archived To Recipients of the message
Show child attributes
CC Recipients of the message
Show child attributes
BCC Recipients of the message
Show child attributes
Subject of the message
HTML content of the message
Text content of the message
Content of the message. Only use this if you know what you are doing. Prefer using html or text otherwise
Send the message after this time
Placeholder values for the message
Message ID to which this message is a reply
Attachment URLs to the message. Can either https:// or media_library://
Template ID
Review Channel ID
Marketing Channel ID
Actions for the message, e.g. quick reply buttons
Show child attributes