Passer au contenu principal
POST

Autorisations

Authorization
string
header
requis

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

En-têtes

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

Corps

application/json
type
string
requis

A type from GET /sources/types.

namespace
string
requis

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

Pattern: ^[a-z0-9][a-z0-9_-]{0,63}$
Exemples:

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

Plage requise: 300 <= x <= 2592000
Exemple:

3600

config
object

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

Réponse

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

source
object
requis
connect_url
string<uri>