openapi: 3.0.3
info:
  title: Spurvik EU AI Act Art. 50, 2 Dec 2026 C2PA & DPO Procurement Tools
  version: "1.0.18"
  description: >-
    Zero-key, zero-cookie EU Frankfurt (fra1) tools for Dify, Langflow, Flowise,
    ChatGPT Actions, and Microsoft Copilot Studio. Scans public HTTPS websites
    for EU AI Act Art. 50(1) AI notices, batch-scans up to 10 client domains
    (JSON or Google Sheets/Excel CSV), checks 2 Dec 2026 Art. 50(2) C2PA image
    manifests & CDN strip risk, generates 8-language enterprise RFP answers
    (Markdown, JSON or Vanta/Excel CSV), exports Customer /trust Center kits &
    9-section Annex IV technical drafts, and runs the 6-vector Art. 14 human
    approval gate self-test. Hosted plans (excl. VAT, B2B): Pro EUR 19/mo (EUR
    190/yr), Team EUR 79/mo (EUR 790/yr), 24h Done-For-You EUR 199 once.
servers:
  - url: https://console.spurvik.com
paths:
  /api/v1/sandbox/scan:
    get:
      operationId: scanPublicUrl
      summary: Scan a public HTTPS website for EU AI Act Art. 50(1) AI notices, chat widgets & C2PA hero proxy
      parameters:
        - name: url
          in: query
          required: true
          description: Public domain or HTTPS URL to scan (for example folk.app or personio.de).
          schema:
            type: string
            maxLength: 253
      responses:
        "200":
          description: Frontpage scan result with detected AI widgets, platforms, Art. 50 markers & upgrade URLs.
          content:
            application/json:
              schema:
                type: object
  /api/v1/portfolio/scan:
    get:
      operationId: batchScanDomains
      summary: Batch-scan up to 10 public domains in parallel (JSON, Markdown, or Google Sheets/Excel CSV)
      parameters:
        - name: domains
          in: query
          required: true
          description: Comma-separated public domains (up to 10, e.g. folk.app,charlie-paris.com,stepnetwork.dk).
          schema:
            type: string
            maxLength: 1024
        - name: format
          in: query
          required: false
          description: Response format — json (default) or csv (RFC 4180 UTF-8 BOM for Google Sheets =IMPORTDATA & Excel).
          schema:
            type: string
            enum:
              - json
              - csv
        - name: locale
          in: query
          required: false
          description: Two-letter EU language code (en, de, fr, nl, da, sv, fi, es, it, pl).
          schema:
            type: string
            maxLength: 8
      responses:
        "200":
          description: Portfolio scan matrix with per-domain Art. 50(1), Art. 50(2) C2PA strip risk, RFP CSV & setup URLs.
          content:
            application/json:
              schema:
                type: object
            text/csv:
              schema:
                type: string
  /api/v1/c2pa/check:
    get:
      operationId: checkImageC2paUrl
      summary: Inspect a public HTTPS image URL or site domain for 2 Dec 2026 Art. 50(2) C2PA JUMBF provenance & CDN strip
      parameters:
        - name: url
          in: query
          required: false
          description: Direct HTTPS PNG/JPEG/WebP image URL or public website domain.
          schema:
            type: string
            maxLength: 2048
        - name: domain
          in: query
          required: false
          description: Public store or SaaS hostname (auto-discovers frontpage hero image when url is omitted).
          schema:
            type: string
            maxLength: 253
        - name: locale
          in: query
          required: false
          description: Two-letter EU language code (en, de, fr, nl, da, sv, fi, es, it, pl).
          schema:
            type: string
            maxLength: 8
      responses:
        "200":
          description: C2PA manifest & signature inspection report plus Shopify/Webflow/Next.js/Cloudflare CDN strip warning.
          content:
            application/json:
              schema:
                type: object
  /api/v1/rfp/answers:
    get:
      operationId: generateVendorQuestionnaireAnswers
      summary: Generate 5 EU AI Act & GDPR vendor security questionnaire / DPO RFP answers (JSON, Markdown, or Vanta/Excel CSV)
      parameters:
        - name: domain
          in: query
          required: false
          description: Vendor public domain to prefill evidence and trust-center links.
          schema:
            type: string
            maxLength: 253
        - name: plan
          in: query
          required: false
          description: Spurvik plan posture (pro, team, concierge, free). Default pro.
          schema:
            type: string
            enum:
              - pro
              - team
              - concierge
              - free
        - name: provider
          in: query
          required: false
          description: AI SDK, sovereign EU model, or backend stack (e.g. openai, mistral, azure-openai, bedrock, vercel-ai-sdk, fastapi, rails, dotnet, go, laravel).
          schema:
            type: string
            maxLength: 64
        - name: locale
          in: query
          required: false
          description: Language code (en, de, fr, nl, da, sv, es, it).
          schema:
            type: string
            maxLength: 8
        - name: format
          in: query
          required: false
          description: Output format — json (default), markdown, or csv (RFC 4180 UTF-8 BOM for Vanta/SafeBase/Excel/Google Sheets).
          schema:
            type: string
            enum:
              - json
              - markdown
              - csv
      responses:
        "200":
          description: Structured Q1-Q5 EU AI Act Art. 50, Art. 12 HMAC, GDPR Art. 5(1)(c) & Art. 14 answers.
          content:
            application/json:
              schema:
                type: object
            text/csv:
              schema:
                type: string
            text/markdown:
              schema:
                type: string
  /api/v1/risk/classify:
    get:
      operationId: classifyAiActRisk
      summary: Classify an AI system under EU AI Act Art. 5, Annex III high-risk & Art. 50 transparency duties
      parameters:
        - name: preset
          in: query
          required: false
          description: Quick preset (support-chatbot, media-generator, hr-recruitment, customer-triage).
          schema:
            type: string
            maxLength: 64
        - name: useCase
          in: query
          required: false
          description: Plain-language description of what the AI system does.
          schema:
            type: string
            maxLength: 400
        - name: domain
          in: query
          required: false
          description: Optional public hostname for tailored report and Annex IV links.
          schema:
            type: string
            maxLength: 253
        - name: locale
          in: query
          required: false
          description: Two-letter EU language code.
          schema:
            type: string
            maxLength: 8
      responses:
        "200":
          description: Risk tier classification, triggered articles, and Markdown self-assessment record.
          content:
            application/json:
              schema:
                type: object
  /api/v1/badge/trust-center.md:
    get:
      operationId: getTrustCenterMarkdown
      summary: Export a customer-facing /trust & /security EU AI Act Markdown kit (10 EU languages)
      parameters:
        - name: domain
          in: query
          required: true
          description: Public SaaS or store hostname.
          schema:
            type: string
            maxLength: 253
        - name: locale
          in: query
          required: false
          description: Two-letter EU language code (en, de, fr, nl, da, sv, fi, es, it, pl).
          schema:
            type: string
            maxLength: 8
        - name: format
          in: query
          required: false
          description: Pass json for structured metadata + markdown body, or omit for raw text/markdown.
          schema:
            type: string
            enum:
              - markdown
              - json
      responses:
        "200":
          description: Paste-ready Notion / Vanta / SafeBase / GitHub /trust Markdown kit with live SVG shields.
          content:
            text/markdown:
              schema:
                type: string
            application/json:
              schema:
                type: object
  /api/v1/annex-iv/preview:
    get:
      operationId: getAnnexIvTechnicalDocPreview
      summary: Generate a 9-section EU AI Act Annex IV (Art. 11) technical documentation draft
      parameters:
        - name: domain
          in: query
          required: false
          description: System or company domain.
          schema:
            type: string
            maxLength: 253
        - name: useCase
          in: query
          required: false
          description: Annex III area (employment, credit, education, essential_services, biometrics, support_agent).
          schema:
            type: string
            maxLength: 64
        - name: provider
          in: query
          required: false
          description: Model runtime (openai, anthropic, gemini, mistral, azure-openai, aws-bedrock, python, rails).
          schema:
            type: string
            maxLength: 32
        - name: tier
          in: query
          required: false
          description: Plan tier (team for 9/9 populated or free for 4/9 skeleton).
          schema:
            type: string
            enum:
              - team
              - free
        - name: format
          in: query
          required: false
          description: Output format (json, markdown, or csv for Google Sheets =IMPORTDATA / Excel / ISO 42001).
          schema:
            type: string
            enum:
              - json
              - markdown
              - csv
        - name: locale
          in: query
          required: false
          description: Language code (en, de, fr, nl, da, sv, fi, es, it, pl).
          schema:
            type: string
            maxLength: 8
      responses:
        "200":
          description: 9-section Annex IV technical documentation JSON, Markdown, or RFC 4180 CSV.
          content:
            application/json:
              schema:
                type: object
            text/markdown:
              schema:
                type: string
            text/csv:
              schema:
                type: string
  /api/v1/gate/self-test:
    get:
      operationId: testHumanGateVectors
      summary: Run the 6-vector cryptographic EU AI Act Art. 14 fail-closed human approval gate self-test
      parameters:
        - name: domain
          in: query
          required: false
          description: Optional hostname for tailored callback snippet & cockpit links.
          schema:
            type: string
            maxLength: 253
      responses:
        "200":
          description: Deterministic 6-vector HMAC-SHA256 approval/block/tamper/expiry verification results.
          content:
            application/json:
              schema:
                type: object
