# Unlayer API

**Canonical:** https://apis.io/apis/unlayer-com/unlayer-com-api/  
**Provider:** Unlayer — https://apis.io/providers/unlayer-com/  
**Base URL:** https://api.unlayer.com  
**Documentation:** https://docs.unlayer.com/server/cloud-api/blocks

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

Unlayer API as documented publicly. Contract generated from the documentation by API Evangelist (2026-11-27); not the provider's own document.

## Operations (24)

| Method | Path | Summary |
|---|---|---|
| GET | `/v2/editor/blocks` | Retrieve the blocks for a specific user |
| GET | `/v2/editor/inbox-previews/clients` | GET /v2/editor/inbox-previews/clients |
| GET | `/v3/blocks` | GET /v3/blocks |
| POST | `/v3/emails` | Send transactional email from a verified domain using raw HTML. |
| POST | `/v3/emails/template` | Send transactional email from a verified domain using a saved template. |
| POST | `/v3/images/generate` | Generate an image (AI) |
| GET | `/v3/projects/{id}` | Inbox Previews API |
| GET | `/v3/projects/{id}/ai-credits` | Get credit balance |
| DELETE | `/v3/projects/{id}/ai-credits/end-users` | Remove an end user's cap |
| GET | `/v3/projects/{id}/ai-credits/end-users` | Get an end user's cap |
| PUT | `/v3/projects/{id}/ai-credits/end-users` | Set an end user's cap |
| GET | `/v3/projects/{id}/ai-credits/settings` | Read settings |
| PUT | `/v3/projects/{id}/ai-credits/settings` | Update settings |
| POST | `/v3/projects/{id}/ai-credits/settings/rotate-secret` | Rotating the signing secret |
| GET | `/v3/projects/{id}/ai-credits/usage` | Get usage breakdown |
| GET | `/v3/projects/{id}/ai-credits/webhooks/deliveries` | List deliveries |
| GET | `/v3/projects/{id}/ai-credits/webhooks/deliveries/{deliveryid}/attempts` | List a delivery's attempts |
| POST | `/v3/projects/{id}/ai-credits/webhooks/deliveries/{deliveryid}/retry` | Retry a delivery |
| GET | `/v3/projects/{id}/inbox-previews/usage` | Inbox Previews API |
| DELETE | `/v3/projects/{id}/inbox-previews/usage/end-users` | Inbox Previews API |
| GET | `/v3/projects/{id}/inbox-previews/usage/runs` | Inbox Previews API |
| PATCH | `/v3/projects/{projectid}` | PATCH /v3/projects/{projectId} |
| POST | `/v3/templates/generate` | Generate a template (AI) |
| POST | `/v3/templates/import` | Import a template (AI) |

## Machine-readable artifacts (7)

- **OpenAPI** — https://artifacts.apis.io/unlayer-com/openapi/_ae-authored/unlayer-com-openapi-generated.yml
- **JSONSchema** — https://artifacts.apis.io/unlayer-com/json-schema/unlayer-com-get-v3-projects-id-inbox-previews-usage-runs-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/unlayer-com/json-schema/unlayer-com-get-v3-blocks-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/unlayer-com/json-schema/unlayer-com-get-v3-projects-id-ai-credits-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/unlayer-com/json-schema/unlayer-com-get-v3-projects-id-inbox-previews-usage-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/unlayer-com/json-schema/unlayer-com-put-v3-projects-id-ai-credits-settings-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/unlayer-com/json-schema/unlayer-com-get-v3-projects-id-ai-credits-webhooks-deliveries-response-schema.json

## Other Unlayer APIs (1)

- [Unlayer Cloud API](https://apis.io/apis/unlayer-com/unlayer-cloud-api/)

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/unlayer-com` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

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