latestOpenAPI 3.0.32026-08-224982,0272.8 MB

e445c15e5bee

User

Delete access token

Revokes an access token by setting its expiration to the current time. The token can no longer be used for authentication. Returns the expired token document.

delete/api/v2/user/accesstoken/{token}

Path parameters

tokenstring required
Example:59cd72485007a239fb00282ed480da1f

The public ID of the access token to revoke (32-character lowercase hex string).

Response

OK

idstring required
isExtensibleboolean required
adminScope'read' | 'full'
bitgoAdminPermissionsstring[]
clientstring
createdstring date-time
enterprisestring
expiresstring date-time
extensionAddressstring
ipstring ipv4

IP address of the client that requested this access token

ipRestrictstring[]
labelstring
originstring

BitGo environment that issued this token

tokenstring
scopestring[]
userstring
isMobileAccessTokenboolean

Flag indicating if this token was created via mobile session endpoint

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"
}