---
type: api
title: Create a connector
description: Connectors are Elasticsearch integrations that bring content from third-party data sources, which can be deployed on Elastic Cloud or hosted on your own infrastructure.
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/elasticsearch/v9/operation/operation-connector-post
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/elasticsearch/v9/operation/operation-connector-post
products:
  - Elasticsearch
---

# Create a connector

Authentication: required

Availability: Beta since 8.12

## Paths

- `POST` `/_connector`

## Description

Connectors are Elasticsearch integrations that bring content from third-party data sources, which can be deployed on Elastic Cloud or hosted on your own infrastructure.
Elastic managed connectors (Native connectors) are a managed service on Elastic Cloud.
Self-managed connectors (Connector clients) are self-managed on your infrastructure.

## Request body

`application/json`

- `description` (string) — optional
- `index_name` (string) — optional
- `is_native` (boolean) — optional
- `language` (string) — optional
- `name` (string) — optional
- `service_type` (string) — optional

## Response

`application/json`

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

#### Console

```console
POST /_connector
{}
```

#### curl

```curl
curl -X POST "${ELASTICSEARCH_URL}/_connector" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Response examples

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "result": "created",
  "id": "string"
}
```

