Catalogue API RGE-OS
24 endpoints publics, licence CC-BY 4.0. Citez Source : ServicesArtisans.
Spec OpenAPI : JSON / YAML. Spec AsyncAPI : JSON / YAML. Transparence IA : /transparence-ia.
AI
AnswerEngine
betaRalph 19POST une requête FR + contexte aides optionnel → réponse orchestrée avec citations, trace, Critic YMYL.
POST GET /api/v1/askDocs
Streaming
AnswerEngine SSE
betaRalph 28POST → text/event-stream. Events: start, groundtruth, chunk, critic, done, error, heartbeat.
POST GET /api/v1/ask/streamDocs
Aides
MaPrimeRénov 2026
stableRalph 16Calculator déterministe MPR. Inputs: geste, menage_categorie, zone, rfr, nb_personnes. CC-BY 4.0.
GET /api/v1/aides/mpr-baremeCEE 2026
stableRalph 16Calculator déterministe CEE. Inputs: geste, zone_climatique, type_logement, menage_categorie.
GET /api/v1/aides/cee-baremeAides cumulability rules
stableRalph 16Règles de cumul MPR + CEE + Eco-PTZ.
GET /api/v1/aides/cumul-rules
RGE
Lookup RGE par SIRET
stableGET ?siret=14 chiffres → fiche RGE complète.
GET /api/v1/rge/lookupSearch RGE par métier + ville
stableGET ?metier=X&ville=Y[&limit=N] → liste paginée.
GET /api/v1/rge/search
GraphQL
GraphQL-as-RPC
betaRalph 23POST {query} → exécute la requête sur les 5 root fields (rgeLookup, rgeSearch, mprBareme, ceeBareme, cumulRules).
POST GET /api/v1/graphql
KG
SPARQL Knowledge Graph
betaRalph 25SPARQL 1.1 subset. GET ?query=... ou POST. Formats: json/csv/tsv/xml.
GET POST /api/v1/kg/sparqlSA-RGE Ontology
stableRalph 25OWL ontology RGE en Turtle ou JSON-LD selon Accept header.
GET /api/v1/kg/ontology
MCP
Model Context Protocol
betaRalph 11JSON-RPC 2.0 server. 6 tools pour agents Claude/Gemini/GPT.
POST /api/v1/mcp
Webhooks
Subscribe webhook
betaRalph 24POST {url, email?, events[]} → 201 {id, secret, api_key}.
POST /api/v1/webhooks/subscribeUnsubscribe webhook
betaRalph 24DELETE {id, secret}.
DELETE /api/v1/webhooks/unsubscribeList webhooks
betaRalph 24GET avec Authorization: Bearer <api_key>.
GET /api/v1/webhooks/listTest webhook delivery
betaRalph 24POST {id, secret, event} → fire mock payload + record delivery.
POST /api/v1/webhooks/test
Embed
RGE search widget
stableRalph 21Iframe-able search box pour intégration tiers (3 lignes HTML).
GET /embed/rge
Meta
OpenAPI 3.1 spec (JSON)
stableRalph 27Single source of truth contract. Postman/Insomnia/Bruno auto-import.
GET /api/v1/openapi/jsonDocsOpenAPI 3.1 spec (YAML)
stableRalph 27YAML variant.
GET /api/v1/openapi/yamlAsyncAPI 3.0 spec (JSON)
stableRalph 30Events catalog pour webhooks. EventCatalog / AsyncAPI Studio import.
GET /api/v1/asyncapi/jsonDocsAsyncAPI 3.0 spec (YAML)
stableRalph 30YAML variant.
GET /api/v1/asyncapi/yamlHealth check (shallow)
stableRalph 32Uptime probe pour monitoring. Toujours 200 si la fonction Vercel répond.
GET HEAD /api/v1/healthHealth check (deep)
stableRalph 32Pings Supabase + Upstash + check LLM keys. 503 si fail.
GET /api/v1/health/deep
SDK
@servicesartisans/rge-sdk
betaRalph 22Typed npm client (Node 18+, MIT, zero-dep).
npm:@servicesartisans/rge-sdk
CLI
sa-rge-os CLI
betaRalph 20Node 18+ CLI public (npm install -g sa-rge-os).
npm:sa-rge-os