Me

Link GitHub or Google identity using login code

Exchange an OAuth login code and its PKCE verifier using the current session. Returns 201 for a new identity and 200 when already linked to this user.

post/me/identities/oauth

Request

  • Base URL: https://console-api.blockvectra.com/v1
  • URL: https://console-api.blockvectra.com/v1/me/identities/oauth
  • Auth: HTTP bearer

Request body

codestring required

Single-use login code delivered via callback redirect.

code_verifierstring required

PKCE verifier corresponding to code_challenge at start (RFC 7636).

Response

Identity already linked to this user (idempotent).

identity_idstring required
provider'siwe' | 'github' | 'google' required
subjectstring required

SIWE: eip155:1:<lowercase address>; GitHub: numeric id; Google: sub.

displaystring nullable required

EIP-55 address for SIWE, login for GitHub (display only), null for Google.

created_atstring date-time required

RFC 3339 UTC, second precision, ending in Z (2026-09-26T08:00:00Z); no fractional seconds, without +00:00 timezone offsets.

last_login_atstring date-time required

RFC 3339 UTC, second precision, ending in Z (2026-09-26T08:00:00Z); no fractional seconds, without +00:00 timezone offsets.

Example response

{
  "created_at": "2026-09-26T08:00:00Z",
  "last_login_at": "2026-09-26T08:00:00Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.