Palbase ai · API
GET
/ai/chatsThe chats
The server's: every chat, or a member's (member=); a user's: the chats they are in. The newest first, a page at a time (limit, cursor), and only those labelled so when metadata= names labels.
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.
Query
memberstring · optionalA user's id: the chats they are in (the server's to ask).limitinteger · optionalHow many (1 to 100, default 100).cursorstring · optionalnext_cursor of the page before.metadatastring[] · optionalA label the chats have, key:value (its metadata); given again, every label named: metadata=project_id:p_123.status"active" | "all" · optionalFilter chats by live execution status (active returns only chats with a running or waiting turn).curl
curl -X GET "https://<your-ref>.palbase.studio/ai/chats" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200The chats
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
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation ListChats of ai's contract.