---
title: "POST /{index}/_doc/"
method: POST
path: "/{index}/_doc/"
---

# POST /{index}/_doc/

`POST /{index}/_doc/`

Adds a JSON document to the specified index and makes it searchable.

## Request body

- Document
  - `tags` string[]
  - `content` string
  - `title` string
  - `lang` string
  - `unique_key` string
  - `metadata` object

## Response `200`

OK

- ModifyResponse
  - `result` string
  - `_primary_term` integer
  - `_seq_no` integer
  - `_version` integer
  - `_id` string
  - `_type` string
  - `_index` string
  - `_shards` object
    - `total` integer
    - `failed` integer
    - `successful` integer

## Other responses

- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/future-architect/apis/watertower.md) · [All operations](https://skmtc.net/future-architect/apis/watertower/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/future-architect/watertower/versions/8c0a4ed18801/schema)
