scripts
GET /scripts/fetch
Gets a script by id.
Request
- Base URLhttps://api.phantombuster.com/api/v2
- AuthAPI key in header X-Phantombuster-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
Changes
No recorded changes to this operation across all 1 revision of this API.