Skip to main content
POST
Error

Authorizations

aura_session
string
cookie
required

HttpOnly session cookie set by POST /v1/auth/session. Mutating requests must also send the CSRF token (returned by that call) in the x-csrf-token header.

Body

application/json
address
string
required

Alephium address (base58, optional :N group suffix).

Required string length: 30 - 80
Pattern: ^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz:]+$
publicKey
string
required

Public key whose hash equals address (33-byte compressed, hex).

Pattern: ^(0x)?[0-9a-fA-F]+$
signature
string
required

Signature produced by signMessage(challenge, "alephium").

Pattern: ^(0x)?[0-9a-fA-F]+$
keyType
enum<string>
default:gl-secp256k1

Wallet key type. gl-secp256k1 = groupless embedded wallet (the type the app uses); default = grouped extension/desktop wallet.

Available options:
default,
gl-secp256k1
challenge
string

The exact challenge text that was signed. Send this when the challenge was issued without an address (the server consumes it by text). Omit it when the challenge was issued for a known address (it is then consumed by address).

refererAddress
string | null

Optional referrer wallet, captured once on first registration. Ignored if it equals the caller or does not exist.

Required string length: 30 - 80
Pattern: ^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz:]+$
wallet
object

Wallet provenance, persisted for support/debugging (embedded = self-hosted signer; the wallet-svc user id is never signing authority).

issueToken
boolean
default:false

Set true to also receive the session token in the response body, for scripted callers that would rather send Authorization: Bearer <token> than keep a cookie jar. Browser clients should leave this false so their only copy of the credential stays in the HttpOnly cookie.

Response

Default Response

address
string
required

Alephium address (base58, optional :N group suffix).

Required string length: 30 - 80
Pattern: ^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz:]+$
csrf
string
required

CSRF token. Send it as the x-csrf-token header on mutating requests. Not needed for Bearer callers.

created
boolean
required

true when this call created a new account row.

token
string

The session token, present only when issueToken was true. Send it as Authorization: Bearer <token>. It is the same credential as the cookie, so it carries the same expiry and is equally worth protecting.

expiresAt
string

ISO-8601 expiry of the returned token. Present only alongside token.

Last modified on August 11, 2026