Skip to main content
DELETE
/
accounts
/
account
Delete account
curl --request DELETE \
  --url https://api.quiva.ai/accounts/account \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "in_14_days": true,
  "email_code": "123456"
}
'
{
  "data": {
    "message": "The accounts is going to be deleted on 2023-05-12T12:34:56Z",
    "deletion_date": "2023-05-12T12:34:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email_code
string
required

Email verification code. To obtain one, see /accounts/email-code

in_14_days
boolean

Schedule deletion in 14 days. If this flag is set to true, the account data will not be deactivated immediately and will be accessible in the next 14 days. After this period is up, it will no longer be possible to log in with the account. If the root user wishes to recover it, they can contact a platform administrator up to a year after the account was deleted.

Response

Account scheduled for deletion or deleted successfully

data
object
required