# Flow for developers

Flow is a shared board that people and AI agents edit together: lists of cards you can add, move and archive, a booking page that adds cards, and an open API.

Call the same operations over plain HTTP, as MCP tools, or from a page through WebMCP. The base URL is `https://flow.ferrite.run`.

## Quickstart

Read something first. This request needs no setup:

```sh
curl -s 'https://flow.ferrite.run/api/board'
```

Read the whole board: every list from left to right, each with its cards from top to bottom. Use it first, because every other operation needs the list and card ids it gives. Returns the columns with their cards, the total number of cards, and whether the board was too large to read in full.

Then change something. Send an `idempotency-key` so a retry cannot run twice:

```sh
curl -s -X POST 'https://flow.ferrite.run/api/cards' \
  -H 'content-type: application/json' \
  -H 'idempotency-key: add_card-1' \
  -d '{"column":"todo","title":"Write the launch checklist"}'
```

To use Flow from an AI assistant, add its MCP server:

```sh
claude mcp add --transport http flow https://flow.ferrite.run/mcp
```

## Authentication and API keys

No API key, account or sign-up is needed: the API is keyless, so the first request you send can be a real one.

## Sandbox

The public address is the sandbox. Everybody shares one demonstration board and calls act as an anonymous visitor, so reads and writes are both safe to try. Add a card of your own before you experiment with moving or archiving, archive it when you have finished, and call `archive_card` with `archived` set to false to bring a card back.

The [sandbox page](/sandbox) is the place to start.

## Endpoints

| Operation | Request | What it does |
| --- | --- | --- |
| `get_board` | `GET /api/board` | Read the whole board: every list from left to right, each with its cards from top to bottom. Use it first, because every other operation needs the list and card ids it gives. Returns the columns with their cards, the total number of cards, and whether the board was too large to read in full. |
| `add_card` | `POST /api/cards` | Add a card to the bottom of a list. Use it to put a new piece of work or a booking on the board once get_board has shown you the lists. Returns the new card's id, its list and its position. |
| `move_card` | `POST /api/cards/{id}/move` | Move a card within its list or to another one. Use it with the neighbours you saw in get_board: name both to land between them, only `after` with a list's last card to land at the bottom, only `before` with its first card to land at the top, and neither for an empty list. Returns the card's list and new position, or a conflict when a named neighbour is no longer there. |
| `archive_card` | `POST /api/cards/{id}/archive` | Archive a card, or restore an archived one. Use it to take finished work off the board without deleting it: the card keeps its list and position, and the same call with archived set to false puts it back. Returns the card's id, list and position. |
| `rename_column` | `POST /api/columns/{id}/rename` | Rename a list. Use it when a list's purpose has changed; its id and its cards stay as they are, and everyone sees the new name. Returns the list's id and its new name. |

The [OpenAPI 3.1 document](/openapi.json) describes every parameter and response. The MCP server at `https://flow.ferrite.run/mcp` exposes the same operations as tools with the same names.

## Example requests

### `get_board`

```sh
curl -s 'https://flow.ferrite.run/api/board'
```

### `add_card`

```sh
curl -s -X POST 'https://flow.ferrite.run/api/cards' \
  -H 'content-type: application/json' \
  -H 'idempotency-key: add_card-1' \
  -d '{"column":"todo","title":"Write the launch checklist"}'
```

### `move_card`

```sh
curl -s -X POST 'https://flow.ferrite.run/api/cards/c-1/move' \
  -H 'content-type: application/json' \
  -H 'idempotency-key: move_card-1' \
  -d '{"column":"doing"}'
```

### `archive_card`

```sh
curl -s -X POST 'https://flow.ferrite.run/api/cards/c-1/archive' \
  -H 'content-type: application/json' \
  -H 'idempotency-key: archive_card-1' \
  -d '{"archived":true}'
```

### `rename_column`

```sh
curl -s -X POST 'https://flow.ferrite.run/api/columns/todo/rename' \
  -H 'content-type: application/json' \
  -H 'idempotency-key: rename_column-1' \
  -d '{"name":"To do"}'
```

## Conventions

- Rate limits: every response carries `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset`. A `429` also carries `Retry-After`, in seconds.
- Errors: refusals are RFC 9457 `application/problem+json` with a stable `type`, a `detail` written to be read, and a `hint` when there is a next step.
- Retries: repeat the same `idempotency-key` on a write and you receive the first result again.
- Versioning: this is version 0.2.0. A change that would break a caller is announced with `Deprecation` and `Sunset` headers at least 90 days ahead.
- Markdown: add `.md` to a page path, or send `Accept: text/markdown`.

## Machine-readable descriptions

- [llms.txt](/llms.txt): orientation for agents
- [OpenAPI](/openapi.json): operations and schemas
- [Agent skills](/.well-known/agent-skills/index.json): installable instructions
- [Agentic Resource Discovery](/.well-known/ard.json): the catalogue of everything here
- [Pricing](/pricing.md)

Questions: see the [contact page](/contact).
