Skip to main content
GET
/
messages
Get messages
curl --request GET \
  --url https://api.dev.knowmio.com/api/messages \
  --header 'x-api-key: <api-key>'
{
  "id": "<string>",
  "chatId": "<string>",
  "role": "<string>",
  "content": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "metadata": {}
}

Authorizations

x-api-key
string
header
required

API key for authentication (lowercase header name)

Query Parameters

chatId
string
required

Chat ID to get messages for

id
string

Specific message ID to retrieve

organizationId
string
required

Organization ID - Required when using API Key authentication. Optional with session authentication (defaults to session's active organization).

Response

Successful response

  • object
  • object[]
id
string
required
chatId
string
required
role
string
required
content
string
required
createdAt
string<date-time>
required
metadata
object