Skip to content

Get chat messages

GET
/api/v1/messages/{chatId}
curl --request GET \
--url http://localhost:3001/api/v1/messages/example \
--header 'Authorization: <Authorization>'

Retrieve messages in a one-to-one chat (paginated).

chatId
required
string

Chat ID

limit
integer

Max results

before
string

Cursor

OK

Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}

Unauthorized

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Not Found

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Internal Server Error

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}