Skip to navigation

Register a passkey

Registers a passkey that can open trading sessions on the account without a wallet, within a ceiling the account owner signs once. A passkey is never the account’s login or owner: its sessions can trade within the ceiling but can never withdraw or transfer funds, approve a builder, change the ceiling or register another passkey.

grant is the PasskeyGrant message exactly as signed, with its camelCase field names. EVM-owned accounts sign it as EIP-712 (signature_type eip712, with the wallet’s current chain as signature_chain_id); Stark-owned accounts sign it as SNIP-12 (snip12) with their main key. credential is the navigator.credentials.create response to a registration challenge, and must be the credential the grant names.

Passkeys cover the main account only. A passkey’s ceiling allows the trade, trade:rfq and account:settings scopes, sessions of at most 7 days (24 hours by default) and at most 5 live sessions at once; the passkey itself expires after at most 180 days. Every ceiling limit is stated, as a positive number or none, and markets lists symbols or is ["*"]. A number is accepted only for the limits the server enforces; every other limit must be none, and markets ["*"]. Limits are shared by every session the passkey opens.

ErrorMeaning
INVALID_SIGNATUREThe signature is not the account owner’s, or does not match signature_type.
GRANT_EXPIREDexpiresAt has passed, or issuedAt is outside the accepted window.
INVALID_ENVIRONMENTThe grant is for another environment.
INVALID_CHAINThe grant is for another Paradex chain.
SCOPE_NOT_ALLOWEDThe ceiling lists a scope a passkey may not carry.
LIMIT_INVALIDA limit is malformed, not none where the server does not enforce it, or over the server ceiling, or the passkey expiry is too long.
INVALID_GRANTThe grant is malformed, or its session length or session count is over the cap.
ACCOUNT_NOT_ELIGIBLEThe account is not a main account, or the ceiling lists subaccounts.
ETHEREUM_ADDRESS_BLOCKEDThe account is blocked.
INVALID_PASSKEY_CREDENTIALThe WebAuthn response is invalid or is not the credential the grant names.
PASSKEY_ORIGIN_NOT_ALLOWEDThe page origin is not allowed for the rpId.
PASSKEY_RP_ID_NOT_ALLOWEDThe rpId is not allowed.
PASSKEY_CHALLENGE_INVALIDThe challenge is unknown, expired or already used.
PASSKEY_ALREADY_REGISTEREDThe credential, or the grant’s nonce, is already registered.
PASSKEYS_DISABLEDPasskeys are not enabled for this account.
SESSIONS_DISABLEDSessions are not enabled for this account.

Request

The signed PasskeyGrant and the WebAuthn registration
credentialobjectRequired
The PublicKeyCredential JSON from navigator.credentials.create.
grantobjectRequired
The signed PasskeyGrant exactly as signed, with its camelCase field names.
signaturestringRequired

The owner’s signature: one 0x-hex r||s||v string for eip712; for snip12 the string ’[“0xr”,“0xs”]’, as orders carry it (a bare [r, s] array is also accepted).

signature_typeenumRequired

eip712 for EIP-191 (EVM-owned) accounts, snip12 for Stark-owned accounts.

Allowed values:
signature_chain_idintegerOptional

The EIP-712 domain chainId the wallet signed with. Required for eip712, ignored for snip12.

Response

OK
aaguidstringOptional

Authenticator model, for display; may be all zeros.

backup_eligiblebooleanOptional

Whether the passkey can be synced (WebAuthn backup eligibility).

ceilingobjectOptional
created_atintegerOptional
Registration time in milliseconds.
credential_idstringOptional
WebAuthn credential id, base64url.
expires_atintegerOptional
Passkey expiry in milliseconds.
idintegerOptional
labelstringOptional
last_used_atintegerOptional

Last session mint in milliseconds; null before the first.

live_sessionsintegerOptional
Live sessions the passkey has open.
revoked_atintegerOptional

Revocation time in milliseconds; null while not revoked.

revoked_reasonenumOptional

Why the passkey was revoked; omitted while not revoked.

Allowed values:
rp_idstringOptional
stateenumOptional
Allowed values:
syncedbooleanOptional

Whether the passkey is synced across devices (WebAuthn backup state).

Errors

400
Bad Request Error
403
Forbidden Error
503
Service Unavailable Error