{"openapi":"3.0.3","info":{"title":"CRAClock API","version":"1.0.0","description":"Programmatic CRA readiness: create products from dependency manifests (CycloneDX SBOM, disclosure intake, Article 14 incident clocks, evidence vault). Authenticate with your API key (X-API-Key header or Authorization: Bearer). Successful POST /api/products calls count once against your plan's monthly quota; failed calls never count. Check GET /api/v1/usage.","contact":{"name":"Ingenious AI","url":"https://getingeniousai.com","email":"orders@getingeniousai.com"},"license":{"name":"Ingenious AI API Terms of Service"}},"servers":[{"url":"https://craclock.getingeniousai.com"}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer"}}},"paths":{"/api/v1/usage":{"get":{"summary":"This key's plan, counted usage and remaining quota for the current month (never counted)","security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"responses":{"200":{"description":"Usage for the authenticated key"},"401":{"description":"Missing, invalid or revoked API key"}}}},"/api/products":{"post":{"summary":"Create a product from a dependency manifest (counted product call when authenticated by API key)","security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["manifest"],"properties":{"product_name":{"type":"string"},"manifest":{"type":"string"},"filename":{"type":"string"},"vendor":{"type":"string"}}}}}},"responses":{"200":{"description":"Product created; counted against quota"},"400":{"description":"Manifest could not be parsed or has no components (not counted)"},"402":{"description":"No valid license or API key"},"403":{"description":"Product limit for plan reached (not counted)"},"429":{"description":"Monthly API quota exhausted (not counted)"}}}},"/api/products/{pid}/scan":{"post":{"summary":"Run a CVE scan of a product's SBOM against live OSV data (existing per-plan scan credits apply)","security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Scan result"},"402":{"description":"No valid license or API key"},"404":{"description":"Product not found for this identity"},"429":{"description":"Scan credit limit reached for this plan period"}}}},"/api/products/{pid}/disclosures":{"get":{"summary":"List vulnerability disclosures filed for a product","security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Disclosure list"},"402":{"description":"No valid license or API key"},"404":{"description":"Product not found for this identity"}}}},"/api/products/{pid}/incidents":{"post":{"summary":"Start the Article 14 reporting clock for a vulnerability and draft the 24h report","security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Incident clock started"},"400":{"description":"vuln_id required (not counted)"},"402":{"description":"No valid license or API key"},"404":{"description":"Product not found for this identity"}}},"get":{"summary":"List a product's incident clocks","security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Incident list"},"402":{"description":"No valid license or API key"},"404":{"description":"Product not found for this identity"}}}},"/api/products/{pid}/vault":{"post":{"summary":"Add a conformity-evidence vault item to a product","security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Vault item added"},"400":{"description":"title required"},"402":{"description":"No valid license or API key"},"404":{"description":"Product not found for this identity"}}},"get":{"summary":"List a product's evidence vault items","security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Vault items"},"402":{"description":"No valid license or API key"},"404":{"description":"Product not found for this identity"}}}},"/api/usage":{"get":{"summary":"License usage readout: plan, CVE scan credits used/limit, product count (license key or API key)","security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"responses":{"200":{"description":"Usage for the authenticated identity"},"402":{"description":"No valid license or API key"}}}},"/api/keys":{"post":{"summary":"Create an API key for your license identity (license-authenticated; shown once)","responses":{"200":{"description":"Key created"},"402":{"description":"No valid license"}}},"get":{"summary":"List your license identity's API keys (hashes/prefixes only)","responses":{"200":{"description":"Key list"},"402":{"description":"No valid license"}}}},"/api/keys/{key_id}/revoke":{"post":{"summary":"Revoke one of your license identity's API keys","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Key revoked"},"402":{"description":"No valid license"},"404":{"description":"Key not found for this identity"}}}}}}