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

## 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-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`
- **2026-06-04** `2f3b124763cf` — 1 info
  - endpoint added

[Change 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.dev/stiggio/apis/stigg-api/revisions/de96c0c4633a?raw)
