Finish a passkey sign-in or step-up
POST /v1/auth/webauthn/authenticate/finish- who may call it
- Anyone
- no key and no session
- how fresh
- Never cached
- every answer carries the index's height and the node's
- MCP tool
- None
On this page
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.
Parameters
| Name | Where | Type | Required | What it does |
|---|---|---|---|---|
id | body | string | required | The ceremony id. |
credential | body | object | required | The browser's assertion: the JSON of the PublicKeyCredential it returned. |
The body is application/json.
schema
idstring required — The ceremony id.credentialobject required — The browser's assertion: the JSON of thePublicKeyCredentialit returned.
What it answers
200 · application/json
Stepped up.
| Field | Type | What it carries |
|---|---|---|
aal | integer | Always 2: the session the request came with holds a second factor. |
aal_until | string | When the step-up ends: ten minutes from now. |
method | string | Always passkey. |
schema
aalinteger required — Always 2: the session the request came with holds a second factor. · one of 2aal_untilstring (date-time) required — When the step-up ends: ten minutes from now.methodstring required — Alwayspasskey. · one of "passkey"
201 · application/json
A session at aal 2; the cookie is set.
| Field | Type | What it carries |
|---|---|---|
account | object | The account signed in: its id, its e-mail address, its display name and when it was created. |
tier | string | Always t4: an account's tier. |
expires_at | string | When the session ends: 30 days after the sign-in. |
session_id | string | The row id (SHA-256 of the cookie token) as /v1/auth/me lists it. |
aal | integer | The session's assurance level: 2 after a passkey sign-in, 1 after any other. |
amr | array | 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 | object | 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. |
quota | object | What tier t4 allows. |
schema AccountSession
accountobject required — The account signed in: 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.
tierstring required — Alwayst4: an account's tier. · one of "t4"expires_atstring (date-time) required — When the session ends: 30 days after the sign-in.session_idstring required — The row id (SHA-256 of the cookie token) as/v1/auth/melists it.aalinteger required — The session's assurance level: 2 after a passkey sign-in, 1 after any other. · one of 1, 2amrarray of string required — How the session was opened:password,link,passkey, or the sign-in provider's name.password_reset_onlyboolean — Present and true when the session came from a reset link: it may only set a new password.nextstring — Where the explorer lands after a provider link (POST /v1/auth/oauth/confirm): the path the flow started with.signing_identitySigningIdentity — 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.pubkeystring required — 64 hex characters.npubstring required — The key as an npub (NIP-19).sourcestring required — How the key signs:custodiedby btcintel's signer, or the person's own throughnip07(a browser extension),nip46(a remote signer) ornip55(an Android signer). · one of "custodied", "nip07", "nip46", "nip55"linked_atstring (date-time) required — When the key was linked to the account.exportableboolean required — True for a custodied key:POST /v1/auth/npub/exporthands it over.exported_atstring (date-time) — When a custodied key was last exported; absent until then, and while the signer does not answer.clientsarray of SignerClient — The NIP-46 apps connected to a custodied key; empty when none, absent while the signer does not answer.client_pubkeystring required — The app's pubkey, 64 hex characters.namestring required — What the account called the app when it made the link; may be empty.permsarray of string required — What the app may ask for:sign_event:<kind>,sign_event,nip44_encrypt,nip44_decrypt,nip04_encrypt,nip04_decrypt.connected_atstring (date-time) required — When the app connected.last_used_atstring (date-time) — Absent until the app's first request after connecting.
quotaQuota — What tier t4 allows.requests_per_mininteger — The requests a minute the tier refills, on average.burst_per_mininteger — The most requests the tier lets through at once: its bucket, refilled atrequests_per_min.requests_per_dayinteger — The requests a UTC day the tier allows. 0 sets no daily cap.bulk_max_subjectsinteger — The most subjects one bulk lookup may name. 0 falls back to 20, t0's number.publish_per_dayinteger — 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 thecommunity:publishscope and an allowed npub; t0 and t1 cannot.feedback_per_dayinteger — Feedback entries per caller per UTC day.proposals_per_dayinteger — Curated proposals per caller per UTC day.disputes_per_dayinteger — Disputes per caller per UTC day.scopesarray of string — The scopes of the tier. Absent from a key's row, whose ownscopesstand beside it.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_input | invalid_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. |
| 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. |
| 404 | not_found | not_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. |
| 429 | quota_exceeded | quota_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. |
| 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 is a step of signing in, which runs in your browser on btcintel.io, so no snippet can run it from a shell. See Identity.