---
title: "Create Doctags"
method: POST
path: "/api/document/doctag"
tags: ["document"]
---

# Create Doctags

`POST /api/document/doctag`

Apply a tag to one or more documents.

## Headers

- `workspace-key` string

## Request body

- CreateDocTagRequest — Apply a tag to one or more documents.
  - `tag_ext_id` string, required
  - `doc_ext_ids` string[], required
  - `note` string, nullable
  - `citations` object, nullable

## Response `200`

Successful Response

- DocTagResponse[]
  - `doc_ext_id` string, required
  - `tag_ext_id` string, required
  - `note` string, nullable
  - `citations` object, nullable
  - `created_by_ext_id` string, required
  - `updated_by_ext_id` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-01-07** `249354af19dc` — 2 info
  - added the new optional request property `citations`
  - added the optional property `items/citations` to the response with the `200` status
- **2025-12-03** `05f131dd000a` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/arbicity/apis/arbi/changes/api/document/doctag/post.md)

---

[API](https://skmtc.dev/arbicity/apis/arbi.md) · [All operations](https://skmtc.dev/arbicity/apis/arbi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/arbicity/arbi/revisions/1f956ac3d1c1/schema)
