LAPIS Specification

The LAPIS specification defines a token-minimal, LLM-native format for describing HTTP APIs. A LAPIS document is organized into up to seven indentation-based sections - [meta], [types], [ops], [webhooks], [errors], [limits], and [flows] - each carrying a focused slice of the API contract. The format draws its syntax from function signatures rather than nested data structures, uses scalar types (str, int, float, bool, date, datetime, file, any) with array, map, optional, and default modifiers, and centralizes cross-cutting concerns like errors and rate limits so they are described once and applied globally. The current release is version 0.1.0 (status Draft) released 2026-02-16 under the Creative Commons Attribution 4.0 license, and the specification is published in both English and Spanish.

API entry from apis.yml

apis.yml Raw ↑
aid: lapis:lapis-spec
name: LAPIS Specification
description: The LAPIS specification defines a token-minimal, LLM-native format for describing HTTP APIs.
  A LAPIS document is organized into up to seven indentation-based sections - [meta], [types], [ops],
  [webhooks], [errors], [limits], and [flows] - each carrying a focused slice of the API contract. The
  format draws its syntax from function signatures rather than nested data structures, uses scalar types
  (str, int, float, bool, date, datetime, file, any) with array, map, optional, and default modifiers,
  and centralizes cross-cutting concerns like errors and rate limits so they are described once and applied
  globally. The current release is version 0.1.0 (status Draft) released 2026-02-16 under the Creative
  Commons Attribution 4.0 license, and the specification is published in both English and Spanish.
humanURL: https://github.com/cr0hn/LAPIS/blob/main/spec.en.md
tags:
- Specification
- LLM
- OpenAPI
- Standards
properties:
- type: Documentation
  url: https://github.com/cr0hn/LAPIS/blob/main/spec.en.md
  title: LAPIS Specification (English)
- type: Documentation
  url: https://github.com/cr0hn/LAPIS/blob/main/spec.es.md
  title: LAPIS Specification (Spanish)
- type: APIReference
  url: https://github.com/cr0hn/LAPIS/blob/main/spec.en.md#16-formal-grammar-simplified-ebnf
  title: Formal EBNF Grammar
- type: ChangeLog
  url: https://github.com/cr0hn/LAPIS/blob/main/CHANGELOG.md
  title: Changelog
- type: GettingStarted
  url: https://github.com/cr0hn/LAPIS/blob/main/spec-example.en.md
  title: Walk-Through Example (English)
- type: GettingStarted
  url: https://github.com/cr0hn/LAPIS/blob/main/spec-example.es.md
  title: Walk-Through Example (Spanish)
- type: GitHubRepository
  url: https://github.com/cr0hn/LAPIS
  title: Canonical Specification Repository
- type: Versioning
  url: https://github.com/cr0hn/LAPIS/releases
  title: Releases
- type: Examples
  url: https://github.com/cr0hn/LAPIS/blob/main/examples/DigitalOcean-public.v2.lapis
  title: DigitalOcean Public API v2 (LAPIS)
- type: Examples
  url: https://github.com/cr0hn/LAPIS/blob/main/examples/DigitalOcean-public.v2.yaml
  title: DigitalOcean Public API v2 (OpenAPI Source)