Accounts

Get account policy

Changed on

Returns the account-scoped policy applied to an account. accountPolicyId is omitted when no policy is applied.

get/v2/accounts/{accountId}/policy

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    HTTP bearer

Path parameters

accountId, string required

The ID of the Account, which is a UUID prefixed by the string account_.

Example:account_af2937b0-9846-4fe7-bfe9-ccc22d935114

The ID of the account whose policy to get.

Response

Successfully got account policy.

AppliedAccountPolicy required

The policy applied to an account, if any. accountPolicyId is omitted when no policy is applied.

accountId, string required

The ID of the Account, which is a UUID prefixed by the string account_.

accountPolicyId, string

The ID of an account-scoped policy.

Example response

{
  "accountId": "account_af2937b0-9846-4fe7-bfe9-ccc22d935114",
  "accountPolicyId": "123e4567-e89b-12d3-a456-426614174000"
}

Changes