Method: accounts.list

Full name: accounts.list

Lists all GTM Accounts that a user has access to.

HTTP request

GET https://tagmanager.googleapis.com/tagmanager/v2/accounts

Query parameters

Parameters
includeGoogleTags

boolean

Also retrieve accounts associated with Google Tag when true.

pageToken

string

Continuation token for fetching the next page of results.

Request body

The request body must be empty.

Response body

List Accounts Response.

If successful, the response body contains data with the following structure:

JSON representation
{
  "account": [
    {
      object (Account)
    }
  ],
  "nextPageToken": string
}
Fields
account[]

object (Account)

List of GTM Accounts that a user has access to.

nextPageToken

string

Continuation token for fetching the next page of results.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/tagmanager.edit.containers
  • https://www.googleapis.com/auth/tagmanager.manage.accounts
  • https://www.googleapis.com/auth/tagmanager.readonly

For more information, see the OAuth 2.0 Overview.