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: Lexbase API — legislação portuguesa consolidada Health API
version: 1.0.0
description: Read-only HTTP API over Portuguese consolidated legislation. Every content response carries a verifiable citation (diploma + article) and its in-force status. The same corpus is exposed as an MCP server at https://api.lexbase.pt/mcp. Legal information — not legal advice.
contact:
name: Lexbase
url: https://lexbase.pt
servers:
- url: https://api.lexbase.pt
description: Production
security:
- bearerAuth: []
tags:
- name: Health
paths:
/health:
get:
summary: Service health (unauthenticated)
security: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
status:
type: string
index_size:
type: integer
description: number of fragments/blocos
corpus_diplomas:
type: integer
tags:
- Health
operationId: getHealth
x-operation-id-source: derived
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: A Lexbase API key (lx_… / leis_…) in the Authorization header. Create one at https://lexbase.pt/mcp.