curl --request POST \
    --url https://api.buster.so/api/v1/tenants \
    --header 'Content-Type: application/json' \
    --header 'api-key: <YOUR-API-KEY>' \
    --data '{
        "source_name": "buster_tenant_2",
		"credentials": {
			"postgres": {
				"source_name": "tenant_number_1",
				"db_host": "rds.amazonaws.com",
				"db_port": "5432",
				"db_username": "postgres",
				"db_password": "supersecret",
				"db_database": "postgres",
				"schemas": ["public"],
				"jump_host": "jump_host.amazonaws.com",
				"ssh_username": "ec2-user",
				"ssh_private_key": "path/to/file"
			}
		}
    }'
201 Created
This endpoint is only useful for single-tenant data sources.

Body Parameters

template_id
string
required

This is the identifier for the template you can find in the data source under the “Settings” tab.

credentials
string
required

These are the credentials for the new tenant.