admin

Get Gsc Oauth Url

Return the Google OAuth authorization URL for Search Console.

CLI flow: cli_port is carried in state so the callback redirects back to the CLI. Web flow: origin (frontend host) + site_id + the logged-in user_email are signed into state so the callback returns the user to the right site AND attaches the GSC token to THEIR account — even for email/OTP users whose Google (used for the GSC consent) isn't their login. user_email must be HMAC-signed with AGENT_API_KEY (only the frontend, which holds that key, can vouch for a logged-in identity).

get/admin/gsc/auth-url

Request

  • Base URL: https://api.xeorank.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.xeorank.com/admin/gsc/auth-url
  • Auth: none declared

Query parameters

cli_portinteger nullable
originstring
site_idstring
return_tostring
user_emailstring
user_sigstring

Response

Successful Response

auth_urlstring required

Changes

No recorded changes to this operation across all 1 revision of this API.