---
title: "Get Script for Application"
method: GET
path: "/api/cmp/v1/applications/{id}/script-details"
tags: ["Scripts"]
---

# Get Script for Application

`GET /api/cmp/v1/applications/{id}/script-details`

## Request

- Base URL: `https://hostname`
- URL: `https://hostname/api/cmp/v1/applications/{id}/script-details`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `COOKIE`, `COOKIE_READ`

Use this API to retrieve script details for the specified application.

## Path parameters

- `id` string, uuid, required

## Response `200`

OK

- ApplicationScriptDetailsPublicDto
  - `id` string, uuid: Unique identifier of this Application.
  - `name` string: The name of this mobile Application.
  - `version` string: The version of the script
  - `geoRuleId` string, uuid: Unique identifier of the geo rule.
  - `geoRuleName` string: Name of the geo rule.
  - `platform` 'IOS' | 'ANDROID' | 'APPLETV' | 'ANDROIDTV' | 'FIRETV' | 'ROKU' | 'SAMSUNGTV' | 'LGTV' | 'VIZIOTV' | 'HBBTV' | 'PANASONICTV' | 'PS5' | 'YOUVIEW': The platform of this Application.
  - `lastPublishedStatus` 'DRAFT' | 'PUBLISHED' | 'PUBLISHING' | 'FAILED' | 'WAITING': The status of the SDK publication
  - `lastPublishedDate` string, date-time: Last date publish date (timezone UTC)
  - `lastPublishedVersion` string: Version of the latest publish
  - `lastPublishedBy` string: User who triggered the latest publish
  - `solution` 'API' | 'ONETRUST_SDK': The type of the SDK published within the application.
  - `publishedVersions` string[]: The published version of this script.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500`: Internal Server Error

---

[API](https://skmtc.dev/onetrust/apis/consent-preferences-cookie-consent.md) - [All operations](https://skmtc.dev/onetrust/apis/consent-preferences-cookie-consent/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/consent-preferences-cookie-consent/revisions/b4fb4606f973?raw)
