---
title: "Request Search Console sync REST API | HitKeep"
description: "Reference for the HitKeep REST API operation Request Search Console sync, including request parameters, responses, and authentication notes."
canonical: "https://hitkeep.com/api/operations/apisitesidintegrationsgoogle-search-consolesync/"
---

# Request Search Console sync REST API

POST

/api/sites/{id}/integrations/google-search-console/sync

FetchcURL

```
const url = 'http://127.0.0.1:25737/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/integrations/google-search-console/sync';
const options = {method: 'POST', 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 POST \
  --url http://127.0.0.1:25737/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/integrations/google-search-console/sync \
  --cookie hk_token=<hk_token>
```

-

Queues a manual Search Console import for the mapped site and returns the current mapping sync status.

## Authorizations

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

## Parameters

### Path Parameters

**id**

required

string format: uuid

## Responses

### 200

Google Search Console site mapping

application/json

object

**can_manage**

required

boolean

**mapped**

required

boolean

**mapped_at**

string format: date-time

**property_permission_level**

string

**property_uri**

string

**site_id**

required

string format: uuid

**sync_status**

object

**imported_end_date**

string format: date

**imported_start_date**

string format: date

**last_attempt_at**

string format: date-time

**last_error_category**

string

**last_success_at**

string format: date-time

**manual**

required

boolean

**next_retry_at**

string format: date-time

**state**

required

string

Allowed values: pending running succeeded failed needs_attention

**team_id**

required

string format: uuid

##### Example

```
{
  "sync_status": {
    "state": "pending"
  }
}
```

### 403

Access denied

application/json

object

**message**

string

##### Examplegenerated

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

### 412

Google Search Console is not connected or the site is not mapped

application/json

object

**message**

string

##### Examplegenerated

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

[Previous Unmap Search Console property](https://hitkeep.com/api/operations/apisitesidintegrationsgoogle-search-consoleproperty/delete/)[Next Disconnect Google Search Console](https://hitkeep.com/api/operations/apiuserteamsidintegrationsgoogle-search-console/)
