Skip to main content
POST
/
api
/
v1
/
data-export
/
destinations
JavaScript
import Stigg from '@stigg/typescript';

const client = new Stigg({
  apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});

const destination = await client.v1.events.dataExport.destinations.create({
  destinationId: 'x',
  destinationType: 'x',
});

console.log(destination.data);
{
  "data": {
    "destinations": [
      {
        "type": "snowflake",
        "connectedAt": "2026-06-04T12:00:00.000Z",
        "destinationId": "dst_9f2a1c7b3e4d",
        "connectionStatus": "connected",
        "lastSyncStatus": {
          "transferId": "transfer_4b8e2d1a",
          "status": "SUCCEEDED",
          "finishedAt": "2026-06-04T12:30:00.000Z",
          "rowsTransferred": 1284
        }
      }
    ]
  }
}

Authorizations

X-API-KEY
string
header
required

Server API Key

Headers

X-ACCOUNT-ID
string

Account ID — optional when authenticating with a user JWT (Bearer token); falls back to the user's first membership. Ignored for API-key auth.

X-ENVIRONMENT-ID
string

Environment ID — required when authenticating with a user JWT (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the key).

Body

application/json

Register a destination on the env DATA_EXPORT integration.

destinationType
string
required

The destination type (e.g. snowflake, bigquery)

Required string length: 1 - 255
destinationId
string
required

The provider destination ID returned by the embedded SDK on connect

Required string length: 1 - 255

Response

Current list of destinations under the DATA_EXPORT integration.

Response object

data
DataExportDestinationListResponse · object
required

Current destinations under the DATA_EXPORT integration.