Skip to main content
POST
Connect an app with credentials
Creates a connection without OAuth. Resending credentials for the same account refreshes it instead of creating a duplicate. See App connections. Creates a connection for an API-key or credentials-import app from the credentials in fields. Re-sending credentials whose extracted identity (an email, a username) matches an existing connection re-authenticates that connection instead of creating a duplicate; pass connectionId to target one explicitly. A brand-new connection is attached to every agent in the workspace automatically; the response carries it under connection so you can adjust grants right away. Send X-Organization-Id to connect at the organization level (admin only) — POST /org/apps/{provider}/connect is the canonical form.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Path Parameters

provider
string
required

App provider identifier (for example gmail, github, jira).

Body

application/json

Direct-credential connect (API key and credentials-import apps). The required fields keys are the app's own and are listed on its integration page.

fields
object

The app's credential fields (for example { "apiKey": "…" }).

connectionId
string

Re-authenticate this existing connection instead of creating a new one.

label
string

Display label for the new connection. Defaults to an identity extracted from the credentials.

method
string

For apps that offer more than one direct method, which one fields belongs to.

Response

Connected

success
boolean
connection
object

Present only when a brand-new connection was created (not on reconnects).