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

# Start connecting Search Console

> Returns the Google consent URL. Google sends the person back to the dashboard, which returns them to returnTo.



## OpenAPI

````yaml https://api.seomator.com/openapi.json post /v1/projects/{id}/gsc/authorize
openapi: 3.1.0
info:
  title: SEOmator API
  version: 0.1.0
servers:
  - url: https://api.seomator.com
security: []
paths:
  /v1/projects/{id}/gsc/authorize:
    post:
      tags:
        - ai visibility
      summary: Start connecting Search Console
      description: >-
        Returns the Google consent URL. Google sends the person back to the
        dashboard, which returns them to returnTo.
      parameters:
        - schema:
            type: string
            description: Project id (proj_…) or slug (the domain with dots as dashes).
          required: true
          description: Project id (proj_…) or slug (the domain with dots as dashes).
          name: id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                returnTo:
                  type: string
                  maxLength: 500
              required:
                - returnTo
      responses:
        '200':
          description: Consent URL
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                required:
                  - url
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Try again later
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - bad_request
                - unauthorized
                - insufficient_credits
                - plan_limit
                - forbidden
                - not_found
                - conflict
                - rate_limit_exceeded
                - internal_server_error
                - service_unavailable
            message:
              type: string
            requestId:
              type: string
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````

## Related topics

- [Projects: set up, track and manage a site](https://docs.seomator.com/getting-started/projects.md)
- [Query Search Console clicks, impressions, CTR and position](https://docs.seomator.com/api-reference/search-console/query-search-console-clicks-impressions-ctr-and-position.md)
- [Pick the Search Console property](https://docs.seomator.com/api-reference/ai-visibility/pick-the-search-console-property.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.