---
title: Read a script
description: To read an individual script in a realm, perform an HTTP GET using the /json{/realm}/scripts endpoint, specifying the UUID in the URL.
component: pingoneaic
page_id: pingoneaic:am-scripting:rest-api-scripts-read
canonical_url: https://docs.pingidentity.com/pingoneaic/am-scripting/rest-api-scripts-read.html
keywords: ["Scripts", "REST"]
---

# Read a script

To read an individual script in a realm, perform an HTTP GET using the `/json{/realm}/scripts` endpoint, specifying the UUID in the URL.

```bash
$ curl \
--header "Authorization: Bearer <access-token>" \
--header "Accept-API-Version: resource=1.1" \
'https://<tenant-env-fqdn>/am/json/realms/root/realms/alpha/scripts/aeb22d32-100c-46c0-ac51-af571889e5b9'
{
  "_id": "aeb22d32-100c-46c0-ac51-af571889e5b9",
  "name": "MyJavaScript",
  "description": "An example script",
  "script": "dmFyIGEgPSAxMjM7CnZhciBiID0gNDU2Ow==",
  "default": false,
  "language": "JAVASCRIPT",
  "context": "POLICY_CONDITION",
  "createdBy": "null",
  "creationDate": 0,
  "lastModifiedBy": "null",
  "lastModifiedDate": 0,
  "evaluatorVersion": "1.0"
}
```

|   |                                                                                                                                                                                                                                                                    |
| - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|   | You can't read, update, or delete the default scripts prefixed `ForgeRock Internal` (UUIDs: `234ba0b-58a1-4cfd-9567-09edde980745` and `1f389a3d-21cf-417c-a6d3-42ea620071f0`). These scripts appear in the query but aren't accessible in Advanced Identity Cloud. |
