Me · exportAccountData
Export my data
POST /v1/account/export
Builds a ZIP of JSON files with your profile, preferences, memberships, sessions, delivery settings, decisions, activity, invitations and personal workspace (asks, events, metrics, agents, a list of your images with links valid for 24 hours). Secrets are never included. It is prepared in the background: read GET /v1/account (export) until status is ready, or wait for the email, which has a download link valid for 24 hours; the file is kept for 7 days. One export at a time and one a day. Needs a session started in the last 15 minutes.
- Who may call it
- any signed-in human
- Server
- https://api.logu.dev
Example#
curl -s -X POST "https://api.logu.dev/v1/account/export" \
-H "Authorization: Bearer $LOGU_SESSION_TOKEN"
Responses#
202
The export is being prepared.
{
"id": "exp_01J9Z3K4X8V6Q2N5R7T0W1Y3B5",
"status": "ready",
"requestedAt": "2026-10-12T14:03:11.000Z",
"readyAt": "2026-10-12T14:05:42.000Z",
"expiresAt": "2026-10-19T14:05:42.000Z",
"size": 48213,
"downloadUrl": "https://api.logu.dev/x/exp_01J9Z3K4X8V6Q2N5R7T0W1Y3B5?exp=1791900000&sig=Zm9yLWRvY3Mtb25seQ",
"downloadUrlExpiresAt": "2026-10-13T14:05:42.000Z"
}
Response fields
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | required | |
status | "processing" | "ready" | "failed" | required | |
requestedAt | string | required | date-time |
readyAt | string | null | required | date-time |
expiresAt | string | null | required | date-time |
size | integer | null | required | |
downloadUrl | string | null | required | |
downloadUrlExpiresAt | string | null | required | date-time |
Errors#
Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.
| Status | Code | Meaning |
|---|---|---|
| 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. |
| 429 | rate_limited | This API key sent too many requests, or a human did too much too fast: sign-in attempts, workspaces created in a day, or a global daily cap on new accounts was reached. |
| 500 | internal_error | Something went wrong on Logu's side. |