> 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.

# Deploy line manifest

POST https://api.islo.dev/factory/lines/{name}/deploy
Content-Type: application/json

Reference: https://docs.islo.dev/api-reference/factory/deploy-factory-line

## Authentication

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

## Request

### Path parameters

- `name` (string, required)

### Body (application/json)

This endpoint expects a LineDeployRequest.

- `manifest` (LineManifest-Input, required) — Line manifest (authored as TOML or JSON, stored as JSON)

## Response

### 201

Successful Response

- `id` (string, required)
- `version_number` (integer, required)
- `content_hash` (string, required)
- `deployed_at` (datetime, required)
- `manifest` (LineManifest-Output, required) — Full line.toml manifest (TOML or JSON authoring; stored as JSON).
- `input_params` (list of JobParamDefinition, optional)

## Errors

### 401 Unauthorized Error

Unauthorized

- `code` (enum, required)
  - Allowed values: `AUTH_REQUIRED`, `INVALID_REQUEST`, `NOT_FOUND`, `VALIDATION_ERROR`, `SANDBOX_NOT_FOUND`, `SANDBOX_ALREADY_EXISTS`, `SANDBOX_INVALID_STATE`, `SANDBOX_PROVISIONING_FAILED`, `RESOURCE_NOT_FOUND`, `FILE_NOT_FOUND`, `COMMAND_NOT_FOUND`, `EXEC_FAILED`, `FILE_OPERATION_ERROR`, `RESOURCE_UNAVAILABLE`, `ACCESS_DENIED`, `CACHE_CONFLICT`, `BILLING_NOT_ALLOWED`, `TENANT_SUSPENDED`, `RATE_LIMITED`, `TIMEOUT`, `GONE`, `BAD_GATEWAY`, `INTERNAL_ERROR`
- `message` (string, required)
- `available` (long, optional, nullable)
- `limit` (long, optional, nullable)
- `request_id` (string, optional, nullable)
- `requested` (long, optional, nullable)
- `resource` (string, optional, nullable) — Optional capacity fields populated for `InsufficientResources` errors so clients (including peer agents) can recover the typed payload across HTTP boundaries instead of collapsing it to an opaque message.

### 422 Unprocessable Entity Error

Unprocessable Content

- `code` (enum, required)
  - Allowed values: `AUTH_REQUIRED`, `INVALID_REQUEST`, `NOT_FOUND`, `VALIDATION_ERROR`, `SANDBOX_NOT_FOUND`, `SANDBOX_ALREADY_EXISTS`, `SANDBOX_INVALID_STATE`, `SANDBOX_PROVISIONING_FAILED`, `RESOURCE_NOT_FOUND`, `FILE_NOT_FOUND`, `COMMAND_NOT_FOUND`, `EXEC_FAILED`, `FILE_OPERATION_ERROR`, `RESOURCE_UNAVAILABLE`, `ACCESS_DENIED`, `CACHE_CONFLICT`, `BILLING_NOT_ALLOWED`, `TENANT_SUSPENDED`, `RATE_LIMITED`, `TIMEOUT`, `GONE`, `BAD_GATEWAY`, `INTERNAL_ERROR`
- `message` (string, required)
- `available` (long, optional, nullable)
- `limit` (long, optional, nullable)
- `request_id` (string, optional, nullable)
- `requested` (long, optional, nullable)
- `resource` (string, optional, nullable) — Optional capacity fields populated for `InsufficientResources` errors so clients (including peer agents) can recover the typed payload across HTTP boundaries instead of collapsing it to an opaque message.

## Types

### LineManifest-Input

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

- `line` (LineSection, required)
- `trigger` (LineManifestInputTrigger, required)
- `stages` (list of LineStage, required)
- `transitions` (list of LineManifestInputTransitionsItems, optional)
- `agent` (LineAgentConfig, optional, nullable)
- `limits` (LineLimits-Input, optional)

### LineManifest-Output

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

- `line` (LineSection, required)
- `trigger` (LineManifestOutputTrigger, required)
- `stages` (list of LineStage, required)
- `transitions` (list of LineManifestOutputTransitionsItems, optional)
- `agent` (LineAgentConfig, optional, nullable)
- `limits` (LineLimits-Output, optional)

### JobParamDefinition

- `name` (string, required)
- `type` (enum, required)
  - Allowed values: `string`, `integer`, `number`, `boolean`, `array`
- `items` (enum, optional, nullable)
  - Allowed values: `string`, `integer`, `number`, `boolean`
- `required` (boolean, optional, default: false)
- `description` (string, optional, nullable)
- `pattern` (string, optional, nullable)
- `prefix` (string, optional, nullable)
- `enum` (list of any, optional, nullable)

### LineSection

- `name` (string, required)
- `description` (string, optional, nullable)
- `category` (string, optional, nullable)

### LineManifestInputTrigger

- `type`: `integration_trigger` (IntegrationTriggerSection)
  - `name` (string, required)
  - `provider` (string, required)
  - `selector` (LineManifestInputTriggerDiscriminatorMappingIntegrationTriggerSelector, required)
  - `filters` (list of LineCondition-Input, optional)
  - `outputs` (map from string to TriggerPathBinding, optional)
- `type`: `manual` (ManualTriggerSection)
- `type`: `schedule` (ScheduleTriggerSection)
  - `cron` (string, required)
  - `inputs` (map from string to any, optional)
  - `timezone` (string, optional, default: UTC)
- `type`: `webhook` (WebhookTriggerSection)
  - `path` (string, required)

### LineStage

A node in the line graph that runs one job per visit.

- `id` (string, required)
- `job` (string, required)
- `job_version_id` (string, optional, nullable)
- `description` (string, optional, nullable)
- `max_attempts` (integer, optional, nullable)

### LineManifestInputTransitionsItems

- `type`: `agentic` (AgenticTransition)
  - `from` (string, required)
  - `id` (string, required)
  - `instructions` (LineManifestInputTransitionsItemsDiscriminatorMappingAgenticInstructions, required)
  - `label` (string, optional, nullable)
  - `options` (list of AgenticTransitionOption, optional)
- `type`: `conditional` (ConditionalTransition)
  - `from` (string, required)
  - `id` (string, required)
  - `to` (string, required)
  - `when` (LineCondition-Input, required)
  - `label` (string, optional, nullable)
  - `max_iterations` (integer, optional, nullable)
  - `params` (map from string to LineManifestInputTransitionsItemsDiscriminatorMappingConditionalParams, optional)

### LineAgentConfig

- `instructions` (LineAgentConfigInstructions, optional, nullable)

### LineLimits-Input

- `max_iterations` (integer, optional, nullable)
- `budget_usd` (LineLimitsInputBudgetUsd, optional, nullable)
- `timeout` (string, optional, nullable)

### LineManifestOutputTrigger

- `type`: `integration_trigger` (IntegrationTriggerSection)
  - `name` (string, required)
  - `provider` (string, required)
  - `selector` (LineManifestOutputTriggerDiscriminatorMappingIntegrationTriggerSelector, required)
  - `filters` (list of LineCondition-Output, optional)
  - `outputs` (map from string to TriggerPathBinding, optional)
- `type`: `manual` (ManualTriggerSection)
- `type`: `schedule` (ScheduleTriggerSection)
  - `cron` (string, required)
  - `inputs` (map from string to any, optional)
  - `timezone` (string, optional, default: UTC)
- `type`: `webhook` (WebhookTriggerSection)
  - `path` (string, required)

### LineManifestOutputTransitionsItems

- `type`: `agentic` (AgenticTransition)
  - `from` (string, required)
  - `id` (string, required)
  - `instructions` (LineManifestOutputTransitionsItemsDiscriminatorMappingAgenticInstructions, required)
  - `label` (string, optional, nullable)
  - `options` (list of AgenticTransitionOption, optional)
- `type`: `conditional` (ConditionalTransition)
  - `from` (string, required)
  - `id` (string, required)
  - `to` (string, required)
  - `when` (LineCondition-Output, required)
  - `label` (string, optional, nullable)
  - `max_iterations` (integer, optional, nullable)
  - `params` (map from string to LineManifestOutputTransitionsItemsDiscriminatorMappingConditionalParams, optional)

### LineLimits-Output

- `max_iterations` (integer, optional, nullable)
- `budget_usd` (string, optional, nullable)
- `timeout` (string, optional, nullable)

### LineManifestInputTriggerDiscriminatorMappingIntegrationTriggerSelector

- `provider`: `github` (GitHubRepositorySelector)
  - `kind` ("repository", optional, default: repository)
  - `repositories` (list of string, optional)
  - `scope` (enum, optional)
    - Allowed values: `all`, `selected`
- `provider`: `linear` (LinearIssueSelector)
  - `kind` ("issue", optional, default: issue)
  - `labels` (list of string, optional)
  - `project_ids` (list of string, optional)
  - `scope` (enum, optional)
    - Allowed values: `all`, `selected`
  - `states` (list of string, optional)
  - `team_ids` (list of string, optional)
- `provider`: `slack` (SlackChannelSelector)
  - `channels` (list of string, optional)
  - `kind` ("channel", optional, default: channel)
  - `scope` (enum, optional)
    - Allowed values: `all`, `selected`

### LineCondition-Input

- `op`: `all` (CompoundCondition)
  - `conditions` (list of LineCondition-Input, required)
- `op`: `always` (AlwaysCondition)
- `op`: `any` (CompoundCondition)
  - `conditions` (list of LineCondition-Input, required)
- `op`: `contains` (BinaryCondition)
  - `left` (ConditionOperand, required)
  - `right` (ConditionOperand, required)
- `op`: `eq` (BinaryCondition)
  - `left` (ConditionOperand, required)
  - `right` (ConditionOperand, required)
- `op`: `exists` (UnaryCondition)
  - `operand` (ConditionOperand, required)
- `op`: `falsy` (UnaryCondition)
  - `operand` (ConditionOperand, required)
- `op`: `missing` (UnaryCondition)
  - `operand` (ConditionOperand, required)
- `op`: `ne` (BinaryCondition)
  - `left` (ConditionOperand, required)
  - `right` (ConditionOperand, required)
- `op`: `not` (NotCondition)
  - `condition` (LineCondition-Input, required)
- `op`: `not_contains` (BinaryCondition)
  - `left` (ConditionOperand, required)
  - `right` (ConditionOperand, required)
- `op`: `truthy` (UnaryCondition)
  - `operand` (ConditionOperand, required)

### TriggerPathBinding

- `type` ("trigger_path", required)
- `path` (string, required)

### LineManifestInputTransitionsItemsDiscriminatorMappingAgenticInstructions

- `type`: `knowledge` (KnowledgeBinding)
  - `slug` (string, required)
- `type`: `literal` (LiteralBinding)
  - `value` (any, required)

### AgenticTransitionOption

- `name` (string, required)
- `to` (string, required)
- `label` (string, optional, nullable)
- `params` (map from string to AgenticTransitionOptionParams, optional)

### LineManifestInputTransitionsItemsDiscriminatorMappingConditionalParams

- `type`: `input` (InputBinding)
  - `name` (string, required)
- `type`: `literal` (LiteralBinding)
  - `value` (any, required)
- `type`: `output` (OutputBinding)
  - `name` (string, required)
  - `stage` (string, required)

### LineAgentConfigInstructions

- `type`: `knowledge` (KnowledgeBinding)
  - `slug` (string, required)
- `type`: `literal` (LiteralBinding)
  - `value` (any, required)

### LineLimitsInputBudgetUsd

### LineManifestOutputTriggerDiscriminatorMappingIntegrationTriggerSelector

- `provider`: `github` (GitHubRepositorySelector)
  - `kind` ("repository", optional, default: repository)
  - `repositories` (list of string, optional)
  - `scope` (enum, optional)
    - Allowed values: `all`, `selected`
- `provider`: `linear` (LinearIssueSelector)
  - `kind` ("issue", optional, default: issue)
  - `labels` (list of string, optional)
  - `project_ids` (list of string, optional)
  - `scope` (enum, optional)
    - Allowed values: `all`, `selected`
  - `states` (list of string, optional)
  - `team_ids` (list of string, optional)
- `provider`: `slack` (SlackChannelSelector)
  - `channels` (list of string, optional)
  - `kind` ("channel", optional, default: channel)
  - `scope` (enum, optional)
    - Allowed values: `all`, `selected`

### LineCondition-Output

- `op`: `all` (CompoundCondition)
  - `conditions` (list of LineCondition-Output, required)
- `op`: `always` (AlwaysCondition)
- `op`: `any` (CompoundCondition)
  - `conditions` (list of LineCondition-Output, required)
- `op`: `contains` (BinaryCondition)
  - `left` (ConditionOperand, required)
  - `right` (ConditionOperand, required)
- `op`: `eq` (BinaryCondition)
  - `left` (ConditionOperand, required)
  - `right` (ConditionOperand, required)
- `op`: `exists` (UnaryCondition)
  - `operand` (ConditionOperand, required)
- `op`: `falsy` (UnaryCondition)
  - `operand` (ConditionOperand, required)
- `op`: `missing` (UnaryCondition)
  - `operand` (ConditionOperand, required)
- `op`: `ne` (BinaryCondition)
  - `left` (ConditionOperand, required)
  - `right` (ConditionOperand, required)
- `op`: `not` (NotCondition)
  - `condition` (LineCondition-Output, required)
- `op`: `not_contains` (BinaryCondition)
  - `left` (ConditionOperand, required)
  - `right` (ConditionOperand, required)
- `op`: `truthy` (UnaryCondition)
  - `operand` (ConditionOperand, required)

### LineManifestOutputTransitionsItemsDiscriminatorMappingAgenticInstructions

- `type`: `knowledge` (KnowledgeBinding)
  - `slug` (string, required)
- `type`: `literal` (LiteralBinding)
  - `value` (any, required)

### LineManifestOutputTransitionsItemsDiscriminatorMappingConditionalParams

- `type`: `input` (InputBinding)
  - `name` (string, required)
- `type`: `literal` (LiteralBinding)
  - `value` (any, required)
- `type`: `output` (OutputBinding)
  - `name` (string, required)
  - `stage` (string, required)

### ConditionOperand

- `type`: `literal` (LiteralBinding)
  - `value` (any, required)
- `type`: `stage` (StageOperand)
  - `path` (string, required)
  - `stage` (string, optional, nullable)
- `type`: `transition` (TransitionOperand)
  - `id` (string, required)
  - `path` (string, required)
- `type`: `trigger` (TriggerOperand)
  - `path` (string, required)

### AgenticTransitionOptionParams

- `type`: `input` (InputBinding)
  - `name` (string, required)
- `type`: `literal` (LiteralBinding)
  - `value` (any, required)
- `type`: `output` (OutputBinding)
  - `name` (string, required)
  - `stage` (string, required)

## Examples

**Request**

```json
{
  "manifest": {
    "line": {
      "name": "string"
    },
    "trigger": {},
    "stages": [
      {
        "id": "string",
        "job": "string"
      }
    ]
  }
}
```

**Response**

```json
{
  "id": "string",
  "version_number": 1,
  "content_hash": "string",
  "deployed_at": "2024-01-15T09:30:00Z",
  "manifest": {
    "line": {
      "name": "string",
      "description": "string",
      "category": "string"
    },
    "trigger": {
      "type": "manual"
    },
    "stages": [
      {
        "id": "string",
        "job": "string",
        "job_version_id": "string",
        "description": "string",
        "max_attempts": 1
      }
    ],
    "transitions": [
      {
        "type": "string",
        "id": "string",
        "from": "string",
        "to": "string",
        "when": {
          "op": "string"
        },
        "label": "string",
        "max_iterations": 1,
        "params": {}
      }
    ],
    "agent": {
      "instructions": {
        "type": "string",
        "value": null
      }
    },
    "limits": {
      "max_iterations": 1,
      "budget_usd": "string",
      "timeout": "string"
    }
  },
  "input_params": [
    {
      "name": "string",
      "type": "string",
      "items": "string",
      "required": false,
      "description": "string",
      "pattern": "string",
      "prefix": "string",
      "enum": [
        null
      ]
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.islo.dev/factory/lines/name/deploy"

payload = { "manifest": {
        "line": { "name": "string" },
        "trigger": {},
        "stages": [
            {
                "id": "string",
                "job": "string"
            }
        ]
    } }
headers = {
    "Authorization": "Bearer <api_key>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.islo.dev/factory/lines/name/deploy';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <api_key>', 'Content-Type': 'application/json'},
  body: '{"manifest":{"line":{"name":"string"},"trigger":{},"stages":[{"id":"string","job":"string"}]}}'
};

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"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.islo.dev/factory/lines/name/deploy"

	payload := strings.NewReader("{\n  \"manifest\": {\n    \"line\": {\n      \"name\": \"string\"\n    },\n    \"trigger\": {},\n    \"stages\": [\n      {\n        \"id\": \"string\",\n        \"job\": \"string\"\n      }\n    ]\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <api_key>")
	req.Header.Add("Content-Type", "application/json")

	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/factory/lines/name/deploy")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <api_key>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"manifest\": {\n    \"line\": {\n      \"name\": \"string\"\n    },\n    \"trigger\": {},\n    \"stages\": [\n      {\n        \"id\": \"string\",\n        \"job\": \"string\"\n      }\n    ]\n  }\n}"

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.post("https://api.islo.dev/factory/lines/name/deploy")
  .header("Authorization", "Bearer <api_key>")
  .header("Content-Type", "application/json")
  .body("{\n  \"manifest\": {\n    \"line\": {\n      \"name\": \"string\"\n    },\n    \"trigger\": {},\n    \"stages\": [\n      {\n        \"id\": \"string\",\n        \"job\": \"string\"\n      }\n    ]\n  }\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.islo.dev/factory/lines/name/deploy', [
  'body' => '{
  "manifest": {
    "line": {
      "name": "string"
    },
    "trigger": {},
    "stages": [
      {
        "id": "string",
        "job": "string"
      }
    ]
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <api_key>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.islo.dev/factory/lines/name/deploy");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <api_key>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"manifest\": {\n    \"line\": {\n      \"name\": \"string\"\n    },\n    \"trigger\": {},\n    \"stages\": [\n      {\n        \"id\": \"string\",\n        \"job\": \"string\"\n      }\n    ]\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <api_key>",
  "Content-Type": "application/json"
]
let parameters = ["manifest": [
    "line": ["name": "string"],
    "trigger": [],
    "stages": [
      [
        "id": "string",
        "job": "string"
      ]
    ]
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.islo.dev/factory/lines/name/deploy")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```