---
title: "Index Text"
method: POST
path: "/api/folders/index"
tags: ["domains"]
---

# Index Text

`POST /api/folders/index`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/folders/index`
- Auth: none declared

Index raw text content into a folder.

If library_id is set, the caller must be a contributor or admin.
If omitted, the content is indexed as personal content for the
caller.

## Headers

- `x-impersonate-identity-id` string, nullable

## Request body

- IndexTextRequest: Index raw text content into a folder.
  - `content` string, required
  - `title` string, nullable
  - `library_id` union
    - string, uuid
    - string
  - `tags` string[]
  - `mind_mode` 'immediate' | 'first_save' | 'never'
  - `source_time` SourceTime: When source content happened, was observed, and entered thinqOS.
    - `occurred_at` string, date-time, nullable
    - `observed_at` string, date-time, nullable
    - `recorded_at` string, date-time, nullable
    - `precision` 'instant' | 'day' | 'month' | 'year', nullable
    - `provenance` 'stated' | 'parsed_from_title' | 'parsed_from_body' | 'inferred' | 'unknown'
    - `timezone` string, nullable
    - `evidence` string, nullable

## Response `200`

Successful Response

- IndexResultResponse
  - `document_id` string, uuid, required
  - `status` string, required

## Other responses

- `422`: Validation Error

---

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