Start Google Search Console OAuth
POST
/api/user/teams/{id}/integrations/google-search-console/connect
const url = 'https://hitkeep.com/api/user/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/integrations/google-search-console/connect';const options = { method: 'POST', headers: {cookie: 'hk_token=<hk_token>', 'Content-Type': 'application/json'}, body: '{"return_path":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://hitkeep.com/api/user/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/integrations/google-search-console/connect \ --header 'Content-Type: application/json' \ --cookie hk_token=<hk_token> \ --data '{ "return_path": "example" }'Creates a state-bound read-only Google Search Console OAuth URL for the team.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
Request Body required
Section titled “Request Body required ” Media type application/json
object
return_path
string
Example generated
{ "return_path": "example"}Responses
Section titled “ Responses ”Google Search Console OAuth URL
Media type application/json
object
auth_url
required
string format: uri
Example generated
{ "auth_url": "https://example.com"}Access denied
Media type application/json
object
message
string
Example generated
{ "message": "example"}Credentials missing
Media type application/json
object
message
string
Example generated
{ "message": "example"}