> ## 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.

# Select a Google Business Profile to connect

> Promotes exactly one candidate Profile from a pending connection into a connected account. First selection wins; the pending connection is then consumed.



## OpenAPI

````yaml /api-reference/openapi.json post /accounts/pending/{connection_id}/select
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:
  /accounts/pending/{connection_id}/select:
    post:
      tags:
        - Accounts
      summary: Select a Google Business Profile to connect
      description: >-
        Promotes exactly one candidate Profile from a pending connection into a
        connected account. First selection wins; the pending connection is then
        consumed.
      parameters:
        - description: Pending connection ID
          name: connection_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/api_endpoints.SelectProfileRequest'
        description: Chosen platform_account_id
        required: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ConnectAccountResponse'
        '400':
          description: platform_account_id not in the candidate set
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '404':
          description: Unknown, expired, or not owner
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    api_endpoints.SelectProfileRequest:
      type: object
      properties:
        platform_account_id:
          type: string
          example: accounts/123/locations/456
    api_endpoints.ConnectAccountResponse:
      type: object
      properties:
        account_id:
          type: string
          example: acc_01HZ9X3Q4R5M6N7P8V2K0W1J
        display_name:
          type: string
          example: Acme Corp
        platform:
          type: string
          example: instagram
        username:
          type: string
          example: acmecorp
    api_endpoints.ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/api_endpoints.ErrorBody'
    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

````