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

# Get Factories Overview

GET https://api.islo.dev/factories/overview

Reference: https://docs.islo.dev/api-reference/factories/get-factories-overview

## Authentication

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

## Response

### 200

Successful Response

- `active` (integer, required)
- `cancelled` (integer, required)
- `draft` (integer, required)
- `metrics` (FactoryMetricsResponse, required)
- `total` (integer, required)
- `factories` (list of FactoryOverviewItem, optional)

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### FactoryMetricsResponse

- `active_runs` (integer, required)
- `success_rate_24h` (double, required)
- `throughput_24h` (integer, required)
- `total_lines` (integer, required)
- `cost_cents_24h` (integer, optional, default: 0)
- `daily` (list of DailyBucket, optional)
- `timezone` (string, optional, default: UTC)
- `total_jobs` (integer, optional, default: 0)
- `window_end` (string, optional, nullable)
- `window_start` (string, optional, nullable)

### FactoryOverviewItem

- `color` (string, required)
- `icon` (string, required)
- `id` (string, required)
- `is_default` (boolean, required)
- `key` (string, required)
- `metrics` (FactoryMetricsResponse, required)
- `name` (string, required)
- `status` (enum, required)
  - Allowed values: `draft`, `active`, `cancelled`

### ValidationError

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

### DailyBucket

- `date` (string, required)
- `artifacts` (DailyArtifacts, optional)
- `cost_cents` (integer, optional, default: 0)
- `failed` (integer, optional, default: 0)
- `running_seconds` (double, optional, default: 0) — Additive claimed compute-command execution seconds during this UTC day; excludes queue/orchestration gaps and may exceed one day when commands overlap
- `succeeded` (integer, optional, default: 0)
- `success_rate` (double, optional, nullable)
- `throughput` (integer, optional, default: 0)

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

### DailyArtifacts

- `github_pull_requests` (integer, optional, default: 0)
- `jira_issues` (integer, optional, default: 0)
- `knowledge_items` (integer, optional, default: 0)
- `linear_issues` (integer, optional, default: 0)
- `slack_messages` (integer, optional, default: 0)

## Examples

**Response**

```json
{
  "active": 1,
  "cancelled": 1,
  "draft": 1,
  "metrics": {
    "active_runs": 1,
    "success_rate_24h": 1.1,
    "throughput_24h": 1,
    "total_lines": 1,
    "cost_cents_24h": 0,
    "daily": [
      {
        "date": "string",
        "artifacts": {
          "github_pull_requests": 0,
          "jira_issues": 0,
          "knowledge_items": 0,
          "linear_issues": 0,
          "slack_messages": 0
        },
        "cost_cents": 0,
        "failed": 0,
        "running_seconds": 0,
        "succeeded": 0,
        "success_rate": 1.1,
        "throughput": 0
      }
    ],
    "timezone": "UTC",
    "total_jobs": 0,
    "window_end": "string",
    "window_start": "string"
  },
  "total": 1,
  "factories": [
    {
      "color": "string",
      "icon": "string",
      "id": "string",
      "is_default": true,
      "key": "string",
      "metrics": {
        "active_runs": 1,
        "success_rate_24h": 1.1,
        "throughput_24h": 1,
        "total_lines": 1,
        "cost_cents_24h": 0,
        "daily": [
          {
            "date": "string",
            "artifacts": {
              "github_pull_requests": 0,
              "jira_issues": 0,
              "knowledge_items": 0,
              "linear_issues": 0,
              "slack_messages": 0
            },
            "cost_cents": 0,
            "failed": 0,
            "running_seconds": 0,
            "succeeded": 0,
            "success_rate": 1.1,
            "throughput": 0
          }
        ],
        "timezone": "UTC",
        "total_jobs": 0,
        "window_end": "string",
        "window_start": "string"
      },
      "name": "string",
      "status": "draft"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.islo.dev/factories/overview"

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

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

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