Zitadel Preview Docs
SDKs

API client

Generated TypeScript client and runtime configuration.

@zitadel/api is generated from the OpenAPI source under api/openapi/.

It exposes:

  • generated endpoint functions
  • generated models
  • Zod schemas
  • MSW helpers
  • runtime helpers for base URL and auth

Install

pnpm add @zitadel/api
npm install @zitadel/api
yarn add @zitadel/api

Usage

Use the API reference to inspect endpoint shapes. Use package exports from @zitadel/api when writing CLI, SDK, or app code against the typed client.

Edit the OpenAPI source

Do not hand-edit generated API package output. Update api/openapi/** and regenerate through the repo tasks.

See also

On this page