---
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.

## Changes

- **2026-07-28** `913f273cc2f7` — 1 warning
  - added the new `ContractNotFound` enum value to the `code` response property for the response status `404`
- **2026-07-23** `b876edd1a4fc` — 5 warning
  - added the new `CreditOveragePriceCurrencyNotFound` enum value to the `code` response property for the response status `400`
  - added the new `InvalidCreditOverageBillingModel` enum value to the `code` response property for the response status `400`
  - added the new `InvoicePreviewNotAvailableForDraftContract` enum value to the `code` response property for the response status `400`
  - added the new `OveragePriceNotSupportedOnAddon` enum value to the `code` response property for the response status `400`
  - …1 more
- **2026-07-08** `58bb216ff8ce` — 1 warning
  - added the new `GovernanceNotEnabled` enum value to the `code` response property for the response status `403`
- **2026-06-21** `13a11471d279` — 1 info
  - added the new optional request property `enabledModels`
- **2026-06-10** `2ecdbf877f12` — 2 info
  - added the new optional `header` request parameter `X-ACCOUNT-ID`
  - added the new optional `header` request parameter `X-ENVIRONMENT-ID`

[Full history](https://skmtc.dev/stiggio/apis/stigg-api/changes/api/v1/data-export/scoped-token/post.md)

---

[API](https://skmtc.dev/stiggio/apis/stigg-api.md) · [All operations](https://skmtc.dev/stiggio/apis/stigg-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stiggio/stigg-api/revisions/3e2c8cfcd035/schema)
