{
  "url": "https://telipot.com/catalog/capabilities/analytics.accounts.summaries",
  "id": "analytics.accounts.summaries",
  "description": "Analytics accounts and the properties under them, with their ids and types",
  "platform": "analytics",
  "providers": [
    {
      "slug": "google-analytics",
      "name": "Google Analytics 4"
    }
  ],
  "tasks": 1,
  "taskPages": [
    {
      "id": "google-analytics.accounts.summaries",
      "name": "Accounts with their property ids, names and types",
      "provider": {
        "slug": "google-analytics",
        "name": "Google Analytics 4"
      },
      "capability": "analytics.accounts.summaries",
      "platform": "analytics",
      "kind": "utility",
      "tier": "core",
      "identity": "account",
      "identityLabel": "Company account",
      "price": {
        "amount": "Free",
        "state": "free",
        "label": "Free",
        "detail": "Free from the tool",
        "type": "free"
      },
      "providers": 1,
      "retention": "standard",
      "runsOn": "free",
      "live": true,
      "summary": "Returns summaries of all accounts accessible by the caller.",
      "method": "GET",
      "path": "/v1beta/accountSummaries",
      "host": "https://analyticsadmin.googleapis.com",
      "docsUrl": "https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1beta/accountSummaries/list",
      "auth": {
        "scheme": "oauth",
        "label": "oauth · OAuth 2.0 with PKCE",
        "short": "oauth · OAuth 2.0"
      },
      "scope": "own_account",
      "principal": "organization",
      "requiredScopes": [
        "analytics.readonly"
      ],
      "verification": {
        "state": "none",
        "label": "Not verified yet",
        "detail": "Not checked yet. We test with a real request before we mark it."
      },
      "input": [
        {
          "name": "pageSize",
          "location": "queryParams",
          "type": "integer",
          "required": false,
          "constraints": [
            "1 to 200",
            "default 50"
          ],
          "note": "Accounts to return; a page may hold fewer even when more follow"
        },
        {
          "name": "pageToken",
          "location": "queryParams",
          "type": "string",
          "required": false,
          "constraints": [],
          "note": "The nextPageToken of the previous page"
        }
      ],
      "sampleInput": {},
      "inputSchema": {
        "type": "object",
        "properties": {
          "pageSize": {
            "type": "integer",
            "description": "Accounts to return; a page may hold fewer even when more follow",
            "default": 50,
            "minimum": 1,
            "maximum": 200
          },
          "pageToken": {
            "type": "string",
            "description": "The nextPageToken of the previous page"
          }
        },
        "additionalProperties": false
      },
      "output": [
        {
          "name": "accountSummaries",
          "type": "object[]",
          "description": "Absent when the connected account has no Analytics account"
        },
        {
          "name": "nextPageToken",
          "type": "string",
          "description": "Absent on the last page"
        }
      ],
      "outputSchema": {
        "type": "object",
        "properties": {
          "accountSummaries": {
            "type": "array",
            "description": "Absent when the connected account has no Analytics account",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "accountSummaries/<account id>"
                },
                "account": {
                  "type": "string",
                  "description": "accounts/<account id>"
                },
                "displayName": {
                  "type": "string"
                },
                "propertySummaries": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "property": {
                        "type": "string",
                        "description": "properties/<property id>; the digits after the slash are the propertyId that google-analytics tasks take"
                      },
                      "displayName": {
                        "type": "string"
                      },
                      "propertyType": {
                        "type": "string",
                        "description": "PROPERTY_TYPE_ORDINARY, PROPERTY_TYPE_SUBPROPERTY or PROPERTY_TYPE_ROLLUP"
                      },
                      "parent": {
                        "type": "string",
                        "description": "The account or property the property sits under"
                      }
                    }
                  }
                }
              }
            }
          },
          "nextPageToken": {
            "type": "string",
            "description": "Absent on the last page"
          }
        }
      },
      "example": {
        "file": "examples/google-analytics.accounts.summaries.json",
        "json": {
          "accountSummaries": [
            {
              "name": "accountSummaries/100200300",
              "account": "accounts/100200300",
              "displayName": "Example",
              "propertySummaries": [
                {
                  "property": "properties/123456789",
                  "displayName": "example.com",
                  "propertyType": "PROPERTY_TYPE_ORDINARY",
                  "parent": "accounts/100200300"
                },
                {
                  "property": "properties/987654321",
                  "displayName": "example.com staging",
                  "propertyType": "PROPERTY_TYPE_ORDINARY",
                  "parent": "accounts/100200300"
                }
              ]
            }
          ]
        }
      },
      "commands": {
        "mode": "inspect",
        "cli": "telipot inspect google-analytics.accounts.summaries",
        "http": "curl https://api.telipot.com/v1/tasks/google-analytics.accounts.summaries \\\n  -H \"Authorization: Bearer $TELIPOT_TOKEN\""
      },
      "siblings": []
    }
  ]
}
