الانتقال إلى المحتوى الرئيسي
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>