External Data
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
PATCH | |
POST | |
POST | |
GET | |
POST | |
POST | |
PATCH | |
POST | |
GET | |
POST | |
GET | |
POST | |
POST | |
GET |
List all environments external data sources
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:readQuery parameters
- limitinteger
- offsetinteger
- searchstring
Response
Example request
GET /api /environments /:environment_id /external_data_sourcesExample response
Status 200
Create environments external data sources
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:writeRequest parameters
- source_type
- payloadobject
- prefixstringnull
- descriptionstringnull
- access_methodDefault:
warehouse - created_viaDefault:
api
Response
Example request
POST /api /environments /:environment_id /external_data_sourcesExample response
Status 201
Retrieve environments external data sources
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:readPath parameters
- idstring
Response
Example request
GET /api /environments /:environment_id /external_data_sources /:idExample response
Status 200
Update environments external data sources
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:writePath parameters
- idstring
Request parameters
- created_via
- client_secretstring
- account_idstring
- prefixstringnull
- descriptionstringnull
- job_inputs
Response
Example request
PATCH /api /environments /:environment_id /external_data_sources /:idExample response
Status 200
Delete environments external data sources
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:writePath parameters
- idstring
Example request
DELETE /api /environments /:environment_id /external_data_sources /:idExample response
Status 204 No response body
Update environments external data sources bulk update schemas
Create, Read, Update and Delete External data Sources.
Path parameters
- idstring
Query parameters
- limitinteger
- offsetinteger
- searchstring
Request parameters
- schemasarray
Response
Example request
PATCH /api /environments /:environment_id /external_data_sources /:id /bulk_update_schemasExample response
Status 200
Create environments external data sources create webhook
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:writePath parameters
- idstring
Request parameters
- created_via
- client_secretstring
- account_idstring
- prefixstringnull
- descriptionstringnull
- job_inputs
Example request
POST /api /environments /:environment_id /external_data_sources /:id /create_webhookExample response
Status 200 No response body
Create environments external data sources delete webhook
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:writePath parameters
- idstring
Request parameters
- created_via
- client_secretstring
- account_idstring
- prefixstringnull
- descriptionstringnull
- job_inputs
Example request
POST /api /environments /:environment_id /external_data_sources /:id /delete_webhookExample response
Status 200 No response body
Retrieve environments external data sources jobs
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:readPath parameters
- idstring
Example request
GET /api /environments /:environment_id /external_data_sources /:id /jobsExample response
Status 200 No response body
Create environments external data sources refresh schemas
Fetch current schema/table list from the source and create any new ExternalDataSchema rows (no data sync).
Required API key scopes
external_data_source:writePath parameters
- idstring
Request parameters
- created_via
- client_secretstring
- account_idstring
- prefixstringnull
- descriptionstringnull
- job_inputs
Example request
POST /api /environments /:environment_id /external_data_sources /:id /refresh_schemasExample response
Status 200 No response body
Create environments external data sources reload
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:writePath parameters
- idstring
Request parameters
- created_via
- client_secretstring
- account_idstring
- prefixstringnull
- descriptionstringnull
- job_inputs
Example request
POST /api /environments /:environment_id /external_data_sources /:id /reloadExample response
Status 200 No response body
Update environments external data sources revenue analytics config
Update the revenue analytics configuration and return the full external data source.
Required API key scopes
external_data_source:writePath parameters
- idstring
Request parameters
- created_via
- client_secretstring
- account_idstring
- prefixstringnull
- descriptionstringnull
- job_inputs
Example request
PATCH /api /environments /:environment_id /external_data_sources /:id /revenue_analytics_configExample response
Status 200 No response body
Create environments external data sources update webhook inputs
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:writePath parameters
- idstring
Request parameters
- created_via
- client_secretstring
- account_idstring
- prefixstringnull
- descriptionstringnull
- job_inputs
Example request
POST /api /environments /:environment_id /external_data_sources /:id /update_webhook_inputsExample response
Status 200 No response body
Retrieve environments external data sources webhook info
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:readPath parameters
- idstring
Example request
GET /api /environments /:environment_id /external_data_sources /:id /webhook_infoExample response
Status 200 No response body
Create environments external data sources check cdc prerequisites
Validate CDC prerequisites against a live Postgres connection.
Used by the source wizard to surface ✅/❌ checks before source creation, and by the self-managed setup popup to verify user-created publications.
Required API key scopes
external_data_source:writeExample request
POST /api /environments /:environment_id /external_data_sources /check_cdc_prerequisitesExample response
Status 200 Whether the Postgres database satisfies CDC prerequisites.
Status 400 Invalid config, disallowed host, or connection failure.
List all environments external data sources connections
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:readQuery parameters
- limitinteger
- offsetinteger
- searchstring
Response
Example request
GET /api /environments /:environment_id /external_data_sources /connectionsExample response
Status 200
Create environments external data sources database schema
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:writeRequest parameters
- source_type
Example request
POST /api /environments /:environment_id /external_data_sources /database_schemaExample response
Status 200 No response body
Create environments external data sources source prefix
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:writeRequest parameters
- created_via
- client_secretstring
- account_idstring
- prefixstringnull
- descriptionstringnull
- job_inputs
Example request
POST /api /environments /:environment_id /external_data_sources /source_prefixExample response
Status 200 No response body
Retrieve environments external data sources wizard
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:readExample request
GET /api /environments /:environment_id /external_data_sources /wizard