connections

Create connection

Changed on

Create a reusable set of credentials for the project.

The values are checked like the connection schema describes; missing required fields and unknown fields return 400. Connector types that need an app setup flow return 400 and must be connected in the dashboard. Until April 30, 2027, config.region is accepted and ignored for S3 and SQS connections; responses to requests that send it carry Deprecation and Sunset headers.

Required permission: connections.create.

post/v1/projects/{project_id}/connections

Request

  • Base URL
    https://api.connic.co
  • Auth
    HTTP bearer

Path parameters

project_id, string uuid required

ID of the project the API key belongs to.

Request body

ConnectionCreateRequest required

Reusable credentials to create.

name, string required

Unique per connection type in the project.

type, 'http' | 'cron' | 'kafka' | 'sqs' | 'postgres' | 'websocket' | 'mcp' | 'email' | 's3' | 'stripe' | 'telegram' | 'slack' | 'twilio' | 'twilio_messaging' | 'telnyx' | 'telnyx_messaging' | 'sip' | 'github' | 'outlook' | 'rabbitmq' | 'mqtt' | 'azure_service_bus' | 'jira' | 'teams' | 'linear' | 'notion' | 'shopify' | 'gitlab' | 'pipedrive' | 'gmail' | 'google_sheets' | 'google_pubsub' | 'whatsapp' | 'connic' required

Connector type the credentials are for. Only types that support Connections are accepted.

bridge, string nullable

Name or ID of the Bridge that connects to a private network, for types that support one. Leave unset to connect directly.

config, object required

Fields from GET /connections/-/schema/{connector_type} whose api_path starts with config.. Unknown fields return 400.

Response

Successful Response

ConnectionResponse required

Reusable credentials shared by compatible connectors in the project.

id, string uuid required
project_id, string uuid required

Project the connection belongs to.

name, string required
type, string required

Connection type. Related connector types that share credentials use the same type.

bridge, string nullable

ID of the Bridge the connection's traffic goes through, or null for a direct connection.

config, object required

Credential fields, with secret fields masked as ********.

created_at, string required
updated_at, string required
connector_ids, string[]

IDs of the connectors that use this connection, in any environment.

connectors, ConnectionConnectorResponse[]

Connectors that use this connection, in any environment. A connection in use can't be deleted.

Changes

    • info

      added the new connic enum value to the request property type

    • info

      response property connectors/items/mode deprecated

    • info

      added the required property connectors/items/key to the response with the status