# Factory Control Plane

Source: https://opvs.ai/docs/api/factory-control-plane

## `GET` /api/v1/factory/control-plane/project-overlay

**Project Overlay Files**

The project layer's commands + skills, resolved to bodies, for the box to write.

**Parameters**

- `project_id` (query, string, required) — The claimed card's project (claim payload).
- `role` (query, string, required) — The worker's role — decides what base+role already installs.

```bash
curl -X GET 'https://app.opvs.ai/api/v1/factory/control-plane/project-overlay' \
  -H 'Authorization: Bearer <token>'
```

```python
import httpx

resp = httpx.get(
    "https://app.opvs.ai/api/v1/factory/control-plane/project-overlay",
    headers={"Authorization": "Bearer <token>"},
)
resp.raise_for_status()
print(resp.json())
```

```javascript
const resp = await fetch("https://app.opvs.ai/api/v1/factory/control-plane/project-overlay", {
  method: "GET",
  headers: { "Authorization": "Bearer <token>" }
});
const data = await resp.json();
console.log(data);
```

```go
package main

import (
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://app.opvs.ai/api/v1/factory/control-plane/project-overlay", nil)
	req.Header.Set("Authorization", "Bearer <token>")
	resp, _ := http.DefaultClient.Do(req)
	defer resp.Body.Close()
}
```

**Responses**

- `200` — Successful Response
- `422` — Validation Error

## `GET` /api/v1/factory/control-plane/project-library

**Project Library**

List one library source after proving the project belongs to this brand.

**Parameters**

- `project_id` (query, string, required)
- `source` (query, string, required)

```bash
curl -X GET 'https://app.opvs.ai/api/v1/factory/control-plane/project-library' \
  -H 'Authorization: Bearer <token>'
```

```python
import httpx

resp = httpx.get(
    "https://app.opvs.ai/api/v1/factory/control-plane/project-library",
    headers={"Authorization": "Bearer <token>"},
)
resp.raise_for_status()
print(resp.json())
```

```javascript
const resp = await fetch("https://app.opvs.ai/api/v1/factory/control-plane/project-library", {
  method: "GET",
  headers: { "Authorization": "Bearer <token>" }
});
const data = await resp.json();
console.log(data);
```

```go
package main

import (
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://app.opvs.ai/api/v1/factory/control-plane/project-library", nil)
	req.Header.Set("Authorization", "Bearer <token>")
	resp, _ := http.DefaultClient.Do(req)
	defer resp.Body.Close()
}
```

**Responses**

- `200` — Successful Response
- `422` — Validation Error

## Project Overlay Files

`GET https://app.opvs.ai/api/v1/factory/control-plane/project-overlay`

Also as: MCP `tool_call software-factory.getProjectOverlay` · skill `software-factory`

The project layer's commands + skills, resolved to bodies, for the box to write.

| Code | When | What to do |
| --- | --- | --- |
| 422 | Validation Error |  |

## Project Library

`GET https://app.opvs.ai/api/v1/factory/control-plane/project-library`

Also as: MCP `tool_call software-factory.getProjectLibrary` · skill `software-factory`

List one library source after proving the project belongs to this brand.

| Code | When | What to do |
| --- | --- | --- |
| 422 | Validation Error |  |
