---
type: api
title: Check in a connector sync job
description: Check in a connector sync job and set the `last_seen` field to the current time before updating it in the internal index.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-check-in
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-check-in
products:
  - Elasticsearch
---

# Check in a connector sync job

Availability: Experimental

## Paths

- `PUT` `/_connector/_sync_job/{connector_sync_job_id}/_check_in`

#### Path parameters

- `connector_sync_job_id` (string) — required
  The unique identifier of the connector sync job to be checked in.

## Description

Check in a connector sync job and set the `last_seen` field to the current time before updating it in the internal index.

To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure.
This service runs automatically on Elastic Cloud for Elastic managed connectors.

## Authentication

- Api key: `Authorization: <value>`
  Elasticsearch APIs support key-based authentication.
  You must create an API key and use the encoded value in the request header.
  For example:
  
  
  ```
  curl -X GET "${ES_URL}/_cat/indices?v=true" \
    -H "Authorization: ApiKey ${API_KEY}"
  ```
  
  To get API keys, use the `/_security/api_key` APIs.
- Basic: `Authorization: Basic <credentials>`
- Bearer: `Authorization: Bearer <token>`
  Elasticsearch APIs support the use of bearer tokens in the `Authorization` HTTP header to authenticate with the API.
  For examples, refer to [Token-based authentication services](https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/token-based-authentication-services)

## Response

`application/json`

Type: `object`

## Code examples

#### Console

```console
PUT _connector/_sync_job/my-connector-sync-job/_check_in
```

#### JavaScript

```javascript
const response = await client.connector.syncJobCheckIn({
  connector_sync_job_id: "my-connector-sync-job",
});
```

#### Python

```python
resp = client.connector.sync_job_check_in(
    connector_sync_job_id="my-connector-sync-job",
)
```

#### curl

```curl
curl -X PUT "$ELASTICSEARCH_URL/_connector/_sync_job/my-connector-sync-job/_check_in" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY"
```

#### Java

```java
client.connector().syncJobCheckIn(s -> s
    .connectorSyncJobId("my-connector-sync-job")
);
```

#### PHP

```php
$resp = $client->connector()->syncJobCheckIn([
    "connector_sync_job_id" => "my-connector-sync-job",
]);
```

#### Ruby

```ruby
response = client.connector.sync_job_check_in(
  connector_sync_job_id: "my-connector-sync-job"
)
```

