Organizations API
Cancel organization deletion
POST
Owner only. Cancels a pending deletion during the grace window and returns the organization to normal. Returns 409 with code PURGE_STARTED once the window is over. Not allowed while impersonating. Requires an interactive, same-origin browser session.
sessionCookiecookie
better-auth.session_token<token>Interactive Better Auth browser session. Secure deployments may use the __Secure- cookie prefix.
id*stringFormat
uuidDeletion cancelled
application/json- response
success?booleanbilling?stringended: the paid period already finished, so subscribe again. failed: the organization is restored but renewal could not be re-enabled; use the billing portal.
Value in
"reinstated""ended""skipped""none""failed"curl -X POST 'https://app.supercheck.io/api/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel-deletion'Example Response
{ "success": true, "billing": "reinstated"}