Script
Get a script record by its name.
get/script/by-name/{mode}/{name}
Path parameters
namestring required
Name of the script to retrieve, with its extension (.js or .coffee).
mode'json' | 'raw' required
JSON or raw text.
Query parameters
withoutTextboolean
If true, do not send the script’s contents but only its metadata (only in JSON mode).
Response
Success
Example response
{
"status": "success",
"data": {
"id": 1902,
"name": "nice_agent.coffee",
"source": "phantombuster",
"text": " ... script contents ... ",
"lastSaveDate": 1427806874,
"nonce": 123
}
}