---
title: "Mint data-export scoped token"
method: POST
path: "/api/v1/data-export/scoped-token"
tags: ["Data Export"]
---

# Mint data-export scoped token

`POST /api/v1/data-export/scoped-token`

Mint a scoped JWT for the FE embedded SDK. Lazy-creates the DATA_EXPORT integration if needed.

## Headers

- `X-ACCOUNT-ID` string
- `X-ENVIRONMENT-ID` string

## Request body

- DataExportScopedTokenRequestDto — Mint a scoped JWT for the FE embedded SDK.
  - `applicationOrigin` string, required — FE origin the resulting JWT is bound to (provider-side anti-fraud)
  - `destinationType` string — Pin the token to a specific warehouse connect flow
  - `enabledModels` string[]

## Response `200`

Scoped token + expiry + provider-specific metadata for the FE SDK.

- DataExportScopedTokenResponseDto — Response object
  - `data` object, required — Scoped token + expiry + provider-specific metadata for the FE SDK.
    - `token` string, required — Provider scoped JWT
    - `expiresAt` string, required — ISO8601 token expiry
    - `providerMetadata` object, required — Provider-specific extras the FE embedded SDK needs

## Other responses

- `400` — bad request.
- `401` — User is not authenticated.
- `403` — User is not allowed to access this resource.
- `404` — DataExport not found.
- `429` — Too many requests.

---

[API](https://skmtc.net/stiggio/apis/stigg-api.md) · [All operations](https://skmtc.net/stiggio/apis/stigg-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stiggio/stigg-api/versions/ffc977f1c07e/schema)
