Trillet AI logo

Handle Message Action

Edit or reject a specific message within a conversation.

POSThttps://api.trillet.ai/v1/api/conversations/{conversationId}/message/{messageId}/action

Headers

x-api-keystringrequired

API key used for authenticating requests to the API.

x-workspace-idstringrequired

Workspace identifier for the API.

Path Parameters

conversationIdstringrequired

The unique identifier for the conversation containing the message.

messageIdstringrequired

The unique identifier for the message to be acted upon.

Request Body

metadataobjectrequired

Response Fields

statusstring

The status of the action, indicating success or failure.

messageobject

The updated or rejected message details.

{
  "status": "success",
  "message": {
    "_id": "64fbbc2e98312c4b82123456",
    "message": "Hello, how can I assist you?",
    "to": "+1234567890",
    "sent": true,
    "status": "approved",
    "timestamp": "2024-12-03T12:00:00Z"
  }
}