Skip to main content
Account Scripts & Files

Get an account script by ID or slug

Numeric id, or the slug string from script list or detail responses (unique per script).

GET
/account/scripts/{scriptId}
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

scriptIdstringrequired

Numeric id or slug

Response

application/json

A script

contentstring

Script content

descriptionstring

Script description

filenamestring

Script filename

idinteger

Script ID

labelsstring[]

Script labels

namestring

Script name

slugstring

Unique slug: sanitized filename base plus '-' and script id (e.g. my-install-sh-42). Use this value when referencing a script by slug in API paths or deploy bodies; numeric id still accepted.