palbaseDocs

Palbase ai · API

DELETE/ai/agents/{name}

Forget an agent

An agent the project keeps, its versions with it — an agent made again under its name numbers its versions after them, and a chat on one of them is told it is gone. Its chats stay; a message to one of them is refused (agent_not_found) until an agent of that name is there again. One its backend's build declares goes with the code (409 agent_defined_in_code).

Called by your server, with the project's secret key.

Path

namestring · requiredThe name: lowercase letters, digits, _ and -, starting with a letter, at most 64.
curl
curl -X DELETE "https://<your-ref>.palbase.studio/ai/agents/<name>" \
  -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

409The response's state refuses it

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

Operation DeleteAgent of ai's contract.