Connect

List Search Console sites for a pending connect

Changed on

For headless flows: lists the verified Search Console sites of a pending connect, so you can show your own picker.

Flow

  1. The connect started with redirect_url=...?headless=true, and the Google account has several verified sites.
  2. Zernio redirects to your redirect_url with step=select_site, profileId, platform=googlesearchconsole and a pendingDataToken.
  3. Call this to list the sites and show your own picker.
  4. Call POST /v1/connect/googlesearchconsole/select-site.

Token

  • Listing does not consume the token.
  • A headless token passes through your own URLs, so it is honored only together with your API key (or connect token) for the same profile.
  • It expires after one hour.
get/v1/connect/googlesearchconsole/sites

Request

  • Base URL
    https://zernio.com/api
  • Auth
    • HTTP bearer
    • or API key in header X-Connect-Token

Query parameters

pendingDataTokenstring required

Token from the headless redirect.

Response

Sites the Google account can read

Example response

{
  "sites": [
    {
      "siteUrl": "sc-domain:acme.com"
    }
  ]
}

Changes