Delete the authenticated account
DELETE
/auth/account
const url = 'https://localhost:3000/api/v1/auth/account';const options = { method: 'DELETE', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"osp":"7a3b9c4d8e2f1a6b"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://localhost:3000/api/v1/auth/account \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "osp": "7a3b9c4d8e2f1a6b" }'Permanently deletes the account and all its data (triggers, events, groups, API keys, sessions). Access is cut immediately (sessions, API keys and JWTs revoked), data erasure continues in the background. Requires the account OSP as identity confirmation. Irreversible.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Confirmation OSP
Media typeapplication/json
object
osp
required
string
Example
7a3b9c4d8e2f1a6bResponses
Section titled “Responses”Deletion accepted, erasure in progress
Media typeapplication/json
object
message
string
success
required
boolean
Example
{ "message": "Operation completed successfully", "success": true}OSP manquant
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Unauthorized
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}OSP invalide
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Compte introuvable
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}The account owns a shared tenant
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Erreur interne
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}