REST APILinkLink Permissions

GET

Returns the calling user's effective Link permissions for the enterprise: the enterprise-wide bitgo.link.admin flag plus effective account-level admin / transfer / view scopes. Reveals only the caller's own permissions.

Path Params

  • enterpriseId string required
    Your enterprise id.

    at least 1 characters · matches ^[0-9a-f]{32}$

Header Params

  • user-id string required
    User id of the user making the request.

    at least 1 characters

Responses

200
OK

Response Body

object

The calling user's Link permissions for one enterprise. Each account scope is the permission as resolved by UMS (UMS already includes implied grants — e.g. a link.account.admin/transfer grant carries the implied link.account.view), so consumers only need membership checks. bitgoLinkAdmin is a distinct enterprise-wide capability, reported separately and not folded into the scopes.
  • bitgoLinkAdmin boolean required
    Enterprise-wide bitgo.link.admin grant. Drives non-account-scoped actions (e.g. "+ Link Account").
  • admin object
    link.account.admin (manage) scope, as resolved by UMS. Omitted when the user has no admin grant.

    ONE OF

    • scope string enum required
      ALL
  • transfer object
    link.account.transfer scope, as resolved by UMS. Omitted when the user has no transfer grant.

    ONE OF

    • scope string enum required
      ALL
  • view object
    link.account.view scope, as resolved by UMS (includes accounts implied by admin/transfer grants). Omitted when none.

    ONE OF

    • scope string enum required
      ALL
400
Bad Request
No response body
401
Unauthorized

Response Body

object

  • errorName string required
  • error string required
500
Internal Server Error

Response Body

object

  • errorName string required
  • error string required