btcintel

Start a sign-in with a provider

GET /v1/auth/oauth/{provider}/start
who may call it
Anyone or a session
the session of an account · An account's session on the request links the provider to that account instead of signing in.
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

Sends the browser to the provider's authorization endpoint: Authorization Code with PKCE (S256), a state and a nonce per flow, kept in memory for ten minutes; the state also travels in the btci_oauth cookie of the browser that started the flow. The provider returns to /v1/auth/oauth/{provider}/callback on the public API host and nowhere else. next is a path of the explorer to land on afterwards; anything that is not a path lands on /. With an account session on the request the flow links the provider to that account instead (the addresses must match). A provider not configured answers 404 and is absent from features.sign_in; thirty starts per client address per hour, shared with the other sign-ins.

Parameters

NameWhereTypeRequiredWhat it does
providerpathstringrequiredThe provider: google, github, apple or oidc. One this deployment does not configure is a 404.
nextquerystringoptionalWhere the explorer lands afterwards: a path such as /watchlists.

What it answers

302

The browser goes to the provider.

Headers: Location, Set-Cookie

Errors

StatusCodeWhen
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.
503unavailableunavailable: the sign-in provider did not answer its discovery document; try again in a moment.

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.