Auth

Delete authenticated user account

Requires confirm=DELETE_AGENTRY_ACCOUNT and a stable Idempotency-Key. Before admission it rejects active or unresolved Stripe billing; the same transaction installs an account checkout fence. Finalization removes Agentry-owned account/project state and detaches or best-effort revokes local PostHog OAuth connections. It never deletes or mutates customer-owned PostHog data. It returns 202 while bounded local cleanup is active and 409 when billing remediation is required. Its surviving hash-only tombstone lets an exact retry recover only the terminal manifest after account authority is revoked.

post/v1/auth/self_delete

Request

  • Base URL: https://api.agentry.sh
  • URL: https://api.agentry.sh/v1/auth/self_delete
  • Auth: HTTP bearer

Headers

Idempotency-Keystring required

Stable 8-500 character command key. Preserve it only when replaying the exact same request; use a new key for a distinct command.

Request body

confirm'DELETE_AGENTRY_ACCOUNT' required

Acknowledges deletion of Agentry-owned account and project state. Customer-owned PostHog data is untouched.

Response

OK

status'deleted' required
command_idstring required
user_idstring required
cascadedobject required
idempotent_replayboolean
receipt_recoveryobject
notestring
next_actionstring

Changes

No recorded changes to this operation across all 1 revision of this API.