π¬ Get Messages
Use these endpoints to retrieve historical messages either by contact or grouped by conversation.
π½ GET /api/public/ai-message/contact/{aiContactId}
β Get Messages by Contact
GET /api/public/ai-message/contact/{aiContactId}
β Get Messages by ContactReturns all messages (inbound/outbound) associated with a specific contact.
Click to expand full details
πΉ URL
GET /api/public/ai-message/contact/{aiContactId}
πΉ Path Parameters
Name | Type | Required | Description |
---|---|---|---|
aiContactId | string | β | The contactβs unique ID |
πΉ Headers
Name | Type | Required | Description |
---|---|---|---|
x-api-key | string | β | Your API key for authorization |
πΉ Example Request
curl --request GET \
'https://iris-backend-production.up.railway.app/api/public/ai-message/contact/contact_123' \
--header 'x-api-key: YOUR_API_KEY'
π½ GET /api/public/ai-message/contact/{aiContactId}/by-conversation
β Get Messages by Conversation
GET /api/public/ai-message/contact/{aiContactId}/by-conversation
β Get Messages by ConversationFetches messages grouped by conversation for a specific contact. Each conversation includes a thread of related messages.
Click to expand full details
πΉ URL
GET /api/public/ai-message/contact/{aiContactId}/by-conversation
πΉ Path Parameters
Name | Type | Required | Description |
---|---|---|---|
aiContactId | string | β | The contactβs unique ID |
πΉ Headers
Name | Type | Required | Description |
---|---|---|---|
x-api-key | string | β | Your API key for authorization |
πΉ Example Request
curl --request GET \
'https://iris-backend-production.up.railway.app/api/public/ai-message/contact/contact_123/by-conversation' \
--header 'x-api-key: YOUR_API_KEY'
Updated 16 days ago