GET /v1/data-sources — List Data Sources
Retrieve all data sources connected to your workspace.Request example
cURL
Response — 200 OK
200 OK
string
Unique identifier for the data source.
string
Human-readable name given to the data source when it was connected.
string
The data source type (e.g.
postgres, mysql, bigquery, snowflake, stripe).string
Current sync status. One of:
active— syncing normallysyncing— a sync is currently in progresserror— the last sync failed; check your credentials or network configurationpaused— syncing is manually paused
string
ISO 8601 timestamp of the most recently completed sync.
null if the source has never synced successfully.POST /v1/data-sources — Connect a Data Source
Connect a new data source to your Cano Analytics workspace. This endpoint requires the admin scope.Body parameters
string
required
A descriptive name for this data source (e.g.
"Production Postgres", "Stripe Live").string
required
The type of data source to connect. Supported values include:
postgres, mysql, bigquery, snowflake, redshift, stripe, salesforce, hubspot, segmentobject
required
Connection credentials. The required fields depend on the
type:- postgres / mysql / redshift:
host,port,database,username,password - bigquery:
project_id,dataset,service_account_key(JSON object) - snowflake:
account,warehouse,database,username,password - stripe:
api_key - salesforce / hubspot:
access_tokenor OAuth credentials
object
Optional sync schedule. When omitted, Cano Analytics uses the default cadence for your plan.
frequency(string) —hourly,daily, orweeklytime(string) — preferred sync time inHH:MMUTC format (applies todailyandweekly)
Request example — connecting a PostgreSQL source
POST /v1/data-sources
Response — 201 Created
201 Created
When a new source is created, its status is initially
"testing" while Cano Analytics verifies the credentials and establishes a connection. The status transitions to active once the first sync completes successfully, or error if the connection check fails.DELETE /v1/data-sources/ — Remove a Data Source
Disconnect and remove a data source from your workspace. This endpoint requires the admin scope.Removing a data source does not delete historical data that has already been synced into Cano Analytics. Your previously synced tables, events, and reports derived from this source remain intact and queryable. Only future syncs are stopped.
Path parameters
string
required
The unique identifier of the data source to remove.
Request example
cURL
Response — 204 No Content
A successful deletion returns HTTP204 with no response body.