Syllogi AI API
AI search, question answering with source references and AI summaries. Rate-limited and counted against the AI quota of the plan or the trial.
AI search, question answering with source references and AI summaries. Rate-limited and counted against the AI quota of the plan or the trial.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/syllogi-eu:syllogi-eu-ai-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
contact:
email: support@syllogi.eu
name: Syllogi Support
url: https://www.syllogi.eu/developers
description: 'REST API of Syllogi for EU law from official sources (EUR-Lex / Cellar and EASA): search, AI search with source references, documents by CELEX number, consolidated versions as valid on a day with article-level diffs, alerts, signed webhooks and an Atom/RSS change feed.
Authentication: send an API token of your organisation as `Authorization: Bearer syl_live_...`. An organisation admin creates tokens in the web app (Settings -> API); the scopes are listed under the security scheme.
Data: EUR-Lex content (c) European Union, https://eur-lex.europa.eu, reused under Commission Decision 2011/833/EU. Consolidated texts and AI output are documentation aids without legal effect; only the Official Journal of the European Union is authentic.
Guides, examples, limits and the changelog: https://www.syllogi.eu/developers. MCP server for AI assistants: https://www.syllogi.eu/developers/mcp.'
summary: 'EU law from EUR-Lex and EASA as a REST API: search, documents, consolidated versions, alerts and webhooks.'
title: Syllogi AI API
version: '1.0'
servers:
- description: Production
url: https://api.syllogi.eu
security:
- bearerAuth: []
tags:
- description: AI search, question answering with source references and AI summaries. Rate-limited and counted against the AI quota of the plan or the trial.
name: AI
paths:
/api/v1/ai/query:
post:
description: Answers questions about EU legislation using RAG over document chunks. Uses the configured AI model (the model chosen by the customer among those of the plan; the base model if none). Rate-limited.
operationId: aiQuery
requestBody:
content:
application/json:
schema:
type: object
description: query (max 2000 chars)
required: true
responses:
'200':
content:
application/json:
schema:
additionalProperties: true
type: object
description: answer + sources + model
'400':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: invalid request
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: AI query failed
'503':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: AI not configured
'504':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: time budget (about 100 s) exhausted; body has error, error_en, error_de, code ai_timeout; Retry-After header
security:
- bearerAuth: []
summary: AI-powered document Q&A (RAG)
tags:
- AI
/api/v1/ai/usage-status:
get:
description: 'Shows the AI usage of the organization: during the trial the fixed quota (quota, used, unanswered, remaining, trial_ends_at, count, limit), on a paid plan the monthly query count and limit (count, web_count, api_count, limit, exceeded, tier, next_tier and its price and model), and the summary limit (summary_count, summary_limit, summary_exceeded). Requires the scope read.'
operationId: getAIUsageStatus
responses:
'200':
content:
application/json:
schema:
additionalProperties: true
type: object
description: mode (trial or monthly) with the fields named above
'401':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: missing or invalid token
'403':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: 'token missing required scope: read, or onboarding_required (no running trial or completed onboarding)'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: usage could not be read
security:
- bearerAuth: []
summary: AI usage and limits
tags:
- AI
/api/v1/documents/{celex}/summary:
post:
description: Summarizes a document using its full text directly (no RAG). Rate-limited.
operationId: createDocumentSummary
parameters:
- description: CELEX number (e.g. 32024R1689)
in: path
name: celex
required: true
schema:
type: string
- description: true = generate anew instead of serving the cached summary. For every user, always counts against the summary limit; at most once per act and organization per UTC day (otherwise the current cached summary is returned with regenerate_denied=true and notice)
in: query
name: regenerate
schema:
type: boolean
- description: '1 = this request is an automatic retry after a 202 (poll): it never starts a generation. It answers with the cached summary (200), 202 while the generation is still running, or 409 status not_running when none is running and nothing is cached (it failed or timed out); only a request without poll starts a new generation'
in: query
name: poll
schema:
type: integer
responses:
'200':
content:
application/json:
schema:
additionalProperties: true
type: object
description: 'answer + sources (empty) + model + input_coverage (chars_used, chars_total, percent, articles_included, cut_after), only when the model did not read the whole text (more than about 150,000 tokens) - mode selected: all articles plus the annexes and recitals that fitted (articles, annexes, recitals = all/partial/none, counts and labels such as Annexes I-IV); mode start (amending acts, no recognisable structure, EASA compilations, articles above the budget): the first percent % of the act (percent is rounded down, 0 means less than 1 %), articles_included says whether that part contains the beginning of the operative part (absent without recognisable structure), cut_after names the heading the part read ends in, which is usually cut half-way (for example recital 57, Article 41, Annex III; best effort, absent for amending acts), closing_article names the closing article (entry into force / application, with the signature) that was appended after the text read because it lay beyond the cut; computed from the current text on every response, cached summaries included; absent when the whole text was read'
'202':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: 'summary is being generated (also in the background after the 100 s hand-off): body has status in_progress, message_en, message_de, error; Retry-After header. No summary yet, no reservation for a repeated request - retry after Retry-After (2xx, not an error)'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
content:
application/json:
schema:
additionalProperties: true
type: object
description: 'summary_limit_reached: the plan''s limit of freshly generated AI summaries is used up (Starter 20, Professional 200, Enterprise 1,000 per month; the trial 10 in total). Body: error, message, limit, used, tier, period (month or trial), next_tier. Cached summaries are still served (200) and never count; usage is in GET /api/v1/ai/usage-status (summary_count, summary_limit). Trial quota blocks (trial_quota_exhausted, trial_unanswered_limit) also answer 402'
'404':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: document or full text not found
'409':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: 'not_running (only with poll=1): no generation is running and no summary is cached; message in error and message_en. Nothing was generated or charged'
'422':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: 'no_reliable_text: the stored text is not usable (text_status_en/de), nothing to summarize'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: summary generation failed
'503':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: AI not configured
security:
- bearerAuth: []
summary: Generate AI summary for a specific document
tags:
- AI
/api/v1/search/ai:
post:
description: Interprets natural language queries into structured search filters. Uses the configured AI model (the model chosen by the customer among those of the plan; the base model if none). Rate-limited.
operationId: aiSearch
requestBody:
content:
application/json:
schema:
type: object
description: query (max 2000 chars), limit, offset
required: true
responses:
'200':
content:
application/json:
schema:
additionalProperties: true
type: object
description: 'results + interpreted filters; with an AI answer: answer, sources (one entry per passage the model received: index, chunk_text snippet, full_text), model, token_usage. If the search worked but no answer was produced: answer_error {code ai_timeout|ai_unavailable, message_en, message_de} and no answer'
'400':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: invalid request
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: AI search failed
'503':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: AI not configured
'504':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: time budget (about 100 s) exhausted before results existed; body has error, error_en, error_de, code ai_timeout; Retry-After header
security:
- bearerAuth: []
summary: AI-powered natural language search
tags:
- AI
components:
responses:
Unauthorized:
content:
application/json:
schema:
properties:
error:
type: string
type: object
description: Missing, invalid, expired or revoked API token. The WWW-Authenticate header names the Bearer scheme.
TooManyRequests:
content:
application/json:
schema:
properties:
error:
type: string
type: object
description: Rate limit of the plan exceeded. The Retry-After header says when to retry.
securitySchemes:
bearerAuth:
bearerFormat: opaque API token (syl_live_...)
description: 'API token of an organisation (prefix syl_live_), sent as Authorization: Bearer <token>. Tokens are created by an organisation admin in the web app, can expire and carry scopes:
- read (default): documents, search, AI endpoints, and the GET routes of alerts and webhooks
- read:documents: the document endpoints only
- feed:read: the Atom/RSS feed /api/v1/feed/regulatory-changes
- alerts:write: create, change and delete alert subscriptions (never implied)
- webhooks:write: create, change, delete and test webhooks (never implied)
- mcp:read: the MCP server https://mcp.syllogi.eu/mcp; a token with only this scope ("MCP only") gets 403 token_scope_mcp_only on this REST API
A token without the scope a route needs gets 403 with the missing scope named in the error.'
scheme: bearer
type: http
externalDocs:
description: Developer guide with examples
url: https://www.syllogi.eu/developers