Skip to main content
POST
/
api
/
v1
/
data-export
/
sync
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 response = await client.v1.events.dataExport.triggerSync();

console.log(response.data);
{
  "data": {
    "results": [
      {
        "destinationId": "dst_9f2a1c7b3e4d",
        "triggered": true,
        "transferId": "transfer_4b8e2d1a"
      }
    ]
  }
}

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

Trigger a sync for one destination or all destinations under the provider entity.

destinationId
string

Provider destination ID to sync. Omit to sync all destinations.

Maximum string length: 255

Response

Per-destination trigger results.

Response object

data
TriggerDataExportSyncResponse · object
required

Per-destination trigger results across the batch.