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

# Reference

> Every option, signature, endpoint, and bound: the TypeScript SDK, the REST API, and the protocol your runner speaks.

This page is for the code path - signatures and endpoints, not explanations. To build an agent
without code, start with [Build your first agent](/start/first-agent).

The reference pages are tables and signatures, not explanations. For why a feature exists and when to
reach for it, start from [Durable runs](/core), [AI](/ai), [Agent kit](/agent-kit), or
[Integrations](/integrations); every reference page links back to its owner.

## TypeScript SDK

<CardGroup cols={2}>
  <Card title="Package and entry points" href="/reference/sdk">
    `@duraton/sdk`: install, imports, and the scoped entries for client-only and AI-only code.
  </Card>

  <Card title="Defining workflows" href="/reference/sdk/defining-workflows">
    `workflow`: name, triggers, retry, flow control, and the optional step and tool manifests.
  </Card>

  <Card title="Steps" href="/reference/sdk/steps">
    The `StepContext` and every `step.*` signature.
  </Card>

  <Card title="connect" href="/reference/sdk/connect">
    Run a runner over an outbound WebSocket - no inbound URL.
  </Card>

  <Card title="REST client" href="/reference/sdk/client">
    `createClient`: events, runs, approvals, workflows, and errors.
  </Card>

  <Card title="AI steps" href="/reference/sdk/ai-steps">
    `step.ai.generate`, `wrap`, `embed`, `loop`, providers, cost, and the cache store.
  </Card>
</CardGroup>

## REST API

<CardGroup cols={2}>
  <Card title="Overview" href="/reference/api">
    Base URL, authentication, conventions, and the resource map.
  </Card>

  <Card title="Runs" href="/reference/api/runs">
    List, filter, paginate, stream, and summarise runs; read steps, logs, and AI spend.
  </Card>

  <Card title="Events and workflows" href="/reference/api/events">
    Send events, read the event log, and [trigger a workflow](/reference/api/workflows) by hand.
  </Card>

  <Card title="Control" href="/reference/api/control">
    Cancel, pause, resume, replay, retry from a step, and the control-action audit log.
  </Card>

  <Card title="Approvals" href="/reference/api/approvals">
    Decide parked runs.
  </Card>

  <Card title="Webhooks, runners, limits" href="/reference/api/webhooks">
    Deliveries and endpoints, [apps and runners](/reference/api/runners), [rate limits and defaults](/reference/api/limits).
  </Card>
</CardGroup>

## Protocol

<CardGroup cols={2}>
  <Card title="Protocol reference" href="/reference/wire-protocol">
    How Duraton drives a runner: the endpoints, routing, and status codes.
  </Card>

  <Card title="Errors" href="/reference/api/errors">
    Status codes, the `409` conflict table, and how the SDK surfaces them.
  </Card>
</CardGroup>
