# leafwright-co API

**Canonical:** https://apis.io/apis/leafwright-co/leafwright-co-api/  
**Provider:** leafwright-co — https://apis.io/providers/leafwright-co/  
**Documentation:** https://leafwright.co/docs/api

leafwright-co API is one of 2 APIs that [leafwright-co](https://apis.io/providers/leafwright-co/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 5 JSON Schema definitions. The published artifact set on APIs.io includes an OpenAPI specification and 5 JSON Schemas.

leafwright-co API as documented publicly: 21 operations. Contract generated from the documentation by API Evangelist (2026-10-30); not the provider's own document.

## Operations (21)

| Method | Path | Summary |
|---|---|---|
| POST | `/api/v1/api-keys/{keyId}/rotate` | Rotate an API key and revoke the previous one. |
| POST | `/api/v1/billing/checkout` | Create a billing checkout session for a plan. |
| POST | `/api/v1/cron/webhooks/retry` | Retry webhooks via cron job. |
| PATCH | `/api/v1/dashboard/brand` | Set project document brand defaults. |
| GET | `/api/v1/dashboard/brand/references` | Get brand references for a project. |
| POST | `/api/v1/dashboard/brand/references` | Create brand reference for dashboard. |
| POST | `/api/v1/dashboard/brand/upload-url` | Get an upload URL for brand assets. |
| POST | `/api/v1/dashboard/webhooks` | Create webhook subscription for render events. |
| POST | `/api/v1/dashboard/webhooks/deliveries/{deliveryId}/retry` | Retry a webhook delivery. |
| GET | `/api/v1/jobs/$JOB_ID/input` | GET /api/v1/jobs/$JOB_ID/input |
| GET | `/api/v1/jobs/$JOB_ID/logs` | GET /api/v1/jobs/$JOB_ID/logs |
| POST | `/api/v1/pdfs` | POST /api/v1/pdfs |
| POST | `/api/v1/templates` | Create a new template. |
| POST | `/api/v1/templates/ai/generate` | Generate a template using AI. |
| PATCH | `/api/v1/templates/{templateId}` | Update an existing template. |
| POST | `/api/v1/templates/{templateId}/archive` | Archive a template. |
| POST | `/api/v1/templates/{templateId}/duplicate` | Duplicate a template. |
| POST | `/api/v1/templates/{templateId}/preview` | Preview a template. |
| POST | `/api/v1/templates/{templateId}/publish` | Publish a template. |
| POST | `/api/v1/templates/{templateId}/validate` | Validate a template. |
| POST | `/api/v1/templates/{templateId}/versions/{versionId}/restore` | Restore a published template version back into the draft. |

## Machine-readable artifacts (6)

- **OpenAPI** — https://artifacts.apis.io/leafwright-co/openapi/_ae-authored/leafwright-co-openapi-generated.yml
- **JSONSchema** — https://artifacts.apis.io/leafwright-co/json-schema/leafwright-co-post-api-v1-pdfs-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/leafwright-co/json-schema/leafwright-co-patch-api-v1-dashboard-brand-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/leafwright-co/json-schema/leafwright-co-post-api-v1-pdfs-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/leafwright-co/json-schema/leafwright-co-post-api-v1-dashboard-webhooks-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/leafwright-co/json-schema/leafwright-co-post-api-v1-billing-checkout-request-schema.json

## Other leafwright-co APIs (1)

- [Leafwright API](https://apis.io/apis/leafwright-co/leafwright-api/)

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/leafwright-co/leafwright-co-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/leafwright-co/.
