Connect

Connect the chosen Search Console site

Changed on

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.

post/v1/connect/googlesearchconsole/select-site

Request

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

Request body

pendingDataTokenstring required

Token from the headless redirect.

siteUrlstring required

A siteUrl from the sites list.

Example request

{
  "siteUrl": "sc-domain:acme.com"
}

Response

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

redirect_urlstring

Where to send the user next.

Example response

{
  "account": {
    "platform": "googlesearchconsole"
  }
}

Changes