Skip to main content
GET
/
conversations
/
:conversationId
/
messages
Get all messages in a conversation
curl --request GET \
  --url https://messenger-public-api.cogfy.com/conversations/:conversationId/messages \
  --header 'api-key: <api-key>'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "conversationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "assistantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "broadcastId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "whatsappMessageId": "<string>",
      "from": "<string>",
      "to": "<string>",
      "role": "<string>",
      "status": "<string>",
      "type": "<string>",
      "content": "<string>",
      "contentData": {},
      "toolCallId": "<string>",
      "toolCalls": "<string>",
      "data": "<string>",
      "contextId": "<string>",
      "contextFrom": "<string>",
      "createDate": "2023-11-07T05:31:56Z",
      "sendDate": "2023-11-07T05:31:56Z",
      "deliverDate": "2023-11-07T05:31:56Z",
      "readDate": "2023-11-07T05:31:56Z",
      "promptTokens": "<string>",
      "completionTokens": "<string>",
      "order": 123,
      "traceId": "<string>"
    }
  ],
  "cursors": {
    "next": "<string>",
    "prev": "<string>"
  }
}

Authorizations

api-key
string
header
required

Query Parameters

cursor
string

Response

200 - application/json
data
object[]
cursors
object