SDK reference

Deleting your account

Each route's function in the SDK, its call beside the same request in cURL.
meAccountDeletion

GET/v1/me/account/deletion

Your account's deletion: the open request (status, eraseAt, graceDays), or, with status: none, the grace a request now would get (graceDays, and graceReason: credential_change when it's longer because a credential changed this week) and the blockers to deal with first, each with its action; after a preview, planCounts (by service and kind) and preview (handlers done of total). Your own first-party session only (ID, the phone apps), never a key, an assistant or another app.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/account/deletion' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeAccountDeletionPreview

POST/v1/me/account/deletion/preview

Counts what deleting your account would erase, app by app, without deleting anything: 202 with previewId and total, the number of services counting; the counts fill in on GET /v1/me/account/deletion (planCounts, preview) as each finishes. One at a time, 3 a day.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/account/deletion/preview' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeAccountDeletion

POST/v1/me/account/deletion

Schedules your account's deletion (confirm: "delete", an optional reason): it's frozen at once (signed out everywhere, credentials suspended, your plan stops renewing) and erased after the grace, and every address and verified number you have is told, with a link that keeps it. Needs a second factor confirmed for account_delete and a sign-in from the last 10 minutes (ID's deletion page gives both), else 403 step_up; 403 first_party_only for anything but your own session; 409 blocked with the blockers, or already_scheduled; 429 past 3 a month.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/account/deletion' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "confirm": "delete"
  }'
deleteMeAccountDeletion

DELETE/v1/me/account/deletion

Keeps your account: cancels a scheduled deletion ("Keep my account" after signing in). Everything works again; sign in again on your devices. 409 too_late once erasure has begun.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/account/deletion' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"