cURL
curl --request POST \ --url https://api.trillet.ai/v1/api/conversations/{conversationId}/message/{messageId}/action \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --header 'x-workspace-id: <x-workspace-id>' \ --data '{ "metadata": { "action": "<string>", "editedMessage": "<string>" } }'
{ "status": "success", "message": { "_id": "64fbbc2e98312c4b82123456", "message": "Hello, how can I assist you?", "to": "+1234567890", "sent": true, "status": "approved", "timestamp": "2024-12-03T12:00:00Z" } }
Edit or reject a specific message within a conversation.
Show properties