REST APIEnterpriseUser

POST

Unlocks the current user session, enabling operations that require an unlocked token, such as sending a transaction. Call this endpoint if an API returns a 401 response with the needsUnlock body parameter set to true.

Note: Unlocking a token with spending limits, removes all spending limits from the token.

Body Params

object

  • duration integer
    Number of seconds that the session will stay unlocked

    >= 1 · <= 3600

    Defaults to 600

  • otp string
    Second factor authentication token

Responses

200
OK

Response Body

object

  • session object
    session object
    • created string date-time required
    • expires string date-time required
    • id string required

      matches ^[0-9a-f]{32}$

    • ip string ipv4
      IP address of the client that requested this access token
    • ipRestrict array of strings
      IP addresses or CIDR block of clients that are allowed to use this token
    • origin string required
      BitGo environment that issued this token
    • scope array of strings required
      Session permissions
    • unlock object
      The Unlock object, returned if this session is currently unlocked.
      unlock object
      • time string date-time
      • expires string date-time
      • txCount integer
      • txValue integer
      • txValueLimit number
      • spendingLimits map of objects
        spendingLimits object
        • <key> object
          value object
          • txCount integer
          • txValue integer
          • txValueLimit number
    • user string required

      matches ^[0-9a-f]{32}$