Send a message
POST
/v1/threads/{thread_id}/messagesRequires the scope messages:write
Send a text or email in a conversation. Texts are charged; a text the provider refuses is given back.
#Path parameters
thread_idstringrequired
#Header parameters
Idempotency-Keystring or null
#Request body
application/json
attachmentsobject[]
Show child attributesHide child attributes
content_typestringrequired
datastringrequired
namestringrequired
bodystringrequired
htmlstring or null
line_idstring or null
mailbox_idstring or null
subjectstring or null
#Responses
201Successful Response
Show response fieldsHide response fields
attachmentsstring[]required
bodystringrequired
created_atstring (date-time)required
directionstringrequired
errorstring or nullrequired
idstringrequired
providerstringrequired
received_atstring (date-time) or nullrequired
sent_atstring (date-time) or nullrequired
sent_bystring or nullrequired
statusstringrequired
subjectstring or nullrequired
thread_idstringrequired
#Errors
Errors use the standard error shape.
| Status | Meaning |
|---|---|
400 | The request is not valid. |
401 | Not signed in, or the credentials are not valid. |
402 | The balance is too low. |
403 | Not allowed to do this. |
404 | Not found. |
409 | Conflicts with the current state. |
413 | The request body is too large. |
415 | The content type is not supported. |
422 | A value in the request is not valid. |
429 | Too many requests. Wait for Retry-After seconds. |
500 | Something went wrong on our side. |
502 | A service Valeron depends on refused the request. |
503 | A service Valeron depends on is unavailable. |
