Delete an agent

⚠️
Preview — this feature is being built; the design below is the spec.
DELETE https://app.syntic.ai/v1/agents/{agent_id}

Delete an archived agent and all of its versions. Execution records keep the agent’s id and name so run history stays readable. Archive the agent first; deleting an active agent or one with running sessions is refused.

For how this fits into a full workflow, see Agent definitions.

Headers

HeaderRequiredValue
AuthorizationYesBearer <key>: a private inference key (sk_live_...). See Authentication.
syntic-betaYes, while in previewagents-2026-11-01. Without it the call fails with 400 beta_required. See Versioning.

Path parameters

ParameterTypeDescription
agent_idstringThe agent id, starting with agt_.

Response

200 OK, Content-Type: application/json

{
  "id": "agt_01JC4R8W6Q2N9X3T5V7Y",
  "type": "agent_deleted"
}

Examples

curl -sS -X DELETE https://app.syntic.ai/v1/agents/agt_01JC4R8W6Q2N9X3T5V7Y \
  -H "Authorization: Bearer $SYNTIC_API_KEY" \
  -H "syntic-beta: agents-2026-11-01"

Errors

Errors use the error envelope and carry a request_id. Codes specific to this operation:

StatustypecodeWhen
400invalid_request_errorbeta_requiredThe syntic-beta header is missing.
403permission_errorrole_requiredThe key’s creator does not hold the role this change needs.
404not_found_erroragent_not_foundNo agent with that id in this workspace.
409conflict_erroragent_not_archivedArchive the agent before deleting it.
409conflict_erroragent_has_running_sessionsSessions are still running.
401authentication_errorinvalid_api_keyThe key is missing, unknown, revoked or expired.
429rate_limit_errorrate_limitedToo many requests; wait for Retry-After. See Rate-limit headers.
Was this page helpful?