Start Google Search Console OAuth REST API
POST
/api/user/teams/{id}/integrations/google-search-console/connect
const url = 'https://app.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://app.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 Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
return_path
string
Examplegenerated
{ "return_path": "example"}Responses
Section titled “Responses”Google Search Console OAuth URL
Media typeapplication/json
object
auth_url
required
string format: uri
Examplegenerated
{ "auth_url": "https://example.com"}Access denied
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}Credentials missing
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}