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

# Complete Google Search Console OAuth REST API

GET

/api/integrations/google-search-console/oauth/callback

FetchcURL

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

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

## Parameters

### Query Parameters

**state**

required

string

**code**

required

string

## Responses

### 302

Redirects to the integration page.

### 400

Invalid OAuth state or callback

application/json

object

**message**

string

##### Examplegenerated

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

### 502

OAuth exchange failed

application/json

object

**message**

string

##### Examplegenerated

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

[Previous Queue site webhook test](https://hitkeep.com/api/operations/apisitesidwebhookswebhookidtest/)[Next Get site Search Console mapping](https://hitkeep.com/api/operations/apisitesidintegrationsgoogle-search-console/)
