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.
- 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
| Name | Where | Type | Required | What it does |
|---|---|---|---|---|
provider | path | string | required | The provider: google, github, apple or oidc. One this deployment does not configure is a 404. |
next | query | string | optional | Where the explorer lands afterwards: a path such as /watchlists. |
What it answers
302
The browser goes to the provider.
Headers: Location, Set-Cookie
Errors
| Status | Code | When |
|---|---|---|
| 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. |
| 503 | unavailable | unavailable: 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.