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

# Validate line manifest without deploying

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

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

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

### 204

Successful Response

## 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)

### 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)

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

### 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"
      }
    ]
  }
}
```

**SDK Code**

```python
import requests

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

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/validate';
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/validate"

	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/validate")

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/validate")
  .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/validate', [
  '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/validate");
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/validate")! 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()
```