GET
/
messages
/
get
/
{id}
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"
  }
}

Authorizations

X-API-Key
string
header
required

Your duohub API key. Type: str

Path Parameters

id
string
required

ID of the message to retrieve

Response

200
application/json
Message retrieved successfully
status
enum<string>
required
Available options:
success
data
object
required