Skip to main content
Server Scripts & Files

Get a server script by ID

This method does not fetch any data from your server but merely returns the script by ID from the list of scripts as known by Webdock. If you want to get a physical file from your server, use the Pull a server script method

GET
/servers/{serverSlug}/scripts/{scriptId}
Authorizationstringheaderrequired

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

serverSlugstringrequired

Slug of the server

scriptIdintegerrequired

ID of the script

Response

application/json

Server script

createdstring

Creation date/time

idinteger

Script ID

lastRunstring | null

Date/time of the last run

lastRunCallbackIdstring | null

Callback ID of the last script run

namestring

Script name

pathstring

Script path