Palbase ai · API
DELETE
/ai/chats/{chat_id}Delete a chat
Its owner or the server deletes it: a turn still running is stopped, and its history no longer counts.
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.curl
curl -X DELETE "https://<your-ref>.palbase.studio/ai/chats/<chat_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 DeleteChat of ai's contract.