palbaseDocs

Palbase ai · API

GET/ai/chats/{chat_id}/messages

A chat's messages

What its members (and the server) wrote, the newest first.

Called by a signed-in user of your app, with their token and the publishable key; or your server, with the project's secret key.

Path

chat_idstring · requiredThe chat's id.

Query

limitinteger · optionalHow many (1 to 200, default 50).
cursorstring · optionalnext_cursor of the page before.
curl
curl -X GET "https://<your-ref>.palbase.studio/ai/chats/<chat_id>/messages" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200A page of messages

400The request is malformed, or names what this module does not offer (the error names which)

401No valid credential

403A publishable key or a user's session: everything here is the project's server's, called with the secret key

404No such response, job or provider in this project

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation ListChatMessages of ai's contract.