> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# generateDataExportScopedToken

> Generate a scoped auth token for the data export embedded SDK



**mutation** `generateDataExportScopedToken(input: GenerateDataExportScopedTokenInput!): DataExportScopedToken!`

## Arguments

**`input`**: `GenerateDataExportScopedTokenInput!` (required)

## Returns

`DataExportScopedToken!`

**`enabledModels`**: `[String!]!`

All model names the recipient is subscribed to

---

**`expiresAt`**: `String!`

Token expiration time in ISO 8601 format

---

**`hasDestination`**: `Boolean!`

Whether this recipient already has a destination configured

---

**`host`**: `String!`

The vendor API host this token authenticates against

---

**`organizationId`**: `String!`

The vendor organization the embedded SDK loads its destination form from, or empty when the deployment configures none for this account

---

**`recipientId`**: `String!`

Prequel recipient ID associated with this integration

---

**`token`**: `String!`

The scoped auth token

## Examples

```graphql Mutation
mutation GenerateDataExportScopedToken($input: GenerateDataExportScopedTokenInput!) {
  generateDataExportScopedToken(input: $input) {
    enabledModels
    expiresAt
    hasDestination
    host
    organizationId
    recipientId
  }
}
```

```json Variables
{
  "input": {
    "integrationId": "string"
  }
}
```

```json Response
{
  "data": {
    "generateDataExportScopedToken": {
      "enabledModels": [
        "string"
      ],
      "expiresAt": "string",
      "hasDestination": true,
      "host": "string",
      "organizationId": "string",
      "recipientId": "string"
    }
  }
}
```


## Related topics

- [GenerateDataExportScopedTokenInput](https://docs.stigg.io/graphql-reference/types/GenerateDataExportScopedTokenInput.md)
- [DataExportScopedToken](https://docs.stigg.io/graphql-reference/types/DataExportScopedToken.md)
- [Python](https://docs.stigg.io/api-and-sdks/changelog/backend-rest/python.md)
- [Go](https://docs.stigg.io/api-and-sdks/changelog/backend-rest/go.md)
- [TypeScript](https://docs.stigg.io/api-and-sdks/changelog/backend-rest/typescript.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.