The account's data as one JSON document
GET /v1/auth/export- who may call it
- A session
- the session of an account
- how fresh
- Never cached
- every answer carries the index's height and the node's
- MCP tool
- None
On this page
The account, every session (live or revoked; hashes, never a User-Agent string) and the audit rows the account caused. Served as an attachment.
Parameters
It takes no parameters.
What it answers
The export.
| Field | Type | What it carries |
|---|---|---|
exported_at | string | When the export was made. |
account | object | The account: its id, its e-mail address, its display name and when it was created. |
sessions | array | Every session of the account, live or not, as GET /v1/auth/me lists them, with aal and, for a revoked one, revoked_at. |
logins | array | The sign-in providers bound to the account; empty when none. |
logins[].provider | string | The sign-in provider. |
logins[].subject | string | The provider's stable identifier. |
logins[].email | string | The address the provider reported. |
logins[].verified | boolean | Whether the provider vouched for the address it reported. |
logins[].created_at | string | When the provider was bound to the account. |
audit | array | The audit rows the account caused, oldest first, at most 1,000. |
audit[].id | integer | The row's id: the audit log pages by it. |
audit[].at | string | When it was written. |
audit[].actor | string | Who acted, as <kind>:<id>: an operator, an account, an npub, a key or an importer. |
audit[].action | string | What was done, in a word: approve, retract, key_issue, … |
audit[].table | string | The table the action touched. |
audit[].row_id | string | The id of the row it touched, as text. |
audit[].details | object | What else the action recorded. {} when nothing. |
schema AccountExport
exported_atstring (date-time) required — When the export was made.accountAccountInfo required — The account: its id, its e-mail address, its display name and when it was created.idinteger (int64) required — The account's id.emailstring — The account's e-mail address, in lower case. Absent once the account is anonymised.display_namestring — The account's display name. Absent when it has none.created_atstring (date-time) required — When the account was created.
sessionsarray of object required — Every session of the account, live or not, asGET /v1/auth/melists them, withaaland, for a revoked one,revoked_at.loginsarray of object — The sign-in providers bound to the account; empty when none.providerstring required — The sign-in provider. · one of "google", "github", "apple", "oidc"subjectstring required — The provider's stable identifier.emailstring — The address the provider reported.verifiedboolean required — Whether the provider vouched for the address it reported.created_atstring (date-time) required — When the provider was bound to the account.
auditarray of AuditEntry required — The audit rows the account caused, oldest first, at most 1,000.idinteger required — The row's id: the audit log pages by it.atstring (date-time) required — When it was written.actorstring required — Who acted, as<kind>:<id>: an operator, an account, an npub, a key or an importer.actionstring required — What was done, in a word: approve, retract, key_issue, …tablestring required — The table the action touched.row_idstring required — The id of the row it touched, as text.detailsobject required — What else the action recorded.{}when nothing.
Errors
| Status | Code | When |
|---|---|---|
| 401 | unauthorized | unauthorized: the request does not say who makes it, or what it offers does not verify: no key or session where one is needed, or a password, a code, a passkey or a signed event that does not check. The message says what is missing. |
| 403 | forbidden | forbidden: the caller is known but may not do this: a key without the scope or the tier the action needs, a session without an npub, a second factor or a recent sign-in, an operator without the role or switched off, or a source that does not allow it. The message says which. |
| 501 | not_configured | not_configured: this deployment does not run what the route needs, for example the mempool engine, accounts, the intel store or watchlists. The message names it. |
Each comes in the one error envelope, and none is cached: an error carries Cache-Control: no-store.
Example
No snippet. This route takes a signed-in session (the cookie btcintel.io sets) or a NIP-98 signature from your Nostr signer, never a key, so no snippet can run it from a shell. See Identity.