cURL
curl --request GET \ --url https://api.duohub.ai/messages/get/{id} \ --header 'X-API-Key: <api-key>'
{ "status": "success", "data": { "id": "123e4567-e89b-12d3-a456-426614174000", "sessionID": "987fcdeb-51a2-43b7-91fa-987654321000", "role": "user", "content": "Hello, how can I help you today?", "userID": "d99e7428-40e1-7073-aa50-94cee086b518", "customerUserID": "cust-123", "createdAt": "2024-01-01T00:00:00.000Z", "updatedAt": "2024-01-01T00:00:00.000Z" } }
Retrieve a single message by ID
Your duohub API key. Type: str
ID of the message to retrieve
Message retrieved successfully
The response is of type object.
object