Skip to main content
DELETE
/
v1
/
agents
/
{id}
Delete an agent
curl --request DELETE \
  --url https://api.pyai.com/v1/agents/{id} \
  --header 'Authorization: Bearer <token>'
{
  "object": "agent.deleted",
  "agent_id": "<string>",
  "deleted": true
}

Authorizations

Authorization
string
header
required

Use Authorization: Bearer pyai_live_... (or pyai_test_...).

Path Parameters

id
string
required

Response

Deletion confirmation

object
string
Example:

"agent.deleted"

agent_id
string
deleted
boolean
Example:

true