---
title: "Start Google Search Console OAuth REST API | HitKeep"
description: "Reference for the HitKeep REST API operation Start Google Search Console OAuth, including request parameters, responses, and authentication notes."
canonical: "https://hitkeep.com/api/operations/apiuserteamsidintegrationsgoogle-search-consoleconnect/"
---

# Start Google Search Console OAuth REST API

POST

/api/user/teams/{id}/integrations/google-search-console/connect

FetchcURL

```
const url = 'http://127.0.0.1:25737/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 http://127.0.0.1:25737/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

- **[cookieAuth](https://hitkeep.com/api/#cookieauth)**

## Parameters

### Path Parameters

**id**

required

string format: uuid

## Request Bodyrequired

application/json

object

**return_path**

string

##### Examplegenerated

```
{
  "return_path": "example"
}
```

## Responses

### 200

Google Search Console OAuth URL

application/json

object

**auth_url**

required

string format: uri

##### Examplegenerated

```
{
  "auth_url": "https://example.com"
}
```

### 403

Access denied

application/json

object

**message**

string

##### Examplegenerated

```
{
  "message": "example"
}
```

### 412

Credentials missing

application/json

object

**message**

string

##### Examplegenerated

```
{
  "message": "example"
}
```

[Previous Disconnect Google Search Console](https://hitkeep.com/api/operations/apiuserteamsidintegrationsgoogle-search-console/)[Next List Google Search Console properties](https://hitkeep.com/api/operations/apiuserteamsidintegrationsgoogle-search-consoleproperties/)
