PilotFoxDocs

Get what deleting the account would do

GET
/api/v1/me/deletion

Read-only. The organizations deleted with the account (its only member), with their site count; those that block it (other members, and the user is the only owner); those the user leaves; whether the user is the instance's last administrator or an administrator signed in as the user (both block it); and what confirms it: the password, or for an account without one a sign-in in the last 10 minutes.

Requires a signed-in user (session cookie). API keys and share links: 401.

Authorization

session
cookie__Secure-pilotfox.session_token<token>

The web app's sign-in session, acting with the user's role; named pilotfox.session_token on an instance whose PUBLIC_URL is plain http. Under /api/v1, a POST, PUT, PATCH or DELETE carrying a cookie must come from the instance's own origin (Origin: PUBLIC_URL or a DASHBOARD_ORIGINS entry; else 403), and a body it carries must be JSON or multipart (else 415).

Response Body

OK

application/json
  1. response
data*
Example Request
curl -X GET 'https://pilotfox.app/api/v1/me/deletion'
Example Response200
{  "data": {    "allowed": true,    "impersonated": true,    "lastAdmin": true,    "confirmation": "password",    "recentSignInUntil": "string",    "signInAgain": true,    "organizations": {      "deleted": [        {          "id": "string",          "name": "string",          "slug": "string",          "sites": -9007199254740991        }      ],      "blocking": [        {          "id": "string",          "name": "string",          "slug": "string"        }      ],      "left": [        {          "id": "string",          "name": "string",          "slug": "string"        }      ]    }  }}