btcintel

Finish a passkey sign-in or step-up

POST /v1/auth/webauthn/authenticate/finish
quién puede llamarla
Cualquiera
sin clave y sin sesión
qué cuesta
1 petición de la cuota
niveles y claves
cuán reciente
Nunca en caché
cada respuesta lleva la altura del índice y la del nodo
Herramienta MCP
Ninguna
En esta página

credential is the browser's assertion as JSON. Without a session, the passkey opens one at aal 2 with amr [passkey] (201); with a session of the same account already on the request, it is a step-up to aal 2 for ten minutes (200). A signature counter that went backwards is refused. Thirty sign-ins per client address per hour.

Parámetros

NombreDóndeTipoObligatorioQué hace
idcuerpostringobligatorioThe ceremony id.
credentialcuerpoobjectobligatorioThe browser's assertion: the JSON of the PublicKeyCredential it returned.

El cuerpo es application/json.

esquema
  • id string obligatorio — The ceremony id.
  • credential object obligatorio — The browser's assertion: the JSON of the PublicKeyCredential it returned.

Qué responde

200 · application/json

Stepped up.

CampoTipoQué lleva
aalintegerAlways 2: the session the request came with holds a second factor.
aal_untilstringWhen the step-up ends: ten minutes from now.
methodstringAlways passkey.
esquema
  • aal integer obligatorio — Always 2: the session the request came with holds a second factor. · uno de 2
  • aal_until string (date-time) obligatorio — When the step-up ends: ten minutes from now.
  • method string obligatorio — Always passkey. · uno de "passkey"

201 · application/json

A session at aal 2; the cookie is set.

CampoTipoQué lleva
accountobjectThe account signed in: its id, its e-mail address, its display name and when it was created.
tierstringAlways t4: an account's tier.
expires_atstringWhen the session ends: 30 days after the sign-in.
session_idstringThe row id (SHA-256 of the cookie token) as /v1/auth/me lists it.
aalintegerThe session's assurance level: 2 after a passkey sign-in, 1 after any other.
amrarrayHow the session was opened: password, link, passkey, or the sign-in provider's name.
password_reset_onlybooleanPresent and true when the session came from a reset link: it may only set a new password.
nextstringWhere the explorer lands after a provider link (POST /v1/auth/oauth/confirm): the path the flow started with.
signing_identityobjectThe account's Nostr key when it has one; while custodied signing is on, a sign-in gives an account without one its custodied key first.
quotaobjectWhat tier t4 allows.
esquema AccountSession
  • account object obligatorio — The account signed in: its id, its e-mail address, its display name and when it was created.
    • id integer (int64) obligatorio — 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) obligatorio — When the account was created.
  • tier string obligatorio — Always t4: an account's tier. · uno de "t4"
  • expires_at string (date-time) obligatorio — When the session ends: 30 days after the sign-in.
  • session_id string obligatorio — The row id (SHA-256 of the cookie token) as /v1/auth/me lists it.
  • aal integer obligatorio — The session's assurance level: 2 after a passkey sign-in, 1 after any other. · uno de 1, 2
  • amr array de string obligatorio — How the session was opened: password, link, passkey, or the sign-in provider's name.
  • password_reset_only boolean — Present and true when the session came from a reset link: it may only set a new password.
  • next string — Where the explorer lands after a provider link (POST /v1/auth/oauth/confirm): the path the flow started with.
  • signing_identity SigningIdentity — The account's Nostr key when it has one; while custodied signing is on, a sign-in gives an account without one its custodied key first.
    • pubkey string obligatorio — 64 hex characters.
    • npub string obligatorio — The key as an npub (NIP-19).
    • source string obligatorio — How the key signs: custodied by btcintel's signer, or the person's own through nip07 (a browser extension), nip46 (a remote signer) or nip55 (an Android signer). · uno de "custodied", "nip07", "nip46", "nip55"
    • linked_at string (date-time) obligatorio — When the key was linked to the account.
    • exportable boolean obligatorio — True for a custodied key: POST /v1/auth/npub/export hands it over.
    • exported_at string (date-time) — When a custodied key was last exported; absent until then, and while the signer does not answer.
    • clients array de SignerClient — The NIP-46 apps connected to a custodied key; empty when none, absent while the signer does not answer.
      • client_pubkey string obligatorio — The app's pubkey, 64 hex characters.
      • name string obligatorio — What the account called the app when it made the link; may be empty.
      • perms array de string obligatorio — What the app may ask for: sign_event:<kind>, sign_event, nip44_encrypt, nip44_decrypt, nip04_encrypt, nip04_decrypt.
      • connected_at string (date-time) obligatorio — When the app connected.
      • last_used_at string (date-time) — Absent until the app's first request after connecting.
  • quota Quota — What tier t4 allows.
    • requests_per_min integer — The requests a minute the tier refills, on average.
    • burst_per_min integer — The most requests the tier lets through at once: its bucket, refilled at requests_per_min.
    • requests_per_day integer — The requests a UTC day the tier allows. 0 sets no daily cap.
    • bulk_max_subjects integer — The most subjects one bulk lookup may name. 0 falls back to 20, t0's number.
    • publish_per_day integer — The Community events a UTC day each author may publish through the API at this tier. 0 sets no daily cap. Who may publish at all is decided apart: a person signed in with their key, or a key with the community:publish scope and an allowed npub; t0 and t1 cannot.
    • feedback_per_day integer — Feedback entries per caller per UTC day.
    • proposals_per_day integer — Curated proposals per caller per UTC day.
    • disputes_per_day integer — Disputes per caller per UTC day.
    • scopes array de string — The scopes of the tier. Absent from a key's row, whose own scopes stand beside it.

Errores

EstadoCódigoCuándo
400invalid_inputinvalid_input: the request is malformed: bad hex, an address of another network, a bad vout, or a value out of its range. The message says which.
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.
404not_foundnot_found: what the path names is not known: not in the index (for a transaction, not in the node's mempool either), or no such record. The message says which.
429quota_exceededquota_exceeded: the caller's tier ran out of requests for the minute or the day. Retry-After says when to try again; every rate-limited answer carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and X-RateLimit-Tier. While the deployment runs in log-only mode the decision is logged instead and X-RateLimit-Policy: log-only is set.
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.

Cada uno llega en el sobre de error único, y ninguno se guarda en caché: un error lleva Cache-Control: no-store.

Ejemplo

Sin fragmento. Esta ruta es un paso del inicio de sesión, que ocurre en tu navegador en btcintel.io, así que ningún fragmento puede ejecutarla desde una shell. Ver Identidad.