Relyingparty: getAccountInfo

Returns the account info.

Request

HTTP request

POST https://www.googleapis.com/identitytoolkit/v3/relyingparty/getAccountInfo

Request body

In the request body, supply data with the following structure:

{
  "idToken": string,
  "localId": [
    string
  ],
  "email": [
    string
  ]
}
Property name Value Description Notes
idToken string The GITKit token of the authenticated user.
localId[] list The list of local ID's of the users to inquiry.
email[] list The list of emails of the users to inquiry.

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "identitytoolkit#GetAccountInfoResponse",
  "users": [
    {
      "localId": string,
      "email": string,
      "emailVerified": boolean,
      "displayName": string,
      "providerUserInfo": [
        {
          "providerId": string,
          "displayName": string,
          "photoUrl": string,
          "federatedId": string
        }
      ],
      "photoUrl": string,
      "passwordHash": bytes,
      "salt": bytes,
      "version": integer,
      "passwordUpdatedAt": double
      "validSince": string
    }
  ]
}
Property name Value Description Notes
kind string The fixed string "identitytoolkit#GetAccountInfoResponse".
users[] list The info of the users.
users[].localId string The local ID of the user.
users[].email string The email of the user.
users[].displayName string The name of the user.
users[].photoUrl string The URL of the user profile photo.
users[].salt bytes The user's password salt.
users[].version integer Version of the user's password.
users[].passwordUpdatedAt double The timestamp when the password was last updated.
users[].validSince string The timestamp, in seconds, which marks a boundary, before which Firebase ID token are considered revoked.
users[].providerUserInfo[] list The IDP of the user.
users[].providerUserInfo[].providerId string The IdP ID. For white listed IdPs it's a short domain name, e.g., google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
users[].providerUserInfo[].displayName string The user's display name at the IDP.
users[].providerUserInfo[].photoUrl string The user's photo url at the IDP.
users[].emailVerified boolean Whether the email has been verified.
users[].providerUserInfo[].federatedId string User's identifier at IDP.
users[].passwordHash bytes The user's hashed password.