跳转到主要内容
POST

授权

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
type
string
必填

A type from GET /sources/types.

namespace
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"

name
string

Display name; defaults to the app's name.

Maximum string length: 100
redirect_url
string<uri>
sync_interval_s
integer | null

Seconds between syncs; null or absent is the automatic interval.

必填范围: 300 <= x <= 2592000
示例:

3600

config
object

Twenty, Granola and GitHub only; stored encrypted and never returned.

响应

The new source and its connect_url (none for Twenty, Granola and GitHub).

source
object
必填
connect_url
string<uri>