Send a message
curl --request POST \
--url https://api.quo.com/messages \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'Quo-Api-Version: <quo-api-version>' \
--data '
{
"content": "Good morning, your service appointment has been booked.",
"from": "PN123abc",
"to": [
"+15555555555"
],
"senderUserId": "<string>",
"inboxStatus": "done"
}
'{
"data": {
"id": "AC123abc",
"to": [
"+15555555555"
],
"from": "+15555555555",
"text": "Hello, world!",
"conversationId": "CN123abc",
"direction": "incoming",
"status": "sent",
"createdAt": "2022-01-01T00:00:00Z",
"updatedAt": "2022-01-01T00:00:00Z",
"media": [
{
"url": "https://example.com/image.png",
"type": "image/png"
}
],
"phoneNumberId": "PN123abc",
"userId": "US123abc"
}
}
Messages
Send a message
Send a text message from your Quo number to one or more recipients.
POST
/
messages
Send a message
curl --request POST \
--url https://api.quo.com/messages \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'Quo-Api-Version: <quo-api-version>' \
--data '
{
"content": "Good morning, your service appointment has been booked.",
"from": "PN123abc",
"to": [
"+15555555555"
],
"senderUserId": "<string>",
"inboxStatus": "done"
}
'{
"data": {
"id": "AC123abc",
"to": [
"+15555555555"
],
"from": "+15555555555",
"text": "Hello, world!",
"conversationId": "CN123abc",
"direction": "incoming",
"status": "sent",
"createdAt": "2022-01-01T00:00:00Z",
"updatedAt": "2022-01-01T00:00:00Z",
"media": [
{
"url": "https://example.com/image.png",
"type": "image/png"
}
],
"phoneNumberId": "PN123abc",
"userId": "US123abc"
}
}
Headers
Body
application/json
The recipients of the message, each a phone number in E.164 format or a short code (3-8 digits). More than one sends a group message. At most 10.
Required array length:
1 - 10 elementsA recipient phone number in E.164 format, or a short code (3-8 digits).
Pattern:
^\+[1-9]\d{1,14}$Example:
"+15555555555"
Examples:
["+15555555555"]
["+15555555555", "+15555555556"]
Used to set the status of the related Quo inbox conversation. The default behavior without setting this parameter will be for the message sent to show up as an open conversation in the user's inbox. Setting the parameter to 'done' would move the conversation to the Done inbox view.
Allowed value:
"done"Example:
"done"
Was this page helpful?