> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.islo.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.islo.dev/_mcp/server.

# List Scoped Factory Job Versions

GET https://api.islo.dev/factories/{factory_id}/jobs/{name}/versions

Reference: https://docs.islo.dev/api-reference/factories/list-scoped-factory-job-versions

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `factory_id` (string, required)
- `name` (string, required)

### Query parameters

- `limit` (integer, optional, default: 50)
- `cursor` (string, optional, nullable)

## Response

### 200

Successful Response

- `items` (list of JobVersionResponse, required)
- `next_cursor` (string, required, nullable)
- `total` (integer, optional, nullable)

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### JobVersionResponse

- `content_hash` (string, required)
- `deployed_at` (datetime, required)
- `id` (string, required)
- `manifest` (JobManifest-Output, required) — Full job.toml manifest (TOML or JSON authoring; stored as JSON).
- `version_number` (integer, required)

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `ctx` (ValidationErrorCtx, optional)
- `input` (any, optional)

### JobManifest-Output

Full job.toml manifest (TOML or JSON authoring; stored as JSON).

- `job` (JobSection, required)
- `run` (RunSection-Output, required)
- `outputs` (map from string to JobOutputSpec, optional, nullable) — Public job output contract for the job and downstream lines.
- `schedule` (ScheduleSection, optional, nullable)
- `verification` (VerificationSection, optional, nullable)

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

### JobSection

- `name` (string, required) — Job name; must match jobs/\<name>/ and deploy path
- `description` (string, optional, nullable)
- `params` (map from string to JobParamSpec, optional, nullable) — Declared run parameters. Reference as \{\{name}} in manifest strings (substitution and undeclared-reference checks walk the whole manifest, not only step fields). Reserved: \{\{run\_id}}.
- `version` (string, optional, nullable)

### RunSection-Output

- `tasks` (list of Task-Output, required)
- `concurrency` (integer, optional, default: 1)
- `fail_fast` (boolean, optional, default: true)
- `fanout` (boolean, optional, default: false)
- `region` (string, optional, nullable)
- `resume_on_start` (boolean, optional, nullable)
- `sandbox` (SandboxConfig, optional, nullable) — Sandbox requirements for job runs (matches compute IncomingWebhookSandboxTemplate shape).
- `teardown_on_complete` (boolean, optional, nullable)
- `timeout` (RunSectionOutputTimeout, optional, nullable) — Default step timeout: positive seconds or one s, m, h duration.
- `workdir` (string, optional, nullable) — Working directory for every exec and run_agent step. Defaults to ".". Falls back to run.sandbox.workdir when omitted.

### JobOutputSpec

Public job output contract. Writers emit the producer type; lines bind the published type after reduce. Session agents and $ISLO_OUTPUT use producer types (collect/gather still send the producer type, not the published array).

- `type` (enum, required)
  - Allowed values: `string`, `integer`, `number`, `boolean`, `array`
- `description` (string, optional, nullable)
- `enum` (list of any, optional, nullable)
- `items` (enum, optional, nullable) — Item type for array outputs. Required at deploy when type = array. Do not use reduce = collect with type = array; use gather to concatenate arrays.
  - Allowed values: `string`, `integer`, `number`, `boolean`
- `reduce` (enum, optional, default: one) — one: exactly one claiming step. last: last successful write in manifest task order. collect: published array of producer values (dense nulls for missing tasks); required collect must be claimed by every task. gather: concatenate arrays or collect scalars, skipping omissions.
  - Allowed values: `one`, `last`, `collect`, `gather`
- `required` (boolean, optional, default: true)

### ScheduleSection

- `cron` (string, required) — Cron expression; validated at deploy time. Every param the schedule uses must have a default before you add [schedule].
- `enabled` (boolean, optional, default: true)
- `timezone` (string, optional, default: UTC)

### VerificationSection

- `enabled` (boolean, optional, default: false)
- `gate` (VerificationGate, optional, nullable)

### JobParamSpec

- `type` (JobParamSpecType, required)
- `description` (string, optional, nullable)
- `enum` (list of any, optional, nullable)
- `items` (enum, optional, nullable) — Item type when type = array.
  - Allowed values: `string`, `integer`, `number`, `boolean`
- `pattern` (string, optional, nullable)
- `prefix` (string, optional, nullable)
- `required` (boolean, optional, default: false) — Cannot combine required=true with a default.

### Task-Output

- `name` (string, required)
- `steps` (list of TaskStep-Output, required)
- `sandbox` (SandboxConfig, optional, nullable) — Sandbox requirements for job runs (matches compute IncomingWebhookSandboxTemplate shape).

### SandboxConfig

Sandbox requirements for job runs (matches compute IncomingWebhookSandboxTemplate shape).

- `cache_key` (string, optional, nullable)
- `disk_gb` (integer, optional, default: 10)
- `env` (map from string to string, optional, nullable)
- `environment` (string, optional, nullable)
- `gateway_profile` (string, optional, nullable)
- `image` (string, optional, nullable) — Required for provision/ensure.
- `init` (SandboxConfigInit, optional, nullable)
- `internet_enabled` (boolean, optional, default: true)
- `lifecycle` (LifecyclePolicy, optional, nullable)
- `memory_mb` (integer, optional, default: 2048)
- `mode` (enum, optional, default: provision)
  - Allowed values: `provision`, `ensure`, `reuse`
- `name` (string, optional, nullable) — Required for ensure/reuse. Supports \{\{param}} substitution.
- `setup_scripts` (list of SetupScript, optional, nullable)
- `snapshot_name` (string, optional, nullable)
- `sources` (list of ControlPlaneGitSource, optional, nullable)
- `template` (SandboxTemplateRef, optional, nullable)
- `vcpus` (integer, optional, default: 2)
- `workdir` (string, optional, nullable) — Sandbox default working directory. Used when [run].workdir is omitted.

### RunSectionOutputTimeout

Default step timeout: positive seconds or one s, m, h duration.

- integer
- string

### VerificationGate

- `compare_to` (string, optional, nullable)
- `min_pass_rate` (double, optional, nullable)

### JobParamSpecType

- enum
  - Allowed values: `string`, `integer`, `number`, `boolean`
- "array"

### TaskStep-Output

One compute action per step. Define exactly one action key (exec, run_agent, snapshot, pause, resume, or delete). Task names and step names must be unique and non-blank. A job with [outputs], exactly one session run_agent step, and no step listing outputs implicitly claims every output key. More than one potential writer, or any explicit outputs list, requires every writer to claim.

- `delete` (boolean, optional, nullable)
- `download` (string, optional, nullable) — Not implemented yet; do not author.
- `exec` (TaskStepOutputExec, optional, nullable) — Shell command. Supports \{\{name}} placeholders in each argv element. Control plane sets \$ISLO\_OUTPUT to /dev/null when the step claims no output keys, or /tmp/islo\_output.\<job\_run\_id>.\<random> when it claims keys. Write key=value lines (JSON after =, raw string fallback for type=string). Do not pre-create the file. Cap is 64 KiB.
- `name` (string, optional, nullable) — Unique non-blank step name within the task.
- `outputs` (TaskStepOutputOutputs, optional, nullable) — Claim job output keys. List shortcut: outputs = ["summary"]. Table: [run.tasks.steps.outputs.summary] from = "agent_key", required = true.
- `pause` (boolean, optional, nullable)
- `resume` (boolean, optional, nullable)
- `run_agent` (TaskStepOutputRunAgent, optional, nullable) — Run an agent step. Session mode publishes claimed producer keys as structured JSON. Exec mode uses $ISLO_OUTPUT like exec.
- `run_decision` (RunDecisionStepAction, optional, nullable)
- `snapshot` (SnapshotStepAction, optional, nullable)
- `timeout` (TaskStepOutputTimeout, optional, nullable) — Max wall-clock duration: positive seconds or one s, m, h duration.
- `upload` (string, optional, nullable) — Not implemented yet; do not author.
- `user` (string, optional, nullable)
- `workdir` (string, optional, nullable) — Override \[run].workdir for this step. Supports \{\{name}} placeholders.

### SandboxConfigInit

- `type`: `custom` (SandboxInitCustom)
  - `await_ready` (boolean, optional, default: false)
  - `capabilities` (list of enum, optional)
    - Allowed values: `ssh`, `docker`, `browser-use`
- `type`: `full` (SandboxInitFull)
- `type`: `minimal` (SandboxInitMinimal)

### LifecyclePolicy

- `auto_resume` (enum, optional)
  - Allowed values: `never`, `on_activity`
- `delete_after` (long, optional, nullable)
- `pause_after` (long, optional, nullable)
- `pause_after_idle` (long, optional, nullable)

### SetupScript

A named setup script to execute after git clones.

- `script` (string, required)
- `name` (string, optional)

### ControlPlaneGitSource

- `repo_url` (string, required)
- `branch` (string, optional, nullable)
- `primary` (boolean, optional, default: false)
- `target_path` (string, optional, nullable)

### SandboxTemplateRef

- `name` (string, required)
- `version` (integer, optional, nullable)

### TaskStepOutputExec

Shell command. Supports \{\{name}} placeholders in each argv element. Control plane sets \$ISLO\_OUTPUT to /dev/null when the step claims no output keys, or /tmp/islo\_output.\<job\_run\_id>.\<random> when it claims keys. Write key=value lines (JSON after =, raw string fallback for type=string). Do not pre-create the file. Cap is 64 KiB.

- list of string
- string

### TaskStepOutputOutputs

Claim job output keys. List shortcut: outputs = ["summary"]. Table: [run.tasks.steps.outputs.summary] from = "agent_key", required = true.

- list of string
- map from string to StepOutputClaim

### TaskStepOutputRunAgent

Run an agent step. Session mode publishes claimed producer keys as structured JSON. Exec mode uses $ISLO_OUTPUT like exec.

- `mode`: `exec` (RunAgentExecStepAction)
  - `command` (TaskStepOutputRunAgentDiscriminatorMappingExecCommand, required)
  - `harness` (enum, required)
    - Allowed values: `codex`, `cursor`, `claude`, `opencode`, `custom`
  - `model` (string, optional, nullable)
- `mode`: `session` (RunAgentSessionStepAction)
  - `harness` (enum, required) — Session outputs require claude, codex, cursor, or opencode.
    - Allowed values: `codex`, `cursor`, `claude`, `opencode`
  - `command` (TaskStepOutputRunAgentDiscriminatorMappingSessionCommand, optional, nullable)
  - `effort` (string, optional, nullable) — Reasoning effort token. Requires model. Legal values come from the effort table on GET /inference/models, which is keyed by harness and optionally by model. For cursor the pair also resolves to a real model id, because cursor encodes effort in the id rather than taking a flag. Omit to use the harness default.
  - `knowledge` (list of KnowledgeBinding, optional, nullable)
  - `mcp` (list of McpEntry, optional, nullable) — MCP server descriptors to make available to the agent. Each entry carries a key (unique label) and url (MCP endpoint). Duplicates by key are rejected.
  - `model` (string, optional, nullable)
  - `model_provider` (enum, optional, nullable)
    - Allowed values: `islo`, `islo_inference`
  - `prompt` (TaskStepOutputRunAgentDiscriminatorMappingSessionPrompt, optional, nullable)
  - `resume_prompt` (TaskStepOutputRunAgentDiscriminatorMappingSessionResumePrompt, optional, nullable)
  - `session` (string, optional, nullable)
  - `skills` (list of string, optional, nullable)

### RunDecisionStepAction

- `questions` (map from string to map from string to any, required)
- `state` (RunDecisionStepActionState, required)
- `assets` (map from string to map from string to any, optional, nullable)
- `input_kind` (enum, optional, default: text)
  - Allowed values: `text`, `image`
- `model` (string, optional, nullable)

### SnapshotStepAction

- `name` (string, required)

### TaskStepOutputTimeout

Max wall-clock duration: positive seconds or one s, m, h duration.

- integer
- string

### StepOutputClaim

- `from` (string, optional, nullable) — Writer key. Defaults to the job output key.
- `required` (boolean, optional, nullable) — May tighten the job-level required flag, not loosen it.

### TaskStepOutputRunAgentDiscriminatorMappingExecCommand

- list of string
- string

### TaskStepOutputRunAgentDiscriminatorMappingSessionCommand

- list of string
- string

### KnowledgeBinding

- `slug` (string, required)
- `version` (string, optional, nullable) — Immutable knowledge version UUID. Omit to resolve the latest active version when the binding is consumed.

### McpEntry

One MCP server descriptor in a run_agent step.

- `key` (string, required)
- `url` (string, required)

### TaskStepOutputRunAgentDiscriminatorMappingSessionPrompt

- `type`: `knowledge` (KnowledgeBinding)
  - `slug` (string, required)
  - `version` (string, optional, nullable) — Immutable knowledge version UUID. Omit to resolve the latest active version when the binding is consumed.
- `type`: `literal` (LiteralBinding)
  - `value` (any, required)

### TaskStepOutputRunAgentDiscriminatorMappingSessionResumePrompt

- `type`: `knowledge` (KnowledgeBinding)
  - `slug` (string, required)
  - `version` (string, optional, nullable) — Immutable knowledge version UUID. Omit to resolve the latest active version when the binding is consumed.
- `type`: `literal` (LiteralBinding)
  - `value` (any, required)

### RunDecisionStepActionState

- `type`: `input` (DecisionInputBinding)
  - `name` (string, required)
- `type`: `literal` (LiteralBinding)
  - `value` (any, required)
- `type`: `step_output` (StepOutputBinding)
  - `name` (string, required)
  - `step` (string, required)

## Examples

**Response**

```json
{
  "items": [
    {
      "content_hash": "string",
      "deployed_at": "2024-01-15T09:30:00Z",
      "id": "string",
      "manifest": {
        "job": {
          "name": "string",
          "description": "string",
          "params": {},
          "version": "string"
        },
        "run": {
          "tasks": [
            {
              "name": "string",
              "steps": [
                {
                  "delete": true,
                  "download": "string",
                  "exec": [
                    "string"
                  ],
                  "name": "string",
                  "outputs": {},
                  "pause": true,
                  "resume": true,
                  "run_agent": {
                    "mode": "session",
                    "harness": "codex",
                    "command": [
                      "string"
                    ],
                    "effort": "string",
                    "knowledge": [
                      {
                        "slug": "string",
                        "version": "string",
                        "type": "string"
                      }
                    ],
                    "mcp": [
                      {
                        "key": "string",
                        "url": "string"
                      }
                    ],
                    "model": "string",
                    "model_provider": "islo",
                    "prompt": {
                      "type": "string",
                      "value": null
                    },
                    "resume_prompt": {
                      "type": "string",
                      "value": null
                    },
                    "session": "string",
                    "skills": [
                      "string"
                    ]
                  },
                  "run_decision": {
                    "questions": {},
                    "state": {
                      "type": "string",
                      "value": null
                    },
                    "assets": {},
                    "input_kind": "text",
                    "model": "string"
                  },
                  "snapshot": {
                    "name": "string"
                  },
                  "timeout": 1,
                  "upload": "string",
                  "user": "string",
                  "workdir": "string"
                }
              ],
              "sandbox": {
                "cache_key": "string",
                "disk_gb": 10,
                "env": {},
                "environment": "string",
                "gateway_profile": "string",
                "image": "string",
                "init": {
                  "type": "minimal"
                },
                "internet_enabled": true,
                "lifecycle": {
                  "auto_resume": "never",
                  "delete_after": 1,
                  "pause_after": 1,
                  "pause_after_idle": 1
                },
                "memory_mb": 2048,
                "mode": "provision",
                "name": "string",
                "setup_scripts": [
                  {
                    "script": "string",
                    "name": ""
                  }
                ],
                "snapshot_name": "string",
                "sources": [
                  {
                    "repo_url": "string",
                    "branch": "string",
                    "primary": false,
                    "target_path": "string"
                  }
                ],
                "template": {
                  "name": "string",
                  "version": 1
                },
                "vcpus": 2,
                "workdir": "string"
              }
            }
          ],
          "concurrency": 1,
          "fail_fast": true,
          "fanout": false,
          "region": "string",
          "resume_on_start": true,
          "sandbox": {
            "cache_key": "string",
            "disk_gb": 10,
            "env": {},
            "environment": "string",
            "gateway_profile": "string",
            "image": "string",
            "init": {
              "type": "minimal"
            },
            "internet_enabled": true,
            "lifecycle": {
              "auto_resume": "never",
              "delete_after": 1,
              "pause_after": 1,
              "pause_after_idle": 1
            },
            "memory_mb": 2048,
            "mode": "provision",
            "name": "string",
            "setup_scripts": [
              {
                "script": "string",
                "name": ""
              }
            ],
            "snapshot_name": "string",
            "sources": [
              {
                "repo_url": "string",
                "branch": "string",
                "primary": false,
                "target_path": "string"
              }
            ],
            "template": {
              "name": "string",
              "version": 1
            },
            "vcpus": 2,
            "workdir": "string"
          },
          "teardown_on_complete": true,
          "timeout": 1,
          "workdir": "string"
        },
        "outputs": {},
        "schedule": {
          "cron": "string",
          "enabled": true,
          "timezone": "UTC"
        },
        "verification": {
          "enabled": false,
          "gate": {
            "compare_to": "string",
            "min_pass_rate": 0.5
          }
        }
      },
      "version_number": 1
    }
  ],
  "next_cursor": "string",
  "total": 1
}
```

**SDK Code**

```python
import requests

url = "https://api.islo.dev/factories/factory_id/jobs/name/versions"

headers = {
    "X-Islo-Api-Version": "X-Islo-Api-Version",
    "Authorization": "Bearer <api_key>"
}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.islo.dev/factories/factory_id/jobs/name/versions';
const options = {
  method: 'GET',
  headers: {'X-Islo-Api-Version': 'X-Islo-Api-Version', Authorization: 'Bearer <api_key>'}
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.islo.dev/factories/factory_id/jobs/name/versions"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-Islo-Api-Version", "X-Islo-Api-Version")
	req.Header.Add("Authorization", "Bearer <api_key>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.islo.dev/factories/factory_id/jobs/name/versions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-Islo-Api-Version"] = 'X-Islo-Api-Version'
request["Authorization"] = 'Bearer <api_key>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.islo.dev/factories/factory_id/jobs/name/versions")
  .header("X-Islo-Api-Version", "X-Islo-Api-Version")
  .header("Authorization", "Bearer <api_key>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.islo.dev/factories/factory_id/jobs/name/versions', [
  'headers' => [
    'Authorization' => 'Bearer <api_key>',
    'X-Islo-Api-Version' => 'X-Islo-Api-Version',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.islo.dev/factories/factory_id/jobs/name/versions");
var request = new RestRequest(Method.GET);
request.AddHeader("X-Islo-Api-Version", "X-Islo-Api-Version");
request.AddHeader("Authorization", "Bearer <api_key>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-Islo-Api-Version": "X-Islo-Api-Version",
  "Authorization": "Bearer <api_key>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.islo.dev/factories/factory_id/jobs/name/versions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```