Skip to main content
DELETE
Delete Agent Version
Integration Prompt for AI Agents
New: DELETE /v1/agents/{agent_id}/versions/{version}Deprecated: DELETE /v1/agents/{agent_id}/prompts/versions/{version}. Old path, still works.
Deletes a specific agent version; cannot delete production; cannot delete only version. If deleting latest, reassign latest to highest remaining version. Returns metadata about the deletion.

Headers

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

API key required to authenticate requests.

Path Parameters

agent_id
integer
required
version
integer
required

Response

Successful Response