> ## Documentation Index
> Fetch the complete documentation index at: https://docs.social-api.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List a Google login's Business Profile locations

> Lists every Business Profile location the login's stored credential can manage, live from Google, merged with assignment state. Locations added in Google Business Profile after the last authorization appear here without re-authenticating. assignable reflects tenancy only. login_email identifies the Google account itself, and is empty for a login authorized before it was captured.



## OpenAPI

````yaml /api-reference/openapi.json get /platforms/google/logins/{loginId}/locations
openapi: 3.0.0
info:
  description: >-
    Unified social media inbox API. Read and respond to comments, DMs, reviews,
    and mentions across Instagram, Facebook, Threads, Google Business Profile,
    TikTok, LinkedIn, and YouTube through a single REST API. X/Twitter and
    Trustpilot coming soon.
  title: SocialAPI.AI
  contact:
    name: SocialAPI.AI Support
    email: support@social-api.ai
  license:
    name: MIT
  version: '1.0'
servers:
  - url: https://api.social-api.ai/v1
security: []
paths:
  /platforms/google/logins/{loginId}/locations:
    get:
      tags:
        - Platforms
      summary: List a Google login's Business Profile locations
      description: >-
        Lists every Business Profile location the login's stored credential can
        manage, live from Google, merged with assignment state. Locations added
        in Google Business Profile after the last authorization appear here
        without re-authenticating. assignable reflects tenancy only. login_email
        identifies the Google account itself, and is empty for a login
        authorized before it was captured.
      parameters:
        - description: Google login (credential) ID
          name: loginId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/api_endpoints.GoogleLoginLocationsResponse
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '404':
          description: Unknown login
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    api_endpoints.GoogleLoginLocationsResponse:
      type: object
      properties:
        count:
          type: integer
          example: 3
        locations:
          type: array
          items:
            $ref: '#/components/schemas/api_endpoints.GoogleLocation'
        login_email:
          type: string
          example: joe@example.com
        login_id:
          type: string
          example: cred_01J...
        login_name:
          type: string
          example: joe@example.com
    api_endpoints.ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/api_endpoints.ErrorBody'
    api_endpoints.GoogleLocation:
      type: object
      properties:
        assignable:
          type: boolean
        assigned_account_id:
          type: string
        assigned_brand_id:
          type: string
        assigned_brand_name:
          type: string
        bio:
          type: string
          example: Wood-fired pizza since 1998
        name:
          type: string
          example: Joe's Pizza (Downtown)
        platform_account_id:
          type: string
          example: accounts/123/locations/456
    api_endpoints.ErrorBody:
      type: object
      properties:
        code:
          type: string
          example: resource.not_found
        message:
          type: string
          example: Account not found
        meta:
          type: object
          additionalProperties: {}
  securitySchemes:
    BearerAuth:
      description: >-
        Prefix your API key with "Bearer ". Example: `Authorization: Bearer
        sapi_key_...`
      type: apiKey
      name: Authorization
      in: header

````