# Preview authorization scopes for unsaved changes to an integration

**POST** `/v1/integrations/datadog/{id}/app-key/scopes/preview`

**Operation ID**: `previewDatadogAppKeyScopes`
**Summary**: Preview authorization scopes for unsaved changes to an integration
Probes Datadog with the integration's stored keys, overridden by whatever the body supplies, and reports each authorization scope. Nothing is written. An omitted field means "use what is stored", so an empty body reports what the stored key can do right now. A scope whose probe does not complete is reported UNKNOWN rather than as a permission the user has to grant.

## Tags
- Datadog Integration
## Parameters

- **id** (required) - path
  - Type: string

## Request Body

**Content-Type**: `application/json`

**Schema**: `PreviewAppKeyScopesRequest`

## Responses

### 200

Scopes checked successfully

- **Content-Type**: `application/json` / array of `AppKeyScopeCheck`
### 400

The supplied site is not allowed for this organization.

### 401

Unauthorized

### 404

Integration not found.
