Перейти до основного вмісту
POST
Add documents

Авторизації

Authorization
string
header
обов'язково

A key from conare.ai/dashboard/keys with full access, some namespaces, or models only (/embed, /rerank, /v1, /v2/rerank, /parse).

Заголовки

Idempotency-Key
string

One key (a UUID) per logical write, sent again on each retry: a repeat within 24 hours replays the first successful answer.

Required string length: 1 - 255
Pattern: ^[\x21-\x7e]+$

Параметри шляху

namespace
string
обов'язково

The namespace name. 1-64 characters of a-z 0-9 _ -, starting with a letter or digit.

Pattern: ^[a-z0-9][a-z0-9_-]{0,63}$
Приклади:

"docs"

"user-42"

Тіло

application/json
documents
object[]
обов'язково

The documents, each id once; the body is at most 32 MiB (33,554,432 bytes).

Required array length: 1 - 100 elements

Відповідь

The documents' ids, versions and results, in request order.

ids
string[]
обов'язково
versions
integer<int64>[]
обов'язково

Changes on every write that stores something new; compare for equality only.

Необхідний діапазон: x >= 1
results
object[]
обов'язково