---
title: "POST /v1/documents/import"
method: POST
path: "/v1/documents/import"
---

# POST /v1/documents/import

`POST /v1/documents/import`

## Request

- Base URL: `https://thumbgate.ai`
- URL: `https://thumbgate.ai/v1/documents/import`
- Auth: HTTP bearer

## Request body

- object
  - `filePath` string
  - `content` string
  - `title` string
  - `sourceFormat` 'markdown' | 'text' | 'yaml' | 'json' | 'html'
  - `sourceUrl` string
  - `tags` string[]
  - `proposeGates` boolean

## Response `201`

Document imported

## Other responses

- `400`: Invalid document import request
- `401`: Unauthorized

---

[API](https://skmtc.dev/thumbgate/apis/thumbgate-api.md) · [All operations](https://skmtc.dev/thumbgate/apis/thumbgate-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thumbgate/apis/thumbgate-api/revisions/7f57f2edcd23?raw)
