API ReferenceConversations
List conversation messages
GET
Message history of the contact's latest conversation, newest first. The key sees
what its creator would see in the inbox: an organization owner's key sees the whole
history; other members' keys see the last two sessions.
Requires scope message:read.
header
AuthorizationBearer <token>Your organization API key: Authorization: Bearer org_…
audienceExternalId*stringThe contact's ID on its channel. For WhatsApp it is
<phone number>:<your WhatsApp phone number ID>.
page?integerRange
1 <= valueDefault
1limit?integerRange
1 <= value <= 100Default
20A page of messages.
application/json- response
messages*array<>total*integerpage*integerlimit*integercurl -X GET 'https://api.enigma-ai.com/v1/conversations/string/messages'{ "messages": [ { "_id": "string", "externalId": "string", "conversationId": "string", "sessionId": "string", "sender": "bot", "content": { "type": "text", "text": "string", "mediaUrl": "string" }, "status": "pending", "errorDetails": { "code": 0, "title": "string", "message": "string", "details": "string" }, "sentAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "readAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ], "total": 0, "page": 0, "limit": 0}