---
title: "Get script by ID"
method: GET
path: "/v1/scripts/{script_id}"
tags: ["Scripts"]
---

# Get script by ID

`GET /v1/scripts/{script_id}`

Retrieves a specific script by its ID

## Path parameters

- `script_id` string, required — The unique identifier of the script

## Headers

- `x-api-key` string, nullable — Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.

## Response `200`

Successful Response

- Script
  - `script_revision_id` string, required — Unique identifier for this specific script revision
  - `script_id` string, required — User-facing script identifier, consistent across versions
  - `organization_id` string, required — ID of the organization that owns this script
  - `run_id` string, nullable — ID of the workflow run or task run that generated this script
  - `version` integer, required — Version number of the script
  - `created_at` string, date-time, required — Timestamp when the script was created
  - `modified_at` string, date-time, required — Timestamp when the script was last modified
  - `deleted_at` string, date-time, nullable — Timestamp when the script was soft deleted

## Other responses

- `422` — Validation Error

## Changes

- **2026-06-08** `3a3616091b66` — 2 breaking, 4 info
  - response property `deleted_at` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - response property `run_id` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - `header` request parameter `x-api-key` list-of-types was widened by adding types `null`
  - for the `header` request parameter `x-api-key`, the type was generalized from `string` to no type
  - …2 more
- **2026-02-04** `a8899e7707c4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/skyvern-ai/apis/skyvern-api-2/changes/v1/scripts/:script_id/get.md)

---

[API](https://skmtc.dev/skyvern-ai/apis/skyvern-api-2.md) · [All operations](https://skmtc.dev/skyvern-ai/apis/skyvern-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/skyvern-ai/skyvern-api-2/revisions/e20bbd4b9da0/schema)
