Palbase ai · API
DELETE
/ai/chats/{chat_id}/members/{user_id}Take a user out of a chat
The server takes anyone out; a user takes themselves out. A goal set as the member taken out is paused, and its turn at work stopped.
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.user_idstring · requiredThe user's id.curl
curl -X DELETE "https://<your-ref>.palbase.studio/ai/chats/<chat_id>/members/<user_id>" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
204Done; nothing to answer
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 DeleteChatMember of ai's contract.