Create access token template

post/api/v2/user/accesstokentemplate

Creates a reusable access token template for the authenticated user.

Request Body

name string required
Display name for the template (must be unique per user)
enterpriseId string
Scope the template to a specific enterprise; user must be a member of the enterprise
tokenScopes array[string]
OAuth scopes to grant when tokens are created from this template
Allowed values: openid openid_enterprises profile user_manage enterprise_view_all enterprise_manage_all auditlogs_view_all wallet_view wallet_view_enterprise wallet_view_all wallet_create wallet_freeze wallet_freeze_all wallet_manage wallet_manage_all wallet_approve wallet_approve_all wallet_spend wallet_spend_all wallet_edit wallet_edit_all wallet_stake wallet_stake_all wallet_edit_enterprise wallet_spend_enterprise wallet_approve_enterprise wallet_manage_enterprise settlement_network_read settlement_network_write portfolio_view trade_view trade_trade trade_fix pending_approval_update metamask_institutional crypto_compare third_party_user_lookup private_verify_email scim all
allowedIPs array[string]
IP addresses allowed to use tokens created from this template
tokenLimits object
Spending limits to apply when tokens are created from this template
allErc20TokensLimit object
spendingLimits array[object]

200 Response

id string required
name string required
userId string required
enterpriseId string
tokenScopes array[string]
allowedIPs array[string]
tokenLimits object
spendingLimits array[object]
allErc20TokensLimit object
createdAt string <date-time>
updatedAt string <date-time>

400 Response

name string
Error code
context object required
Properties that apply to a specific error name
error string required
Human-readable error message
requestId string required
Client request id

401 Response

name string
Error code
context object required
Properties that apply to a specific error name
error string required
Human-readable error message
requestId string required
Client request id

409 Response

name string
Error code
context object required
Properties that apply to a specific error name
error string required
Human-readable error message
requestId string required
Client request id