v2 - SDK

Create Viewer Session

Create a lightweight session token for an SDK viewer.

Public endpoint — no auth required. Creates or finds a viewer profile, returns a jj_ session token usable for streaming API calls.

Rate-limited per wallet AND per IP: unauthenticated, and each call can provision a profile. The wallet here is attacker-controlled input, so the IP bucket is the one that actually bounds provisioning.

post/v2/public/viewer-session

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

content_idstring required
wallet_addressstring required
signaturestring nullable

personal_sign of the SIWE message from GET /v2/auth/wallet-nonce

noncestring nullable

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

siwe_messagestring nullable

SIWE message written by the wallet (wallet_connect signInWithEthereum)

device_public_keyobject nullable

P-256 public JWK {kty, crv, x, y} for a remembered sign-in

Response

Successful Response

session_tokenstring required
profile_idstring required
wallet_addressstring required
remembered_session_idstring nullable
remembered_untilstring nullable

Changes

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