palbaseDocs

Palbase Auth API · API

DELETE/auth/user

Delete the signed-in user's account

Permanently deletes the signed-in user's account and everything tied to it, sessions included; the deletion is complete when the answer arrives. An account with a password must send it (401 reauth_required when it is missing or wrong); an account without one is deleted on the strength of its session. The body is optional and read only when a Content-Length is sent.

Called by a signed-in user of your app, with their token and the publishable key.

Request body

passwordstring · optionalThe account's password. Required when the account has one (`has_password` on `GET /auth/me`); ignored otherwise.
curl
curl -X DELETE "https://<your-ref>.palbase.studio/auth/user" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN" \
  -H "content-type: application/json" \
  -d '{"password":"string"}'

Responses

204Account deleted

400Validation failed or required field missing

401Missing, invalid, or expired credentials

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation DeleteAccount of auth's contract.