v2 - Viewer Auth

Register Viewer

Register a streaming viewer or agent — creates Firebase user + JubJub profile.

PUBLIC: No Firebase auth required (viewer doesn't have Firebase yet). The caller proves control of wallet_address with a SIWE signature over a nonce this server issued; nothing below runs until that proof holds.

Idempotent: if a profile already holds this wallet, returns the existing profile without modification — legitimately, because the signature just proved the caller controls that wallet.

post/v2/auth/register-viewer

Request

  • Base URL
    https://api.jubjubapp.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Request body

wallet_addressstring required

EVM address the caller controls

emailstring nullable

Email if available

wallet_typestring nullable

'external', 'smart_wallet' or 'embedded'

signaturestring required

EIP-191 signature over the SIWE message

noncestring required

Nonce previously issued by /v2/auth/wallet-nonce

display_namestring nullable

Optional display name

Response

Successful Response

profile_idstring required
wallet_addressstring required
createdboolean required
messagestring required
firebase_custom_tokenstring nullable
session_tokenstring nullable

Changes

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