Complete Google Search Console OAuth
GET
/api/integrations/google-search-console/oauth/callback
const url = 'https://hitkeep.com/api/integrations/google-search-console/oauth/callback?state=example&code=example';const options = {method: 'GET', headers: {cookie: 'hk_token=<hk_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://hitkeep.com/api/integrations/google-search-console/oauth/callback?state=example&code=example' \ --cookie hk_token=<hk_token>Completes the authenticated Google Search Console OAuth callback.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” state
required
string
code
required
string
Responses
Section titled “ Responses ”Redirects to the integration page.
Invalid OAuth state or callback
Media type application/json
object
message
string
Example generated
{ "message": "example"}OAuth exchange failed
Media type application/json
object
message
string
Example generated
{ "message": "example"}