SDK reference
Deleting your account
GET/
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.
curl 'https://api.cactive.com.au/v1/me/account/deletion' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
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.
curl -X POST 'https://api.cactive.com.au/v1/me/account/deletion/preview' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
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.
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"
}'DELETE/
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.
curl -X DELETE 'https://api.cactive.com.au/v1/me/account/deletion' \
-H "Authorization: Bearer $CACTIVE_TOKEN"