---
title: "List Link Scripts"
method: GET
path: "/links/{link_id}/scripts"
tags: ["Scripts"]
---

# List Link Scripts

`GET /links/{link_id}/scripts`

## Request

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

List all scripts/pixels attached to a link.

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

**Blocked by:** Link deleted (status=3).

**Workspace Type:** Classic or Gallery workspaces only.

## Path parameters

- `link_id` string, required

## Query parameters

- `limit` integer
- `orderBy` string
- `orderDir` 'asc' | 'desc'
- `last` string

## Headers

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

## Response `200`

List of scripts attached to the link

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

---

[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)
