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 Openapi.json 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: Openapi.json
paths:
/v1/openapi.json:
get:
operationId: getOpenApiDocument
summary: This OpenAPI document
description: The description of the API, served without a key. It carries an `ETag` and may be cached for an hour; send `If-None-Match` to get a 304 while it is unchanged.
security: []
responses:
'200':
description: The OpenAPI 3.1 document.
headers:
ETag:
description: The document's entity tag; send it back as `If-None-Match`.
schema:
type: string
Cache-Control:
description: '`public, max-age=3600`.'
schema:
type: string
content:
application/vnd.oai.openapi+json:
schema:
$ref: '#/components/schemas/OpenApiDocument'
application/json:
schema:
$ref: '#/components/schemas/OpenApiDocument'
'304':
description: The document is unchanged since the `If-None-Match` tag.
tags:
- Openapi.json
components:
schemas:
OpenApiDocument:
type: object
title: OpenApiDocument
description: 'This document: an OpenAPI 3.1 description of the API.'
properties:
openapi:
type: string
const: 3.1.0
required:
- openapi
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