Description

Deletes an agent from the system using its unique agent_id.

Endpoint

DELETE /v3/agents/{agent_id}

Authentication

  • Requires an API key (x-api-key) in the request headers.

Path Parameters

ParameterTypeDescription
agent_idstringUnique identifier of the agent to delete.

Request Example (cURL)

curl -X DELETE "https://agent-prod.studio.lyzr.ai/v3/agents/{agent_id}" ^
-H "accept: application/json" ^
-H "x-api-key: sk-default-REPLACED-API-KEY"

Response Example

{
  "message": "Agent deleted successfully."
}