Send a text message
curl --request POST \
--url https://api.quo.com/v1/messages \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>",
"from": "+15555555555",
"to": [
"+15555555555"
],
"phoneNumberId": "OP1232abc",
"userId": "US123abc",
"setInboxStatus": "done"
}
'{
"data": {
"id": "AC123abc",
"to": [
"+15555555555"
],
"from": "+15555555555",
"text": "Hello, world!",
"phoneNumberId": "PN123abc",
"conversationId": "CN123abc",
"direction": "incoming",
"userId": "US123abc",
"status": "sent",
"createdAt": "2022-01-01T00:00:00Z",
"updatedAt": "2022-01-01T00:00:00Z",
"media": [
{
"url": "https://example.com/image.png",
"type": "image/png"
}
]
}
}{
"message": "<string>",
"code": "0200400",
"status": 400,
"docs": "https://quo.com/docs",
"title": "Bad Request",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"error": {
"message": "<string>",
"key": "Unauthorized",
"trace": "<string>"
}
}{
"message": "<string>",
"code": "0200402",
"status": 402,
"docs": "https://quo.com/docs",
"title": "Not Enough Credits",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "0200403",
"status": 403,
"docs": "https://quo.com/docs",
"title": "Forbidden",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "0200404",
"status": 404,
"docs": "https://quo.com/docs",
"title": "Not Found",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "0200429",
"status": 429,
"docs": "https://quo.com/docs",
"title": "Daily Conversation Limit Reached",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "0200500",
"status": 500,
"docs": "https://quo.com/docs",
"title": "Unexpected",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}Messages
Send a text message
Send a text message from your Quo number to a recipient.
POST
/
v1
/
messages
Send a text message
curl --request POST \
--url https://api.quo.com/v1/messages \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>",
"from": "+15555555555",
"to": [
"+15555555555"
],
"phoneNumberId": "OP1232abc",
"userId": "US123abc",
"setInboxStatus": "done"
}
'{
"data": {
"id": "AC123abc",
"to": [
"+15555555555"
],
"from": "+15555555555",
"text": "Hello, world!",
"phoneNumberId": "PN123abc",
"conversationId": "CN123abc",
"direction": "incoming",
"userId": "US123abc",
"status": "sent",
"createdAt": "2022-01-01T00:00:00Z",
"updatedAt": "2022-01-01T00:00:00Z",
"media": [
{
"url": "https://example.com/image.png",
"type": "image/png"
}
]
}
}{
"message": "<string>",
"code": "0200400",
"status": 400,
"docs": "https://quo.com/docs",
"title": "Bad Request",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"error": {
"message": "<string>",
"key": "Unauthorized",
"trace": "<string>"
}
}{
"message": "<string>",
"code": "0200402",
"status": 402,
"docs": "https://quo.com/docs",
"title": "Not Enough Credits",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "0200403",
"status": 403,
"docs": "https://quo.com/docs",
"title": "Forbidden",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "0200404",
"status": 404,
"docs": "https://quo.com/docs",
"title": "Not Found",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "0200429",
"status": 429,
"docs": "https://quo.com/docs",
"title": "Daily Conversation Limit Reached",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "0200500",
"status": 500,
"docs": "https://quo.com/docs",
"title": "Unexpected",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}Body
application/json
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.
Available options:
done Example:
"done"
Was this page helpful?