跳转到主要内容
POST
Create a namespace

授权

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]+$

请求体

application/json
name
string
必填

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"

embedding_model
string

The embedding model: conare-embed-1 (leave the field out) or one of your organization's own models.

Minimum string length: 1

响应

The namespace exists with this model.

name
string
必填

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"

embedding_model
string
必填

The model that embeds the namespace.

rerank_model
string
必填

The model that reranks its queries.