Skip to main content
DELETE
Delete Agent Version By Label
Integration Prompt for AI Agents
New: DELETE /v1/agents/{agent_id}/versionsDeprecated: DELETE /v1/agents/{agent_id}/prompts/versions. Old path, still works.
Deletes an agent version by label.
  • if label is production -> 400 (must move production first)
  • if label resolves to 0 -> 404; >1 -> 400 ambiguous (except latest which should be unique)
  • if deleting latest, reassign latest to highest remaining version
  • cannot delete if it is the only version

Headers

X-Organization-Id
string
X-API-Key
string
required

API key required to authenticate requests.

Path Parameters

agent_id
integer
required

Query Parameters

label
string | null

Response

Successful Response