Connect
List Search Console sites for a pending connect
Changed onFor headless flows: lists the verified Search Console sites of a pending connect, so you can show your own picker.
Flow
- The connect started with redirect_url=...?headless=true, and the Google account has several verified sites.
- Zernio redirects to your redirect_url with step=select_site, profileId, platform=googlesearchconsole and a pendingDataToken.
- Call this to list the sites and show your own picker.
- 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 URLhttps://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
- info
endpoint added
- info