Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Legivel Health API
version: 1.0.0
summary: Turn Markdown into a PDF over HTTP.
description: A render endpoint, templates made from Markdown, HTML or an editor document and rendered from JSON or CSV data, a usage endpoint and a health probe. Every call but the health probe and this document carries an API key. Sizes, page counts and rates follow the account's plan; a refusal names the limit it hit.
servers:
- url: https://api.legivel.com
description: Production
security:
- bearer: []
tags:
- name: Health
paths:
/health:
get:
operationId: getHealth
summary: Liveness probe
description: Answers 200 while the listener is up, whether or not the database is reachable.
security: []
responses:
'200':
description: The listener is up.
content:
application/json:
schema:
$ref: '#/components/schemas/Health'
tags:
- Health
components:
schemas:
Health:
type: object
title: Health
description: The listener's answer to a liveness probe.
properties:
ok:
type: boolean
description: 'Always true: the response itself is the proof the listener answers.'
db:
type: boolean
description: Whether the database answered. False does not fail the probe.
required:
- ok
- db
additionalProperties: false
securitySchemes:
bearer:
type: http
scheme: bearer
description: 'An API key from the dashboard, sent as `Authorization: Bearer <key>`. Keys begin with `lgvl_` and carry the account''s plan and quota.'
x-legivel-plan-limits:
- id: free
name: Free
limits:
markdown_kb: 512
resources_mb: 1.5
pages_max: 20
timeout_s: 30
concurrency: 1
requests_per_min: 5
resource_count: 50
key_verifications: 10
credits_per_period: 100
max_replays: 2
previews_per_hour: 120
- id: starter
name: Starter
limits:
markdown_kb: 2048
resources_mb: 6
pages_max: 200
timeout_s: 60
concurrency: 2
requests_per_min: 30
resource_count: 50
key_verifications: 10
credits_per_period: 1000
max_replays: 5
previews_per_hour: 600
- id: pro
name: Pro
limits:
markdown_kb: 4096
resources_mb: 12
pages_max: 1000
timeout_s: 90
concurrency: 5
requests_per_min: 120
resource_count: 50
key_verifications: 10
credits_per_period: 10000
max_replays: 5
previews_per_hour: 600
- id: scale
name: Scale
limits:
markdown_kb: 8192
resources_mb: 24
pages_max: 2048
timeout_s: 120
concurrency: 20
requests_per_min: 600
resource_count: 50
key_verifications: 10
credits_per_period: 100000
max_replays: 5
previews_per_hour: 600