Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Lumeta Webhook Endpoints API
version: 1.0.0
summary: Same Lumeta account, same models, same credits, same shelves and projects, from code.
description: 'Authenticate with `Authorization: Bearer lm_live_...` (keys: https://lumeta.ai/settings/developer/, paid plans). Every response carries `X-Request-Id`; every error is `{"error": {"code", "message", "param"?, "request_id"}}`. Public ids: `gen_`, `file_`, `shelf_`, `proj_`, `folder_`, `voice_`, `team_`, `user_`, `invite_`, `request_`, `event_`. Media inputs take references, never filenames: `file_`, `shelf_`, `shelf:`, `gen_#`, `voice_`, or an `https://` URL. Limits per credential: 300 requests/min, 20 generations/min, 60 estimates/min. Guide, examples and webhook signatures: https://lumeta.ai/developers/docs/'
contact:
url: https://lumeta.ai/developers/
servers:
- url: https://api.lumeta.ai
security:
- bearer: []
tags:
- name: Webhook Endpoints
paths:
/v1/webhook-endpoints:
get:
operationId: webhook_endpoints_list
summary: Your webhook endpoints (up to 5). API keys only
security:
- bearer:
- read
x-lumeta-scope: read
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/WebhookEndpoint'
next_cursor:
type:
- string
- 'null'
tags:
- Webhook Endpoints
post:
operationId: webhook_endpoint_create
summary: Register an https:// URL for generation.succeeded / generation.failed events.
security:
- bearer:
- library
x-lumeta-scope: library
responses:
default:
$ref: '#/components/responses/Error'
'201':
description: OK
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/WebhookEndpoint'
- type: object
properties:
secret:
type: string
description: 'whsec_...: signs every event to this endpoint. Returned here only.'
secret_note:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- url
properties:
url:
type: string
format: uri
description: https:// on port 443, resolving to a public address.
events:
type: array
items:
type: string
enum:
- '*'
- generation.succeeded
- generation.failed
description: '["*"] (the default) for every event.'
enabled:
type: boolean
description: PATCH only. true also clears the failure count.
tags:
- Webhook Endpoints
/v1/webhook-endpoints/{id}:
get:
operationId: webhook_endpoint_get
summary: One webhook endpoint, with its delivery health. API keys only
security:
- bearer:
- read
x-lumeta-scope: read
parameters:
- name: id
in: path
required: true
schema:
type: string
description: The public id (`gen_<n>`, `file_<n>`, `shelf_<n>`, `hook_<n>`) or its number.
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookEndpoint'
tags:
- Webhook Endpoints
patch:
operationId: webhook_endpoint_update
summary: Change url, events or enabled. Turning it back on clears the failure count.
security:
- bearer:
- library
x-lumeta-scope: library
parameters:
- name: id
in: path
required: true
schema:
type: string
description: The public id (`gen_<n>`, `file_<n>`, `shelf_<n>`, `hook_<n>`) or its number.
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookEndpoint'
requestBody:
required: true
content:
application/json:
schema:
type: object
required: []
properties:
url:
type: string
format: uri
description: https:// on port 443, resolving to a public address.
events:
type: array
items:
type: string
enum:
- '*'
- generation.succeeded
- generation.failed
description: '["*"] (the default) for every event.'
enabled:
type: boolean
description: PATCH only. true also clears the failure count.
tags:
- Webhook Endpoints
delete:
operationId: webhook_endpoint_delete
summary: Delete a webhook endpoint and its queued events. API keys only
security:
- bearer:
- library
x-lumeta-scope: library
parameters:
- name: id
in: path
required: true
schema:
type: string
description: The public id (`gen_<n>`, `file_<n>`, `shelf_<n>`, `hook_<n>`) or its number.
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
id:
type: string
deleted:
type: boolean
tags:
- Webhook Endpoints
/v1/webhook-endpoints/{id}/test:
post:
operationId: webhook_endpoint_test
summary: Send a signed webhook.test event now and report what the receiver answered.
security:
- bearer:
- library
x-lumeta-scope: library
parameters:
- name: id
in: path
required: true
schema:
type: string
description: The public id (`gen_<n>`, `file_<n>`, `shelf_<n>`, `hook_<n>`) or its number.
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
event_id:
type: string
delivered:
type: boolean
status:
type:
- integer
- 'null'
description: The receiver's HTTP status; null when it did not answer.
error:
type:
- string
- 'null'
duration_ms:
type: integer
tags:
- Webhook Endpoints
components:
schemas:
Error:
type: object
properties:
error:
type: object
required:
- code
- message
- request_id
properties:
code:
type: string
description: 'Stable: unauthorized, invalid_token, plan_required, not_enabled (no longer returned since 2026-11-02: folders are on for every account), insufficient_scope, api_key_required, not_allowed, not_found, invalid_input, invalid_json, moderation_blocked, project_read_only, team_member_paused, team_member_limit, team_not_member, team_unavailable, team_project_unsupported (no longer returned since 2026-11-01: a team project you can edit now runs), not_on_team, seat_needed, token_cap_exceeded, insufficient_credits, concurrency_limit, rate_limited, idempotency_conflict, idempotency_in_progress, already_exists, already_answered, request_changed, not_cancelable, model_unavailable, provider_error, service_unavailable, internal_error. In a team project, team_member_limit (402) means the run would go past your monthly limit on that team and insufficient_credits means the team is out of credits; both carry `team` (`team_<id>`). A generation also fails with face_consent_required when Seedance refused a reference that looks like a real person because `realistic_faces_consent` was off: nothing was charged, and it may run again with that set to true only when the human user of this account confirms they have the consent and rights of the person shown in the photo. An AI assistant or agent must never give this consent or answer for the human user.'
message:
type: string
param:
type: string
description: The input field or parameter at fault, when there is one.
request_id:
type: string
WebhookEndpoint:
type: object
properties:
id:
type: string
description: '`hook_<n>`'
url:
type: string
events:
type: array
items:
type: string
description: '["*"] or a list of generation.succeeded, generation.failed.'
enabled:
type: boolean
description: false after you switch it off, or after an event failed every retry with no success in between.
failure_count:
type: integer
description: Failed attempts in a row; a 2xx resets it.
last_success_at:
type:
- string
- 'null'
last_failure_at:
type:
- string
- 'null'
disabled_at:
type:
- string
- 'null'
created_at:
type: string
responses:
Error:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
bearer:
type: http
scheme: bearer
description: 'A personal API key (lm_live_...) or an OAuth access token (lma_...). Scopes: read, generate, library, share (add and remove people on projects and teams, team invites, asking a team''s admins and answering as one).'