Reference / Sources and connections

Create a source connection

create_connectionocmgr connection createPOST /v1/connectionsADMIN

Create a connection with validated config and optional vault-encrypted credentials. For CSV uploads set config.browserUpload:true and config.columns to the reviewed propose_csv_mapping columns. Returns credential names only. An owner authorizes OAuth sources through connect_connection.

Parameters

kindstringREQUIRED

Registered connector name.

namestring

Connection display name.

configobjectdefault {}

Non-secret connector configuration. For CSV uploads use {browserUpload:true, columns:[{file,mapping,stream,assignments:[{header,field,how,score}]}]}; propose_csv_mapping returns the editable plan. describe_connector supplies the inputs and config schema.

credentialsobject

Credential values to encrypt in the workspace vault; never returned.

CLI flags

--kind <kind>REQUIRED

One of: enrichment, generic, github, slack-export, slack, csv, commonroom, discourse, vanilla, bevy, gainsight-cc, gradual, bettermode, circle, flarum, verint, stackoverflow, dev, discord, luma, meetup, bigquery, segment, mixpanel, posthog-analytics, amplitude, piece:calendly, piece:hubspot, piece:posthog, piece:reddit, piece:typeform, piece:youtube, piece:zoom, piece:google-sheets, piece:postgres, piece:s3, piece:salesforce, piece:snowflake

--config <json>default {}

Connection config as JSON

--mapping <mapping>

CSV catalogue name, or auto to accept and persist the proposal

--secret-file <path>

Read credential JSON from a file, or - for redirected stdin (avoids argv)

--credentials <json>

Credential JSON (visible in argv/history; prefer --secret-file)

--secret <name=value>default

Store one encrypted secret (repeatable)

--name <name>

Display name (default: kind)

Also in Sources and connections