API key used for authenticating requests to the API.
Workspace identifier for the API.
Path Parameters
The unique identifier for the conversation containing the message.
The unique identifier for the message to be acted upon.
Request Body
The action to take: “Approve”, “Edit”, or “Reject”.
- Approve: Approves and sends the message.
- Edit: Modifies the content of the message.
- Reject: Rejects the message.
The new content of the message, used only when the action is Edit.
Response Fields
The status of the action, indicating success or failure.
The updated or rejected message details.
The unique identifier for the message.
The content of the message.
The recipient’s phone number or email address.
Whether the message has been sent.
The current status of the message, e.g., “approved”, “rejected”, etc.
The timestamp of when the message was sent or updated.
{
"status": "success",
"message": {
"_id": "64fbbc2e98312c4b82123456",
"message": "Hello, how can I assist you?",
"to": "+1234567890",
"sent": true,
"status": "approved",
"timestamp": "2024-12-03T12:00:00Z"
}
}