zinn-agents

DELETE /v1/agents/{agentId}

Delete an agent and destroy its data volume.

All zinn-agents endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

Authentication

Send an API key as a bearer token. The endpoint checks agents.manage, agents.view; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X DELETE https://api.zinndigital.com/v1/agents/{agentId} \
  -H "Authorization: Bearer zdk_live_…"

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Parameters

NameTypeRequiredWhat it is
agentId (path)stringYes—

Response

NameTypeRequiredWhat it is
idstringYes—
org_idstringYes—
namestringYes—
appAgentAppCodeYesThe app an agent runs. One named component so a generator never derives the name AgentApp from Agent.app, which collides with the AgentApp catalogue object below.
statusAgentRunStateYesWhere a hosted agent is in its life. A named component because a generator would otherwise derive AgentStatus from Agent.status, which collides with the AgentStatus…
status_detailstringYes—
suspend_reasonstring<, standing, customer, ended, staff>Yes—
plan_codestringYes—
paid_bystring<subscription, trial>Yes—
resourcesAgentResourcesYes—
urlstringYes—
modelstringYes—
monthly_cap_microsintegerYes—
spent_period_microsintegerYes—
memory_addon_mbintegerNoThe "+1 GB memory" add-on memory the running pod was started with (MiB), on top of resources.memory_mb (the plan's). See getAgentMemory.
created_atstringYes—
provisioned_atstringYes—

Errors this endpoint can return

401 · 404