---
title: OpenAPI
description: Use Pixmato's machine-readable OpenAPI document for SDKs, clients, and contract tests.
icon: file-code
---

Pixmato publishes its public API contract as OpenAPI.

```txt
GET https://api.pixmato.com/openapi.json
```

The same document is also available under the versioned API namespace:

```txt
GET https://api.pixmato.com/v1/openapi.json
```

## What is included

- Authentication with workspace Bearer API keys.
- Workspace template endpoints.
- Single-render endpoints with sync and async modes.
- Render history endpoints.
- Brand assets, brand colors, settings, usage, and API key endpoints.

Internal preview and editor-only routes are intentionally excluded from the public contract.

## Generate a client

Use any OpenAPI-compatible client generator. For example:

```bash
npx openapi-typescript https://api.pixmato.com/openapi.json -o pixmato-api.d.ts
```

## Contract testing

Use the OpenAPI document as the source of truth for production smoke tests and SDK compatibility checks. The spec should be updated in the same pull request as any public API change.
