v1

latestOpenAPI 3.0.0ISC2026-07-26782347.5 KB
scripts

Gets a script by id.

get/scripts/fetch

Query parameters

idstring required

Id of the script.

branchstring nullable

If set, the specified branch will be used to retrieve the script.

environment'staging' | 'release' nullable

If set, the specified environment will be used to retrieve the script.

withCode'staging' | 'release' nullable

If set, the code will be returned in the response.

Headers

X-Phantombuster-Orgstring

ID of the org that is perfoming the operation (not necessary when using a third party key)

Response

OK

idstring required
namestring required
orgIdstring required
orgSlugstring required
descriptionstring
{"stackTrail":"paths:/scripts/fetch:get:responses:200:content:application/json:schema:properties:markdownRender","oasType":"schema","type":"unknown","nullable":true}
markdownstring nullable
codestring nullable
branchstring
environment'staging' | 'release' required
visibility'private' | 'semi public' | 'public' | 'semi open source' | 'open source' required
accessListstring[] nullable
slugstring
inputIconstring
outputIconstring
categoriesstring[]
outputDescriptionobject
outputTypesobject
argumentTypesobject
unlistedboolean
reservedAgentSlotsnumber
reservedAgentSlotsFactornumber
isDeprecatedboolean
visibleInChatstring[]