latestOpenAPI 3.0.32026-08-224982,0272.8 MB
e445c15e5bee
User
Create access token
Create an access token to use BitGo APIs. BitGo restricts access tokens in the production environment to specific IP addresses. However, access tokens in the test environment don't require an IP address restriction. If you omit a spending limit, you must unlock the token using the Unlock session endpoint on a regular basis to permit operations such as withdrawals. Therefore, BitGo recommends including a spending limit.
post/api/v2/user/accesstoken
Request body
Example request
{
"spendingLimits": [
{
"coin": "btc"
}
]
}Response
OK
Example response
{
"id": "59cd72485007a239fb00282ed480da1f",
"ip": "127.0.0.1",
"origin": "test.bitgo.com",
"scope": [
"crypto_compare",
"user_manage",
"openid",
"profile",
"wallet_create",
"wallet_manage_all",
"wallet_approve_all",
"wallet_spend_all",
"wallet_edit_all",
"wallet_view_all"
],
"user": "59cd72485007a239fb00282ed480da1f"
}