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);import os
from stigg import Stigg
client = Stigg(
api_key=os.environ.get("STIGG_API_KEY"), # This is the default and can be omitted
)
destination = client.v1.events.data_export.destinations.create(
destination_id="x",
destination_type="x",
)
print(destination.data)package main
import (
"context"
"fmt"
"github.com/stiggio/stigg-go"
"github.com/stiggio/stigg-go/option"
)
func main() {
client := stigg.NewClient(
option.WithAPIKey("My API Key"),
)
destination, err := client.V1.Events.DataExport.Destinations.New(context.TODO(), stigg.V1EventDataExportDestinationNewParams{
DestinationID: "x",
DestinationType: "x",
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", destination.Data)
}
package io.stigg.example;
import io.stigg.client.StiggClient;
import io.stigg.client.okhttp.StiggOkHttpClient;
import io.stigg.models.v1.events.dataexport.destinations.DestinationCreateParams;
import io.stigg.models.v1.events.dataexport.destinations.DestinationCreateResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
StiggClient client = StiggOkHttpClient.fromEnv();
DestinationCreateParams params = DestinationCreateParams.builder()
.destinationId("x")
.destinationType("x")
.build();
DestinationCreateResponse destination = client.v1().events().dataExport().destinations().create(params);
}
}require "stigg"
stigg = Stigg::Client.new(api_key: "My API Key")
destination = stigg.v1.events.data_export.destinations.create(destination_id: "x", destination_type: "x")
puts(destination)using System;
using Stigg.Client;
using Stigg.Client.Models.V1.Events.DataExport.Destinations;
StiggClient client = new();
DestinationCreateParams parameters = new()
{
DestinationID = "x",
DestinationType = "x",
};
var destination = await client.V1.Events.DataExport.Destinations.Create(parameters);
Console.WriteLine(destination);stigg v1:events:data-export:destinations create \
--api-key 'My API Key' \
--destination-id x \
--destination-type xcurl --request POST \
--url https://api.stigg.io/api/v1/data-export/destinations \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"destinationType": "<string>",
"destinationId": "<string>",
"enabledModels": [
"<string>"
]
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.stigg.io/api/v1/data-export/destinations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'destinationType' => '<string>',
'destinationId' => '<string>',
'enabledModels' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"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
},
"enabledModels": []
}
]
}
}{
"message": "<string>",
"code": "BadUserInput",
"reason": "<string>"
}{
"message": "<string>",
"code": "Unauthenticated"
}{
"message": "<string>",
"code": "IdentityForbidden"
}{
"message": "<string>",
"code": "CustomerNotFound"
}{
"message": "<string>",
"code": "RateLimitExceeded"
}Add data-export destination
Register a destination on the environment’s DATA_EXPORT integration. Lazy-creates the integration row + provider recipient on first call. Idempotent on destinationId.
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);import os
from stigg import Stigg
client = Stigg(
api_key=os.environ.get("STIGG_API_KEY"), # This is the default and can be omitted
)
destination = client.v1.events.data_export.destinations.create(
destination_id="x",
destination_type="x",
)
print(destination.data)package main
import (
"context"
"fmt"
"github.com/stiggio/stigg-go"
"github.com/stiggio/stigg-go/option"
)
func main() {
client := stigg.NewClient(
option.WithAPIKey("My API Key"),
)
destination, err := client.V1.Events.DataExport.Destinations.New(context.TODO(), stigg.V1EventDataExportDestinationNewParams{
DestinationID: "x",
DestinationType: "x",
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", destination.Data)
}
package io.stigg.example;
import io.stigg.client.StiggClient;
import io.stigg.client.okhttp.StiggOkHttpClient;
import io.stigg.models.v1.events.dataexport.destinations.DestinationCreateParams;
import io.stigg.models.v1.events.dataexport.destinations.DestinationCreateResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
StiggClient client = StiggOkHttpClient.fromEnv();
DestinationCreateParams params = DestinationCreateParams.builder()
.destinationId("x")
.destinationType("x")
.build();
DestinationCreateResponse destination = client.v1().events().dataExport().destinations().create(params);
}
}require "stigg"
stigg = Stigg::Client.new(api_key: "My API Key")
destination = stigg.v1.events.data_export.destinations.create(destination_id: "x", destination_type: "x")
puts(destination)using System;
using Stigg.Client;
using Stigg.Client.Models.V1.Events.DataExport.Destinations;
StiggClient client = new();
DestinationCreateParams parameters = new()
{
DestinationID = "x",
DestinationType = "x",
};
var destination = await client.V1.Events.DataExport.Destinations.Create(parameters);
Console.WriteLine(destination);stigg v1:events:data-export:destinations create \
--api-key 'My API Key' \
--destination-id x \
--destination-type xcurl --request POST \
--url https://api.stigg.io/api/v1/data-export/destinations \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"destinationType": "<string>",
"destinationId": "<string>",
"enabledModels": [
"<string>"
]
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.stigg.io/api/v1/data-export/destinations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'destinationType' => '<string>',
'destinationId' => '<string>',
'enabledModels' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"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
},
"enabledModels": []
}
]
}
}{
"message": "<string>",
"code": "BadUserInput",
"reason": "<string>"
}{
"message": "<string>",
"code": "Unauthenticated"
}{
"message": "<string>",
"code": "IdentityForbidden"
}{
"message": "<string>",
"code": "CustomerNotFound"
}{
"message": "<string>",
"code": "RateLimitExceeded"
}Authorizations
Server API Key
Headers
Account ID — optional when authenticating with a user JWT (Bearer token); falls back to the user's first membership. Ignored for API-key auth.
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
Register a destination on the env DATA_EXPORT integration.
The destination type (e.g. snowflake, bigquery)
1 - 255The provider destination ID returned by the embedded SDK on connect
1 - 2551Wire identifier of a data-export model the destination is configured to receive (omit the parent field for the full catalog)
1 - 255Response
Current list of destinations under the DATA_EXPORT integration.
Response object
Current destinations under the DATA_EXPORT integration.
Show child attributes
Show child attributes
Related topics
Remove data-export destinationUpdate data-export destination selectionTrigger data-export syncOverviewList data-export models