> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nika.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Workflow registry

> Discover contained resident workflows without exposing source paths.

> [!NOTE]
>
> **The same client selects HTTP when `url` and
> `token` are present.** A served name such as
> `workflows/release.nika` (its path from the project root) goes
> directly to the server and needs no local engine or file. An explicit local
> path such as `./release.nika` needs a compatible local engine to
> capture an immutable snapshot. The released OpenAPI of
> `nika serve` 0.124.4 covers jobs, SSE events,
> cancellation, trace verification, the artifacts a settled job's sealed
> journal records (behind `run.artifacts()`), workflow listing,
> schedule read and write, stateless authoring
> (`POST /v1/compile`, behind `compile()`) and what a
> workflow's declared ACP route offers (behind `accessOffer()`). It has no
> `POST /v1/run`, job-list, or schedule list, delete, trigger
> or backfill route. The server owns its engine version; check its
> compatibility separately from the bundled local engine.

```ts theme={"system"}
const names = await nika.listWorkflows()

for (const name of names) {
  const metadata = await nika.workflow(name)
  console.log(metadata.workflow)
}
```

`listWorkflows()` returns the served names, each the workflow's path from the
project root (`workflows/release.nika`). `workflow(name)` confirms that a
served name exists: it returns `{ workflow }` and answers `not_found` (404)
otherwise. In 0.124.3 the metadata is closed to that one field: the server
exposes no declared inputs or description over HTTP.

The client has no pagination, reload or raw-source methods. The server
controls its served directory (`--workflows`); applications should not infer
filesystem paths or ask the API to reveal workflow bytes.

> [card] [Jobs](https://docs.nika.sh/sdk/remote/jobs.md)
>
> Admit one contained workflow by name.

> [card] [Workflow concepts](https://docs.nika.sh/concepts/workflows.md)
>
> Keep YAML as the language authority.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.