[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-25 UTC."],[[["\u003cp\u003eThis endpoint returns information about the authenticated user, such as account identifiers and kind.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/content\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes account identifiers, which can vary depending on the type of account (individual, aggregator, or subaccount).\u003c/p\u003e\n"],["\u003cp\u003eAccountIdentifier object provides details about the aggregator ID and merchant ID associated with the user.\u003c/p\u003e\n"]]],["This document details how to retrieve information about an authenticated user. A `GET` request to `https://shoppingcontent.googleapis.com/content/v2.1/accounts/authinfo` is used, with an empty request body. A successful response includes `accountIdentifiers`, an array of `AccountIdentifier` objects containing `aggregatorId` and `merchantId`, and the string `content#accountsAuthInfoResponse` as the `kind`. Authentication requires the `https://www.googleapis.com/auth/content` OAuth scope.\n"],null,["# Method: accounts.authinfo\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.AccountsAuthInfoResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [AccountIdentifier](#AccountIdentifier)\n - [JSON representation](#AccountIdentifier.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nReturns information about the authenticated user.\n\n### HTTP request\n\n`GET https://shoppingcontent.googleapis.com/content/v2.1/accounts/authinfo`\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"accountIdentifiers\": [ { object (/shopping-content/reference/rest/v2.1/accounts/authinfo#AccountIdentifier) } ], \"kind\": string } ``` |\n\n| Fields ||\n|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `accountIdentifiers[]` | `object (`[AccountIdentifier](/shopping-content/reference/rest/v2.1/accounts/authinfo#AccountIdentifier)`)` The account identifiers corresponding to the authenticated user. - For an individual account: only the merchant ID is defined - For an aggregator: only the aggregator ID is defined - For a subaccount of an MCA: both the merchant ID and the aggregator ID are defined. \u003cbr /\u003e |\n| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string \"`content#accountsAuthInfoResponse`\". |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/content`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2).\n\nAccountIdentifier\n-----------------\n\n| JSON representation |\n|----------------------------------------------------------|\n| ``` { \"aggregatorId\": string, \"merchantId\": string } ``` |\n\n| Fields ||\n|----------------|---------------------------------------------------------------------------------------------------------------------------------|\n| `aggregatorId` | `string` The aggregator ID, set for aggregators and subaccounts (in that case, it represents the aggregator of the subaccount). |\n| `merchantId` | `string` The merchant account ID, set for individual accounts and subaccounts. |"]]