Skip to navigation

Scopes

What a session may do, route by route

A grant’s scopes list what the session may do beyond reading. Read access is always included and is never listed.

ScopeGrants
(read, implied)Private reads: orders, fills, positions, balances, account data. Also deposits into the session’s own account.
tradeCreate, modify and cancel orders, batches and algo orders
account:settingsLeverage and margin type, market maker protection, max slippage and display settings
trade:rfqCreate, execute and cancel RFQs, use RFQ drafts and read RFQs, under the conditions below
trade:blockAccepted in a grant, but grants nothing yet: block trade writes are owner only

A grant that lists account:settings or trade:block lasts at most 7 days.

A grant that lists an unknown, reserved or repeated scope is refused with SCOPE_NOT_ALLOWED.

Creating, offering, executing or canceling block trades is reserved for the owner, so trade:block does not let a session trade today. Every session can read block trades.

How scopes are enforced

A session JWT is refused with 403 INVALID_TOKEN_SCOPE when:

  • the route requires a scope the grant does not list;
  • the route is reserved for the owner;
  • the route is not listed on this page;
  • the request names on_behalf_of_account;
  • the JWT authorizes accounts other than the one it was minted for.

A 403 is a refused action. It does not mean the session has ended. JWTs from main keys, subkeys and API tokens are not affected by scopes.

Routes by scope

Read (every session)

MethodRoute
GET/v1/account, /v1/account/summary, /v1/account/info, /v1/account/subaccounts, /v1/account/history
GET/v1/account/profile, /v1/account/settings, /v1/account/compliance, /v1/account/margin, /v1/account/mmp
GET/v1/balance, /v1/positions, /v1/fills, /v1/tradebusts, /v1/transactions, /v1/liquidations, /v1/funding/payments, /v1/transfers
GET/v1/orders, /v1/orders-history, /v1/orders/{order_id}, /v1/orders/by_client_id/{client_id}
GET/v1/algo/orders, /v1/algo/orders-history, /v1/algo/orders/{algo_id}
GET/v1/block-trades, /v1/block-trades/{block_trade_id}, /v1/block-trades/{block_trade_id}/offers, /v1/block-trades/{block_trade_id}/offers/{offer_id}
GET/v1/vaults/account-summary, /v1/vaults/mine
GET/v1/staking/history, /v1/staking/summary, /v1/staking/balance/history
GET/v1/referrals/summary, /v1/xp/transfers, /v1/xp/account-balance
GET/v1/deposit-addresses/{id}, /v1/bridges/layerswap/swaps/{swap_id}
GET, DELETE/v2/sessions/{grant_id}: the session itself only
GET/v2/passkeys: a passkey session sees its own passkey only
DELETE/v2/passkeys/{id}: a passkey session may revoke its own passkey only

Deposits (every session)

MethodRoute
POST/v1/deposit-addresses
POST/v1/bridges/layerswap/swaps: deposits only

A session can pay into the account it signed in to, and nothing else that moves value. It can create a deposit address, or a Layerswap swap into the account with use_deposit_address set to true and no source_address. A swap out of Paradex, or one without use_deposit_address, returns 403 INVALID_TOKEN_SCOPE. Withdrawals and transfers stay with the owner. Each session has its own deposit rate limit, separate from the owner’s and other sessions’.

trade

MethodRoute
POST/v1/orders, /v1/orders/batch
PUT/v1/orders/{order_id}
DELETE/v1/orders, /v1/orders/batch, /v1/orders/{order_id}, /v1/orders/by_client_id/{client_id}
POST/v1/algo/orders
DELETE/v1/algo/orders/{algo_id}

A session may modify only the orders it placed itself.

account:settings

MethodRoute
POST/v1/account/margin/{market}
POST/v1/account/mmp/{base_asset}, /v1/account/mmp/reset
DELETE/v1/account/mmp/{base_asset}
POST/v1/account/profile/market_max_slippage/{market}, /v1/account/profile/size_currency_display, /v1/account/profile/notifications/last_seen
POST/v1/account/settings/trading_value_display

A session cannot use /v1/account/margin/{market} to set isolated margin.

trade:rfq

Any session whose grant lists trade:rfq can use these routes:

MethodRoute
GET/v1/rfqs, /v1/rfqs/markets, /v1/rfqs/platform-state, /v1/rfqs/{rfq_id}/bbo
DELETE/v1/rfqs/{rfq_id}

These routes also require trade:rfq, and more besides:

MethodRoute
POST/v1/rfqs, /v1/rfqs/{rfq_id}/execute
GET, POST/v1/rfqs/drafts
DELETE/v1/rfqs/drafts/{draft_id}
POST/v1/account/paradigm/enable

An RFQ execution settles as a block trade, which session limits could not bound, so a session can use these routes only when:

  • its grant names no builder and caps nothing, with every limit "none" and markets ["*"]. Every grant without a builder meets this today;
  • RFQ for sessions is available for the account. Access may be limited during rollout.

Otherwise RFQ create, execute and drafts return 403 REQUEST_NOT_ALLOWED, and POST /v1/account/paradigm/enable returns 403 INVALID_TOKEN_SCOPE. An account that is not deployed on chain yet, such as one opened by its first grant and not funded, gets 400 NOT_ONBOARDED on every RFQ route.

A session cannot enable RFQ on an account: POST /v1/account/paradigm/enable only tells it whether the owner already has. The owner’s main key session makes the first call. A revoked session can no longer execute an RFQ, even one it created.

Owner only (no session)

MethodRoute
GET, DELETE/v2/sessions
PUT/v2/sessions/{grant_id}/ip-allowlist
POST/v2/account/subaccounts
POST, GET, PUT, DELETE/v1/account/keys/subkeys and every route below it
POST, GET, PUT, DELETE/v1/account/tokens and every route below it
POST/v2/passkeys/challenge with purpose registration. A session JWT gets 403 UNAUTHORIZED_ERROR here.
POST/v1/block-trades, /v1/block-trades/{block_trade_id}/offers, /v1/block-trades/{block_trade_id}/execute, /v1/block-trades/{block_trade_id}/offers/{offer_id}/execute
DELETE/v1/block-trades/{block_trade_id}, /v1/block-trades/{block_trade_id}/offers/{offer_id}
PUT/v1/account/profile
POST/v1/account/profile/username, /v1/account/profile/referral_code, /v1/account/profile/notifications, /v1/account/profile/refresh_inventory
POST/v1/account/referrer, /v1/account/compliance, /v1/xp/transfer

Any private route not listed on this page refuses session JWTs.