Source
Create a new source
POST
/
source
Authorization
Body
curl --request POST \
--url https://api.fabra.io/source \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <x-api-key>' \
--data '{
"bigquery_config": {
"credentials": "Paste JSON from GCP",
"location": "us-west1"
},
"connection_type": "snowflake",
"display_name": "Frontend Events",
"end_customer_id": "abcd-1234-efgh-5678",
"mongodb_config": {
"connection_options": "retryWrites=true&w=majority",
"host": "examplecluster.abc123.mongodb.net",
"password": "securePassword123",
"username": "jane_doe"
},
"redshift_config": {
"database_name": "your_database",
"host": "examplecluster.12345.us-west-1.redshift.amazonaws.com",
"password": "securePassword123",
"port": 5432,
"username": "jane_doe"
},
"snowflake_config": {
"database_name": "your_database",
"host": "abc123.us-east4.gcp.snowflakecomputing.com",
"password": "securePassword123",
"role": "your_role",
"username": "jane_doe",
"warehouse_name": "your_warehouse"
}
}'
{
"source": {
"connection": {},
"display_name": "Frontend Events",
"end_customer_id": "abcd-1234-efgh-5678",
"id": 10
}
}
Authorizations
X-API-KEY
string
headerrequiredBody
application/json
bigquery_config
object
connection_type
enum<string>
requiredAvailable options:
snowflake
, bigquery
, redshift
, mongodb
, webhook
display_name
string
requiredend_customer_id
string
requiredmongodb_config
object
redshift_config
object
snowflake_config
object
Response
200 - application/json
source
object
curl --request POST \
--url https://api.fabra.io/source \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <x-api-key>' \
--data '{
"bigquery_config": {
"credentials": "Paste JSON from GCP",
"location": "us-west1"
},
"connection_type": "snowflake",
"display_name": "Frontend Events",
"end_customer_id": "abcd-1234-efgh-5678",
"mongodb_config": {
"connection_options": "retryWrites=true&w=majority",
"host": "examplecluster.abc123.mongodb.net",
"password": "securePassword123",
"username": "jane_doe"
},
"redshift_config": {
"database_name": "your_database",
"host": "examplecluster.12345.us-west-1.redshift.amazonaws.com",
"password": "securePassword123",
"port": 5432,
"username": "jane_doe"
},
"snowflake_config": {
"database_name": "your_database",
"host": "abc123.us-east4.gcp.snowflakecomputing.com",
"password": "securePassword123",
"role": "your_role",
"username": "jane_doe",
"warehouse_name": "your_warehouse"
}
}'
{
"source": {
"connection": {},
"display_name": "Frontend Events",
"end_customer_id": "abcd-1234-efgh-5678",
"id": 10
}
}