openapi: 3.2.0 info: title: Sirenic Rapport API version: 1.0.0 description: 'French & European company data, pay-per-call in USDC or EURC — EURC at numeric parity: the same figure as the USDC price, not FX-converted (at the ECB rate of 4 Sept 2026, about 16 % more in dollar terms) via the x402 protocol — or with an API key and prepaid credits (1 credit = 1 EUR, same per-call prices, no wallet).' contact: email: contact@sirenic.eu license: name: 'Data: Licence Ouverte / Open License Etalab 2.0' url: https://www.etalab.gouv.fr/licence-ouverte-open-licence/ servers: - url: https://api.sirenic.eu security: - {} - ApiKeyAuth: [] - BearerAuth: [] tags: - name: Rapport paths: /v1/rapport/{siren}: get: summary: On-demand PDF report (formatted KYB file, A4) x-price: $0.50 x-payment: protocol: x402 network: eip155:8453 parameters: - $ref: '#/components/parameters/siren' responses: '200': description: 'PDF document (application/pdf): identity, officers, BODACC alerts, financials, sanctions screening, completeness score, plus the AI health summary when one is cached.' content: application/pdf: schema: type: string format: binary '400': description: Invalid SIREN. Never charged. / Jamais facturé. '402': $ref: '#/components/responses/Reponse402PaymentRequired' '404': description: No diffusible company for this SIREN. '503': description: 'Sanctions screening unavailable when the file was built (core block): PDF not served, payment cancelled — retry.' tags: - Rapport operationId: getV1RapportBySiren x-operation-id-source: derived components: responses: Reponse402PaymentRequired: description: Payment required — x402 payment requirements in body (JSON) and headers. parameters: siren: in: path name: siren required: true schema: type: string pattern: ^\d{9}$ example: '552032534' description: 9-digit SIREN (Luhn-validated) securitySchemes: ApiKeyAuth: type: apiKey in: header name: X-Api-Key description: 'Sirenic API key (srn_live_…) paying with prepaid credits (1 credit = 1 EUR, same prices as x402). Credits expire 12 months after purchase; calls are charged first to the credits closest to expiry. Optional: without it, the same routes answer 402 with a signable x402 quote. Insufficient balance → 402 {error: credits_insuffisants} WITHOUT a PAYMENT-REQUIRED header. Get a key at /compte.' BearerAuth: type: http scheme: bearer description: 'The same srn_live_… API key sent as Authorization: Bearer. A bearer value that is not an srn_ key is ignored (x402 flow unchanged).'