v1

latestOpenAPI 3.0.0ISC2026-07-26782347.5 KB
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

statusstring

Example response

{
  "status": "success",
  "data": {
    "id": 1902,
    "name": "nice_agent.coffee",
    "source": "phantombuster",
    "text": " ... script contents ... ",
    "lastSaveDate": 1427806874,
    "nonce": 123
  }
}