Me · requestAccountDeletion
Delete my account
POST /v1/account/deletion
Starts a 30-day grace: the account is disabled now (every session ends, phones and browsers stop receiving pushes, you stop getting asks in shared workspaces) and deleted for good at purgeAt unless you restore it by asking for a sign-in link at logu.dev (the link restores the account). Your personal workspace and everything in it go with the account; in shared workspaces your decisions and activity stay, with your name replaced by "Removed member". Needs a session started in the last 15 minutes and the account's email typed in email. Refused with conflict while you are the only Owner of a shared workspace that has other members (hint: transfer ownership or delete it) or a workspace to be deleted has a live Pro subscription (hint: cancel it first).
- Who may call it
- any signed-in human
- Server
- https://api.logu.dev
Request body#
Content type application/json (required).
| Field | Type | Required | Notes |
|---|---|---|---|
email | string | required | 1–254 chars |
{
"email": "ana@example.com"
}
Example#
curl -s -X POST "https://api.logu.dev/v1/account/deletion" \
-H "Authorization: Bearer $LOGU_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{"email":"ana@example.com"}'
Responses#
202
The request is recorded; the account is disabled.
{
"requestedAt": "2026-10-12T14:03:11.000Z",
"purgeAt": "2026-11-11T14:03:11.000Z",
"graceDays": 30
}
Response fields
| Field | Type | Required | Notes |
|---|---|---|---|
requestedAt | string | required | date-time |
purgeAt | string | required | date-time |
graceDays | integer | required |
Errors#
Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.
| Status | Code | Meaning |
|---|---|---|
| 400 | bad_request | The request is malformed or a field is invalid (see issues). |
| 400 | unknown_field | The body has a field the endpoint doesn't know (often a typo or snake_case). |
| 401 | unauthorized | No credentials, or the API key or session is invalid or revoked. |
| 403 | forbidden | The caller is authenticated but may not do this (wrong role, or an API key on a human-only endpoint). |
| 409 | conflict | The resource isn't in a state that allows this: an ask that is no longer waiting (ask has its current state), an invitation no longer pending, the last Owner. |
| 500 | internal_error | Something went wrong on Logu's side. |