const url = 'https://app.monitorly.cloud/api/v1/me/deletion';const options = { method: 'GET', headers: {cookie: '__Host-monitorly_session=<__Host-monitorly_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.monitorly.cloud/api/v1/me/deletion \ --cookie __Host-monitorly_session=<__Host-monitorly_session>What deleting the signed-in account would do, what blocks it and what proof it takes.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”What deleting would do.
object
Nothing blocks the deletion: no shared workspace is owned, none of the person’s workspaces is blocked and the account is not the installation owner.
Workspaces where the person is the only member: stopped and hidden with the account, their data kept.
object
Blocked by the installation’s administrator: it can only be read, so the account can be deleted only
after the unblock (403 workspace.blocked).
Members, the person included.
The person’s role in it.
The account has a password: DELETE /me takes it as proof.
The installation owner’s account cannot be deleted here.
Workspaces the person leaves; what is in them stays.
object
Blocked by the installation’s administrator: it can only be read, so the account can be deleted only
after the unblock (403 workspace.blocked).
Members, the person included.
The person’s role in it.
Two-factor sign-in is on: DELETE /me needs a current code.
Linked providers this installation offers: a re-authentication at one of them (intent reauth) within
the last 5 minutes stands in for the password.
A provider re-authentication of this session is recent enough right now.
Owned workspaces with other members: ownership must go to someone else first.
object
Blocked by the installation’s administrator: it can only be read, so the account can be deleted only
after the unblock (403 workspace.blocked).
Members, the person included.
The person’s role in it.
Example
{ "deletedWorkspaces": [ { "id": "ID", "role": "member" } ], "leftWorkspaces": [ { "id": "ID", "role": "member" } ], "sharedWorkspaces": [ { "id": "ID", "role": "member" } ]}Bad Request.
auth.credentials_conflict: the request carries both a session cookie and a token
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Unauthorized.
auth.unauthenticated,auth.session_expired: no session, or it endedtoken.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Forbidden.
auth.forbidden: your role is too low for thistoken.not_allowed: this operation needs a signed-in session; tokens cannot call it
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}