Supercheck LogoSupercheck
Organizations API

Cancel organization deletion

POST
/api/organizations/{id}/cancel-deletion

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.

Authorization

sessionCookie
cookiebetter-auth.session_token<token>

Interactive Better Auth browser session. Secure deployments may use the __Secure- cookie prefix.

Path Parameters

id*string
Formatuuid

Response Body

Deletion cancelled

application/json
  1. response
success?boolean
billing?string

ended: 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"
Example Request
curl -X POST 'https://app.supercheck.io/api/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel-deletion'
Example Response
{  "success": true,  "billing": "reinstated"}