Send a message
Sends one message (SMS, MMS, chat app message, voice call, or USSD request).
If Message Review is enabled for the project and this message requires approval (because the project requires approval for messages sent via AI tools, or its review threshold is 0 or its daily or monthly review budget is exhausted), the message will not be sent immediately; instead, it will be submitted for review as a scheduled message, and will be sent when a reviewer approves it. In this case, the response will contain status=pending_review, scheduled_message_id, and url (a link to the approval page in the web app) properties instead of the message properties. The project's message_review property (returned by getProjectById) shows in advance whether sends will require approval.
Request
- Base URL: https://api.telerivet.com
- URL: https://api.telerivet.com/v1/projects/{project_id}/messages/send
- Auth: one of:
- HTTP basic
- OAuth 2 (authorization code, authorization URL https://telerivet.com/oauth/authorize, token URL https://api.telerivet.com/oauth/token)
Path parameters
ID of the Project
Request body
Example request
{
"content": "hello world",
"to_number": "+16505550123"
}Response
Successful response
Example response
{
"id": "SM1629708e59c5c781",
"direction": "outgoing",
"status": "sent",
"message_type": "sms",
"source": "service",
"time_created": 1390347812,
"time_sent": 1390347814,
"time_updated": 1390347818,
"from_number": "+16505550001",
"to_number": "+16505550123",
"content": "Thank you for registering!",
"starred": true,
"priority": 1,
"send_attempts": 1,
"external_id": "142092393",
"num_parts": 1,
"price": 0.01,
"price_currency": "USD",
"service_id": "SV3d246818d0e3d1fb",
"phone_id": "PN4d246818d0ecd1fa",
"contact_id": "CTa1299c3d0e371023",
"route_id": "RT2a586298d3412adf",
"broadcast_id": "MB98918598dab29800",
"scheduled_id": "SEa502e6f9d23f1cb6",
"user_id": "URba3e403e98f49735",
"project_id": "PJ2ad0100821a98bea",
"url": "https://telerivet.com/p/asdf/message/SM1629708e59c5c781"
}Changes
No recorded changes to this operation across all 1 revision of this API.