Lettrove Webhooks API
Sent by Lettrove to the URL you set on the project. Each is signed; a retry has the same `id`.
Sent by Lettrove to the URL you set on the project. Each is signed; a retry has the same `id`.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/lettrove-com:lettrove-com-webhooks-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Lettrove server Webhooks API
version: '1'
summary: Tokens, designs, exports, rendering, erasure and webhooks, for your server.
description: 'What your server does with a Lettrove secret key: mint the editor''s tokens, read a person''s designs, export and render them, and erase a person. Plus the webhooks Lettrove sends you.
Call it only from your server: the secret key never goes to a browser, and the API answers no browser (no CORS, by design). Within v1, fields are only ever added: ignore ones you do not know. Guides: https://docs.lettrove.com/docs/1/server/server-api.
Error codes: `design_invalid`, `design_not_found`, `key_invalid`, `mode_unavailable`, `origin_not_allowed`, `project_suspended`, `rate_limited`, `request_invalid`, `service_unavailable`, `user_erased`, `workspace_suspended`. Each is explained on https://docs.lettrove.com/docs/1/api/errors.'
contact:
name: Lettrove support
email: support@lettrove.com
url: https://docs.lettrove.com/docs/1
license:
name: MIT
identifier: MIT
servers:
- url: https://api.lettrove.com
description: Production. Test and live are told apart by the key, not the address.
security:
- secretKey: []
tags:
- name: Webhooks
description: Sent by Lettrove to the URL you set on the project. Each is signed; a retry has the same `id`.
paths: {}
webhooks:
design.saved:
post:
operationId: webhook_design_saved
summary: design.saved
description: A design was created or saved.
tags:
- Webhooks
parameters:
- name: Lettrove-Signature
in: header
required: true
description: '`t=<unix seconds>,v1=<hex HMAC-SHA256 of "t.body" with the webhook''s secret>`. Check it before trusting the body.'
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: 'The delivery''s id. A retry has the same id: skip ones you have handled.'
examples:
- 01J9ZV8R1K3M5P7T9W2Y4A6C8E
type:
type: string
const: design.saved
createdAt:
type: string
format: date-time
description: When it happened.
examples:
- '2026-10-07T16:03:10.000Z'
projectId:
type: string
description: Your project.
examples:
- 01J9X2B4D6F8H0K2M4P6R8T0V2
data:
type: object
properties:
designId:
type: string
description: 'The id Lettrove gave the design: 26 letters and digits.'
examples:
- 01J9ZQ3W8D2K7M5T1V4XG6HB0R
userId:
type: string
minLength: 1
maxLength: 256
description: 'Your own id for the person: whatever you chose, up to 256 characters. Never a name or an email.'
examples:
- u_123
revision:
type: integer
minimum: 0
description: 'Its saved revision; only ever goes up. Saves of one design still waiting to be delivered are merged: you get the newest.'
examples:
- 12
required:
- designId
- userId
- revision
required:
- id
- type
- createdAt
- projectId
- data
responses:
2XX:
description: Answer with any 2xx status to say it arrived. Anything else, or no answer within 10 seconds, is retried with backoff, up to 8 attempts.
design.deleted:
post:
operationId: webhook_design_deleted
summary: design.deleted
description: A design was deleted.
tags:
- Webhooks
parameters:
- name: Lettrove-Signature
in: header
required: true
description: '`t=<unix seconds>,v1=<hex HMAC-SHA256 of "t.body" with the webhook''s secret>`. Check it before trusting the body.'
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: 'The delivery''s id. A retry has the same id: skip ones you have handled.'
examples:
- 01J9ZV8R1K3M5P7T9W2Y4A6C8E
type:
type: string
const: design.deleted
createdAt:
type: string
format: date-time
description: When it happened.
examples:
- '2026-10-07T16:03:10.000Z'
projectId:
type: string
description: Your project.
examples:
- 01J9X2B4D6F8H0K2M4P6R8T0V2
data:
type: object
properties:
designId:
type: string
description: 'The id Lettrove gave the design: 26 letters and digits.'
examples:
- 01J9ZQ3W8D2K7M5T1V4XG6HB0R
userId:
type: string
minLength: 1
maxLength: 256
description: 'Your own id for the person: whatever you chose, up to 256 characters. Never a name or an email.'
examples:
- u_123
required:
- designId
- userId
required:
- id
- type
- createdAt
- projectId
- data
responses:
2XX:
description: Answer with any 2xx status to say it arrived. Anything else, or no answer within 10 seconds, is retried with backoff, up to 8 attempts.
export.created:
post:
operationId: webhook_export_created
summary: export.created
description: A design was exported, from the page or your server.
tags:
- Webhooks
parameters:
- name: Lettrove-Signature
in: header
required: true
description: '`t=<unix seconds>,v1=<hex HMAC-SHA256 of "t.body" with the webhook''s secret>`. Check it before trusting the body.'
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: 'The delivery''s id. A retry has the same id: skip ones you have handled.'
examples:
- 01J9ZV8R1K3M5P7T9W2Y4A6C8E
type:
type: string
const: export.created
createdAt:
type: string
format: date-time
description: When it happened.
examples:
- '2026-10-07T16:03:10.000Z'
projectId:
type: string
description: Your project.
examples:
- 01J9X2B4D6F8H0K2M4P6R8T0V2
data:
type: object
properties:
exportId:
type: string
description: The export's record.
examples:
- 01J9ZR4C2N8B6V0X3M7K5T9QWE
designId:
type: string
description: 'The id Lettrove gave the design: 26 letters and digits.'
examples:
- 01J9ZQ3W8D2K7M5T1V4XG6HB0R
userId:
type: string
minLength: 1
maxLength: 256
description: 'Your own id for the person: whatever you chose, up to 256 characters. Never a name or an email.'
examples:
- u_123
revision:
type: integer
minimum: 0
description: The saved revision; only ever goes up.
examples:
- 12
source:
type: string
enum:
- editor
- server
description: '`editor` (the page) or `server` (your secret key).'
format:
type: string
enum:
- html
- text
- zip
- pdf
- png
description: '`html`, `text` (a plain-text export), `pdf`, `png` or `zip`.'
required:
- exportId
- designId
- userId
- revision
- source
- format
required:
- id
- type
- createdAt
- projectId
- data
responses:
2XX:
description: Answer with any 2xx status to say it arrived. Anything else, or no answer within 10 seconds, is retried with backoff, up to 8 attempts.
user.erased:
post:
operationId: webhook_user_erased
summary: user.erased
description: A person's data has been erased, after your erase request.
tags:
- Webhooks
parameters:
- name: Lettrove-Signature
in: header
required: true
description: '`t=<unix seconds>,v1=<hex HMAC-SHA256 of "t.body" with the webhook''s secret>`. Check it before trusting the body.'
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: 'The delivery''s id. A retry has the same id: skip ones you have handled.'
examples:
- 01J9ZV8R1K3M5P7T9W2Y4A6C8E
type:
type: string
const: user.erased
createdAt:
type: string
format: date-time
description: When it happened.
examples:
- '2026-10-07T16:03:10.000Z'
projectId:
type: string
description: Your project.
examples:
- 01J9X2B4D6F8H0K2M4P6R8T0V2
data:
type: object
properties:
userId:
type: string
minLength: 1
maxLength: 256
description: 'Your own id for the person: whatever you chose, up to 256 characters. Never a name or an email.'
examples:
- u_123
required:
- userId
required:
- id
- type
- createdAt
- projectId
- data
responses:
2XX:
description: Answer with any 2xx status to say it arrived. Anything else, or no answer within 10 seconds, is retried with backoff, up to 8 attempts.
ping:
post:
operationId: webhook_ping
summary: ping
description: Sent by **Send a test** in the dashboard, whatever events the webhook subscribes to.
tags:
- Webhooks
parameters:
- name: Lettrove-Signature
in: header
required: true
description: '`t=<unix seconds>,v1=<hex HMAC-SHA256 of "t.body" with the webhook''s secret>`. Check it before trusting the body.'
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: 'The delivery''s id. A retry has the same id: skip ones you have handled.'
examples:
- 01J9ZV8R1K3M5P7T9W2Y4A6C8E
type:
type: string
const: ping
createdAt:
type: string
format: date-time
description: When it happened.
examples:
- '2026-10-07T16:03:10.000Z'
projectId:
type: string
description: Your project.
examples:
- 01J9X2B4D6F8H0K2M4P6R8T0V2
data:
type: object
properties:
message:
type: string
description: Always this text.
examples:
- A test event from Lettrove.
required:
- message
required:
- id
- type
- createdAt
- projectId
- data
responses:
2XX:
description: Answer with any 2xx status to say it arrived. Anything else, or no answer within 10 seconds, is retried with backoff, up to 8 attempts.
components:
securitySchemes:
secretKey:
type: http
scheme: bearer
bearerFormat: lt_sk_test_… or lt_sk_live_…
description: Your project's secret key, from your server only.
externalDocs:
description: The Lettrove documentation
url: https://docs.lettrove.com/docs/1