---
type: api
title: Check in a connector
description: Update the `last_seen` field in the connector and set it to the current timestamp.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/elasticsearch/v8/operation/operation-connector-check-in
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/elasticsearch/v8/operation/operation-connector-check-in
products:
  - Elasticsearch
---

# Check in a connector

Availability: Preview since 8.12

## Paths

- `PUT` `/_connector/{connector_id}/_check_in`

#### Path parameters

- `connector_id` (string) — required
  The unique identifier of the connector to be checked in

## Description

Update the `last_seen` field in the connector and set it to the current timestamp.

## 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/guide/en/elasticsearch/reference/current/token-authentication-services.html)

## Response

`application/json`

- `result` (enum)
  Values: `created`, `updated`, `deleted`, `not_found`, `noop`
## Code examples

#### Console

```console
PUT _connector/my-connector/_check_in
```

#### JavaScript

```javascript
const response = await client.connector.checkIn({
  connector_id: "my-connector",
});
```

#### Python

```python
resp = client.connector.check_in(
    connector_id="my-connector",
)
```

#### curl

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

#### Java

```java
client.connector().checkIn(c -> c
    .connectorId("my-connector")
);
```

#### PHP

```php
$resp = $client->connector()->checkIn([
    "connector_id" => "my-connector",
]);
```

#### Ruby

```ruby
response = client.connector.check_in(
  connector_id: "my-connector"
)
```

## Response examples

#### Connector check in response example1

```json
{
    "result": "updated"
}
```

