btcintel

The account's data as one JSON document

GET /v1/auth/export
who may call it
A session
the session of an account
what it costs
1 request of the quota
tiers and keys
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.

FieldTypeWhat it carries
exported_atstringWhen the export was made.
accountobjectThe account: its id, its e-mail address, its display name and when it was created.
sessionsarrayEvery session of the account, live or not, as GET /v1/auth/me lists them, with aal and, for a revoked one, revoked_at.
loginsarrayThe sign-in providers bound to the account; empty when none.
logins[].providerstringThe sign-in provider.
logins[].subjectstringThe provider's stable identifier.
logins[].emailstringThe address the provider reported.
logins[].verifiedbooleanWhether the provider vouched for the address it reported.
logins[].created_atstringWhen the provider was bound to the account.
auditarrayThe audit rows the account caused, oldest first, at most 1,000.
audit[].idintegerThe row's id: the audit log pages by it.
audit[].atstringWhen it was written.
audit[].actorstringWho acted, as <kind>:<id>: an operator, an account, an npub, a key or an importer.
audit[].actionstringWhat was done, in a word: approve, retract, key_issue, …
audit[].tablestringThe table the action touched.
audit[].row_idstringThe id of the row it touched, as text.
audit[].detailsobjectWhat else the action recorded. {} when nothing.
schema AccountExport
  • exported_at string (date-time) required — When the export was made.
  • account AccountInfo required — The account: its id, its e-mail address, its display name and when it was created.
    • id integer (int64) required — The account's id.
    • email string — The account's e-mail address, in lower case. Absent once the account is anonymised.
    • display_name string — The account's display name. Absent when it has none.
    • created_at string (date-time) required — When the account was created.
  • sessions array of object required — 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 of object — The sign-in providers bound to the account; empty when none.
    • provider string required — The sign-in provider. · one of "google", "github", "apple", "oidc"
    • subject string required — The provider's stable identifier.
    • email string — The address the provider reported.
    • verified boolean required — Whether the provider vouched for the address it reported.
    • created_at string (date-time) required — When the provider was bound to the account.
  • audit array of AuditEntry required — The audit rows the account caused, oldest first, at most 1,000.
    • id integer required — The row's id: the audit log pages by it.
    • at string (date-time) required — When it was written.
    • actor string required — Who acted, as <kind>:<id>: an operator, an account, an npub, a key or an importer.
    • action string required — What was done, in a word: approve, retract, key_issue, …
    • table string required — The table the action touched.
    • row_id string required — The id of the row it touched, as text.
    • details object required — What else the action recorded. {} when nothing.

Errors

StatusCodeWhen
401unauthorizedunauthorized: 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.
403forbiddenforbidden: 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.
501not_configurednot_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.