---
title: "Get Script"
method: GET
path: "/scripts/{script_id}"
tags: ["Scripts"]
---

# Get Script

`GET /scripts/{script_id}`

## Request

- Base URL: `https://api.rebrandly.com/v1`
- URL: `https://api.rebrandly.com/v1/scripts/{script_id}`
- Auth: API key in header `apikey`

Get details of a specific script by ID.

**Requires:** Authenticated user with workspace access.

## Path parameters

- `script_id` string, required

## Headers

- `Workspace` string
- `apikey` string, required

## Response `200`

Script details

- Script
  - `id` string, required: Script public ID
  - `name` string, required
  - `value` string: Script code/content
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

## Other responses

- `404`: Resource not found

---

[API](https://skmtc.dev/rebrandly/apis/rebrandly-api.md) - [All operations](https://skmtc.dev/rebrandly/apis/rebrandly-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rebrandly/apis/rebrandly-api/revisions/b098bf9fb684?raw)
