Connection Templates
A connection template pre-defines the Destination side of every pipeline your customers spin up through the Embedded widget. It answers two questions up-front:
- Where should the data land?
- How often should it sync?
When a customer finishes configuring a Source, Airbyte automatically creates the connection by combining their source settings with your template.
You'll need the following to create a connection template:
- Your organization ID
- The destination definition ID
- The destination configuration
- The destination name: We'll automatically create a destination with the given name in your user's workspaces
- (optional) A cron expression describing when to run syncs. The cron expression must follow the Quartz syntax. You can use freeformatter.com to help validate the expression
Here is an example request for creating a connection template:
curl --request POST 'https://api.airbyte.ai/api/v1/integrations/templates/connections' \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <bearer_token>" \
--data-raw '{
"organization_id": "<organization_id>",
"destination_name": "string",
"destination_definition_id": "<destination_definition_id>",
"destination_config": {
"access_key_id": "<aws_access_key>",
"secret_access_key": "<aws_secret_key>",
"s3_bucket_name": "<s3_bucket>",
"s3_bucket_path": "<s3_prefix>",
"s3_bucket_region": "<s3_region>",
"format": {
"format_type": "CSV",
"compression": {
"compression_type": "No Compression"
},
"flattening": "Root level flattening"
}
},
"cron_expression": "string",
"non_breaking_changes_preference": "ignore",
"sync_on_create": true
}'
You can find the full connector specification in the Connector Registry.
Alternatively, if you want to view the full JSON for a given connector when creating a source or destination from scratch in Airbyte Cloud. After configuring the connector to your desired specifications (partially complete if you want an end user to complete the rest), you can select "Copy JSON". This will give you necessary details like the configuration and the destination_definition_id
.
You can find the reference docs for creating a connection template here.