Skip to content
Select themeSelect language

`GET /api/scripts/{id}` — fetch a Script with its full source. An id from another workspace looks identical to an unknown id (NotFound).

GET
/api/scripts/{id}
curl --request GET \
--url https://example.com/api/scripts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0
id
required
string format: uuid
Media typeapplication/json

Wire-shape Script view returned by every HTTP handler. Mirrors the DB row 1:1; the created_by is included so the UI can show “Created by you” without a second lookup.

object
created_at
required
string format: date-time
created_by
string | null format: uuid
description
string | null
id
required
string format: uuid
language
required
string
name
required
string
slug
required
string
source
required
string
updated_at
required
string format: date-time
workspace_id
required
string format: uuid
Examplegenerated
{
"created_at": "2026-04-15T12:00:00Z",
"created_by": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"description": "example",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"language": "example",
"name": "example",
"slug": "example",
"source": "example",
"updated_at": "2026-04-15T12:00:00Z",
"workspace_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}