# Developer portal

What you need to drive SDLC Bot from your own code, scripts or AI agent.

## Machine-readable entry points

| Resource | URL |
| --- | --- |
| Agent overview | [/llms.txt](https://sdlcbot.dev/llms.txt) |
| Markdown of any public page | append `.md`, or send `Accept: text/markdown` |
| OpenAPI 3.1 document | [https://claude-sdlc-bot-api-production.up.railway.app/openapi.json](https://claude-sdlc-bot-api-production.up.railway.app/openapi.json) |
| Interactive API reference | [https://claude-sdlc-bot-api-production.up.railway.app/docs](https://claude-sdlc-bot-api-production.up.railway.app/docs) |
| Sitemap | [/sitemap.xml](https://sdlcbot.dev/sitemap.xml) |

Public pages are content-negotiated: request one with
`Accept: text/markdown` and the same URL returns markdown, with
`Vary: Accept`. The same body is at the `.md` sibling of each path.

```bash
curl -s -H "Accept: text/markdown" https://sdlcbot.dev/developers
curl -s https://sdlcbot.dev/developers.md
```

## The API

Base URL: `https://claude-sdlc-bot-api-production.up.railway.app`

The API is the surface the web app and the desktop app use: projects,
initiatives, plans, tasks, sessions, logs, learnings, gates, transitions,
notifications, audit events and usage. Fetch `/openapi.json` for the full,
current definition rather than copying an endpoint list from a page.

Two endpoints are unauthenticated by design:

```bash
curl -s https://claude-sdlc-bot-api-production.up.railway.app/api/health
curl -s https://claude-sdlc-bot-api-production.up.railway.app/api/capabilities
```

### Authentication

Everything that touches organization data needs a bearer token issued to a
signed-in account, and organization-level routes also need the organization:

```http
GET /api/projects HTTP/1.1
Host: claude-sdlc-bot-api-production.up.railway.app
Authorization: Bearer <access token>
X-Org-Id: <organization id>
```

Routes anchored to a project or an entity resolve the organization from the
URL; if `X-Org-Id` is also sent, the two must agree. Expect `401` for a
missing or expired token, `400` for an organization-level route without a
valid `X-Org-Id`, and `403` when the account lacks the role or access.

There is no self-service API key. If you need programmatic access for a
service, write to support@sdlcbot.dev and say what you are building.

## The `sdlc` CLI

`sdlc` is the command-line interface for reading and changing SDLC Bot
state: finding and resolving work items, gathering an item's context, creating
and editing items, reading review evidence, crossing gates you approve,
inspecting sessions, and the guarded recoveries. It ships inside the desktop
app and is on `PATH` in every Workspace session the app starts, together with
skills that teach the session's AI CLI how to use it. It is not a standalone
download.

```bash
sdlc --help           # every command
sdlc context --json   # what this session targets
```

Add `--json` to any command for machine-readable output.

## How an agent should use this product

1. Read [/llms.txt](https://sdlcbot.dev/llms.txt) first. It names the jobs SDLC Bot is right for.
2. Inside a desktop Workspace session, file and edit work through `sdlc`, not
   raw GitHub calls. It puts the item on the board with the right type.
3. Never edit a work item's title or body on GitHub. The database owns that
   content and mirrors it outward one way, so a GitHub edit is overwritten.
4. Read session state from the API rather than re-running work. An open
   session is what stops an item being dispatched twice.
5. Respect the human gates. Admitting work, approving plans and admitting
   standalone items to development are human decisions unless a project has
   enabled the Scrum Master agent.

## Status and limits

- The API is versioned by its OpenAPI document, not by a URL prefix. Breaking
  changes are called out in the desktop release notes.
- Poll at most once every few seconds.
