Create connector
Changed onCreates 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.
Request
- Base URLhttps://api.connic.co
- AuthHTTP bearer
Path parameters
ID of the project the API key belongs to.
Query parameters
Environment to create the connector in.
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
Connector to create in the environment given by environment_id, in the shape of connectors/*.yaml.
Must not match a connector defined in code in the same environment.
Connector type. Determines the fields config accepts. webhook is accepted for http.
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.
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.
Name or ID of the Connection with the connector's credentials, for types that use one.
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.
Hostname or ID of an active custom domain for the connector's URL, for types that support one.
Deprecated, use domain. Accepted until April 30, 2027.
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.
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
Connector in an environment, with its configuration.
Project the connector belongs to.
Environment the connector runs in.
Deprecated, use domain. Returned until April 30, 2027.
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.
Connector type. Determines the fields in config.
Deprecated: connectors have no mode any more; agent links say what a connector does for each agent. Always null; returned until April 30, 2027.
ID of the Connection that holds the connector's credentials, or null for types without one.
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.
ID of the custom domain the connector's URL uses, or null for the default connector host.
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.
False while the connector is paused. A paused connector starts no runs, delivers no results and gives agents no tools.
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.
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
connicenum value to thetyperesponse property for the response status - info
added the new optional request property
key - info
request property
modedeprecated
3 more changes in this revision
- warning