Pin or unpin an agent
POST
Pin or unpin an agent.
Personal access token scope: agents:write.
bearerheader
AuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
id?stringID of the agent
Success
curl -X POST 'http://localhost:7091/api/pin_agent'Example Response200
Empty
POST /api/import_agent POST
Import an agent from YAML: create a draft, or update the agent matched by id or slug. [Personal access token](/API/personal-access-tokens) scope: `agents:write`.
Rotate an agent's API key POST
Rotate an agent's API key. The previous key is invalidated immediately and a fresh key is returned once. Historical logging and usage records are re-pointed to the new key so analytics stay intact. Owner only. [Personal access token](/API/personal-access-tokens) scope: `agents:keys`.