Skip to content
SoulFire LogoSoulFire

Get script

GET
/v1/instances/{instance_id}/scripts/{script_id}

Retrieves a specific script by its ID. Returns the complete script data including all nodes and edges.

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Path Parameters

instance_id*string

The instance containing the script. Format: UUID string.

Formatuuid
script_id*string

The ID of the script to retrieve. Format: UUID string.

Formatuuid

Response Body

Response containing the requested script.

application/json
  1. response

Response containing the requested script.

script*

The complete script data including all nodes and edges.

Example Request
curl -X GET 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/scripts/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{
  "script": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "name": "string",
    "description": "string",
    "nodes": [
      {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "type": "string",
        "position": {
          "x": 0.1,
          "y": 0.1
        },
        "data": {
          "property1": null,
          "property2": null
        },
        "muted": true,
        "collapsed": true,
        "width": 0.1,
        "height": 0.1,
        "containedNodes": [
          "string"
        ],
        "label": "string",
        "resolvedType": "PORT_TYPE_ANY",
        "parentFrameId": "string"
      }
    ],
    "edges": [
      {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "source": "string",
        "sourceHandle": "string",
        "target": "string",
        "targetHandle": "string",
        "edgeType": "EDGE_TYPE_EXECUTION",
        "order": 0
      }
    ],
    "instanceId": "64d2028c-ae87-4069-a624-66089d957ef9",
    "paused": true,
    "quotas": {
      "maxExecutionCount": "string",
      "maxExecutionTimeMs": "string",
      "maxConcurrentTriggers": 0,
      "maxStateStoreEntries": "string",
      "disableTimeouts": true
    }
  }
}

Was this page helpful?