External Data
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST |
List all external data destinations
Manage where warehouse sources write their synced rows.
A destination can be attached to several sources, or to a single table on a source. Credentials come from an integration, so one connection can be reused across syncs.
Required API key scopes
external_data_source:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /external_data_destinationsExample response
Status 200
Create external data destinations
Manage where warehouse sources write their synced rows.
A destination can be attached to several sources, or to a single table on a source. Credentials come from an integration, so one connection can be reused across syncs.
Required API key scopes
external_data_source:writeRequest parameters
- type
- namestring
- config
- integrationinteger | null
Response
Example request
POST /api /projects /:project_id /external_data_destinationsExample response
Status 201
Retrieve external data destinations
Manage where warehouse sources write their synced rows.
A destination can be attached to several sources, or to a single table on a source. Credentials come from an integration, so one connection can be reused across syncs.
Required API key scopes
external_data_source:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /external_data_destinations /:idExample response
Status 200
Update external data destinations
Manage where warehouse sources write their synced rows.
A destination can be attached to several sources, or to a single table on a source. Credentials come from an integration, so one connection can be reused across syncs.
Required API key scopes
external_data_source:writePath parameters
- idstring
Request parameters
- type
- namestring
- config
- integrationinteger | null
Response
Example request
PATCH /api /projects /:project_id /external_data_destinations /:idExample response
Status 200
Delete external data destinations
Soft-delete, and detach it from everything that syncs to it.
Runs already in flight keep their own snapshot of the destination, so deleting one never strands a run part-way through. The next run of each affected table resolves without it.
Required API key scopes
external_data_source:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /external_data_destinations /:idExample response
Status 204 No response body
Create external data destinations add sources
Manage where warehouse sources write their synced rows.
A destination can be attached to several sources, or to a single table on a source. Credentials come from an integration, so one connection can be reused across syncs.
Path parameters
- idstring
Request parameters
- source_idsarray
- resyncbooleanDefault:
false
Response
Example request
POST /api /projects /:project_id /external_data_destinations /:id /add_sources