---
title: API Reference
description: Complete reference for all Workflow SDK functions and primitives by package.
type: overview
summary: Browse all available functions and primitives organized by package.
---

# API Reference



All the functions and primitives that come with Workflow SDK by package.

<Cards>
  <Card title="Workflow Globals" href="/docs/api-reference/workflow-globals">
    Global APIs available inside workflow functions, including deterministic APIs, Web Platform APIs, and environment variables.
  </Card>

  <Card title="workflow" href="/docs/api-reference/workflow">
    Core workflow primitives including steps, context management, streaming, webhooks, and error handling.
  </Card>

  <Card title="workflow/api" href="/docs/api-reference/workflow-api">
    API reference for runtime functions from the `workflow/api` package.
  </Card>

  <Card title="workflow/next" href="/docs/api-reference/workflow-next">
    Next.js integration for Workflow SDK that automatically configures bundling and runtime support.
  </Card>

  <Card title="workflow/errors" href="/docs/api-reference/workflow-errors">
    Semantic error types for handling workflow storage backend failures.
  </Card>

  <Card title="@workflow/serde" href="/docs/api-reference/workflow-serde">
    Serialization symbols for custom class serialization in workflows.
  </Card>

  <Card title="@workflow/ai" href="/docs/api-reference/workflow-ai">
    Helpers for integrating AI SDK for building AI-powered workflows.
  </Card>

  <Card title="@workflow/vitest" href="/docs/api-reference/vitest">
    Vitest plugin and test helpers for integration testing workflows in-process.
  </Card>
</Cards>


## Sitemap
[Overview of all docs pages](/sitemap.md)
