---
title: "Connect the chosen Search Console site"
method: POST
path: "/v1/connect/googlesearchconsole/select-site"
tags: ["Connect"]
---

# Connect the chosen Search Console site

`POST /v1/connect/googlesearchconsole/select-site`

## Request

- Base URL: `https://zernio.com/api`
- URL: `https://zernio.com/api/v1/connect/googlesearchconsole/select-site`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Connect-Token`

For headless flows. Connects the site the user picked as a `googlesearchconsole` account and returns where to send the user next.

- On success: your `redirect_url` with `connected=googlesearchconsole`, `profileId`, `accountId` and `username`.
- When the connect was refused (for example a billing block): an `error`.

Consumes the `pendingDataToken`; a refused or failed attempt leaves it usable for a retry.

Send your API key (or connect token) for the same profile with a headless token.

## Request body

- object
  - `pendingDataToken` string, required: Token from the headless redirect.
  - `siteUrl` string, required: A siteUrl from the sites list.

## Response `200`

The site is connected, or the connect was refused with a reason in redirect_url

- object
  - `redirect_url` string: Where to send the user next.
  - `account` object, nullable: The connected account, or null when the connect was refused.
    - `accountId` string
    - `platform` string
    - `username` string
    - `displayName` string

## Other responses

- `400`: Invalid request
- `403`: The connect token was issued for a different profile or platform (INSUFFICIENT_PERMISSIONS).
- `404`: The pending sign-in expired or was already used. Start the connect again.
- `500`: Google or Zernio failed while saving. The pendingDataToken stays usable; retry.

## Changes

- **2026-11-18** `d79b66285ac5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zernio/apis/zernio-api/changes/v1/connect/googlesearchconsole/select-site/post.md)

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) - [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/518557544cb4?raw)
