Перейти до основного вмісту
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>