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

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.net/onetrust/apis/platform-access-management.md) · [All operations](https://skmtc.net/onetrust/apis/platform-access-management/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onetrust/platform-access-management/versions/21de3aa0b170/schema)
