connectors

Create connector

Changed on

Creates a connector in an environment.

The body takes the connector-level fields of a connectors/*.yaml file, and the configuration is validated like a file's. Credential fields are stored encrypted. Names used by connectors defined in code return 409.

Required permission: connectors.create. Passing agent_name also requires connectors.link.

post/v1/projects/{project_id}/connectors

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.

Query parameters

environment_id, string uuid required

Environment to create the connector in.

agent_name, string nullable

Agent to add to the new connector in the same request, as a trigger. Until April 30, 2027, with the deprecated mode: outbound it becomes a result, or a call on voice numbers.

Request body

ConnectorCreate required

Connector to create in the environment given by environment_id, in the shape of connectors/*.yaml.

name, string required

Must not match a connector defined in code in the same environment.

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. Determines the fields config accepts. webhook is accepted for http.

key, string nullable

Reference of the connector in its environment, such as connector:<key>.<tool> in an agent's tools: a letter or digit, then up to 99 letters, digits, - or _. Must not be used by another connector of the environment and can't be changed later. Defaults to the name in lowercase, with other characters as - and a number added when another connector has it.

mode, string nullable

Deprecated: connectors have no mode any more. Accepted until April 30, 2027: sync and inbound set config.sync on HTTP and MCP connectors, and with agent_name the agent becomes a trigger, or with outbound a result, or a call on voice numbers. config may then hold that link's settings too.

connection, string nullable

Name or ID of the Connection with the connector's credentials, for types that use one.

bridge, string nullable

Name or ID of the Bridge that connects the connector to a private network, for types that support one. Kafka, Postgres, email, SQS and S3 connectors use the Bridge of their Connection; for them this field is deprecated and accepted until April 30, 2027 only when it matches the Connection's Bridge.

domain, string nullable

Hostname or ID of an active custom domain for the connector's URL, for types that support one.

domain_id, string uuid nullable

Deprecated, use domain. Accepted until April 30, 2027.

config, object

Connector-level settings for the connector type, with the fields documented on that connector's docs page. Settings of triggers, results and calls go on the agent links. Secrets such as webhook secrets are generated by connic. Until April 30, 2027, the deprecated fields mode, connection_id, bridge_id, the flat rate_limit_* fields, phone_number_sid or phone_number_id, Connection credentials and the settings of the link agent_name creates are accepted here too; responses to requests that use them carry Deprecation and Sunset headers.

enabled, boolean

Set to false to create the connector paused. Kafka, SQS, Postgres, RabbitMQ, MQTT and Azure Service Bus connectors created with a trigger start paused unless this is sent, and connectors start paused when the plan's active connector limit is reached. Telegram, Twilio and Telnyx connectors change settings at the provider, so at the limit they return 403 instead.

Response

Successful Response

ConnectorResponse required

Connector in an environment, with its configuration.

id, string uuid required
project_id, string uuid required

Project the connector belongs to.

environment_id, string uuid required

Environment the connector runs in.

domain_id, string uuid nullable

Deprecated, use domain. Returned until April 30, 2027.

name, string required
key, string required

Reference of the connector in its environment, such as connector:<key>.<tool> in an agent's tools. For connectors defined in code, the name of their connectors/<key>.yaml file. It never changes.

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. Determines the fields in config.

mode, string nullable

Deprecated: connectors have no mode any more; agent links say what a connector does for each agent. Always null; returned until April 30, 2027.

connection, string nullable

ID of the Connection that holds the connector's credentials, or null for types without one.

bridge, string nullable

ID of the Bridge that connects the connector to a private network, or null for a direct connection. For Kafka, Postgres, email, SQS and S3 connectors, the Bridge of their Connection.

domain, string nullable

ID of the custom domain the connector's URL uses, or null for the default connector host.

config, object required

Connector-level settings for the connector type, with the fields documented on that connector's docs page; the settings of triggers, results and calls are on the agent links. Credential fields are masked as ********; secrets connic generates for the connector, such as webhook secrets, are returned in full. Until April 30, 2027, config also returns the deprecated fields connection_id, bridge_id, the flat rate_limit_* fields, phone_number_sid or phone_number_id, and the fields of the Connection.

enabled, boolean required

False while the connector is paused. A paused connector starts no runs, delivers no results and gives agents no tools.

created_at, string date-time required
updated_at, string date-time required
managed_key, string nullable

Key of the connectors/<key>.yaml file that defines this connector in code, or null. Change these connectors in your codebase; the API can only pause or resume them.

retired_at, string date-time nullable

When the active deployment stopped declaring this connector in code, or null. Retired connectors stay paused until a deployment declares them again, and can be deleted.

Changes

    • warning

      added the new connic enum value to the type response property for the response status

    • info

      added the new optional request property key

    • info

      request property mode deprecated

    3 more changes in this revision