btcintel

The provider's return as a form POST (Apple)

POST /v1/auth/oauth/{provider}/callback
who may call it
Anyone
no key and no session
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

Sign in with Apple returns the code with response_mode=form_post; the fields and the outcomes are those of the GET.

Parameters

NameWhereTypeRequiredWhat it does
providerpathstringrequiredThe provider: google, github, apple or oidc. One this deployment does not configure is a 404.
codebodystringoptionalthe contract says nothing more of it
statebodystringoptionalthe contract says nothing more of it
errorbodystringoptionalthe contract says nothing more of it
userbodystringoptionalApple's first-sign-in JSON (name, e-mail); not read, the ID token carries the address.

The body is application/x-www-form-urlencoded.

schema
  • code string
  • state string
  • error string
  • user string — Apple's first-sign-in JSON (name, e-mail); not read, the ID token carries the address.

What it answers

302

The browser lands on the explorer.

Headers: Location

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.
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 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.