{"openapi":"3.1.0","info":{"title":"DataProof AI — EU procurement amendments","version":"0.6.1","description":"Free, read-only TED procurement amendment search with optional lookups of the explicitly referenced prior notice."},"servers":[{"url":"https://dataproof-ai-1.onrender.com"}],"security":[],"paths":{"/v1/pilot/intelligence":{"get":{"operationId":"searchContractModifications","summary":"Search recent EU contract modification notices","description":"Free enriched TED records, filtered by buyer country and CPV. Missing values are null. Not a complete amendment history.","parameters":[{"name":"country","in":"query","schema":{"type":"string","pattern":"^[A-Z]{3}$"},"example":"ITA"},{"name":"cpv","in":"query","schema":{"type":"string","pattern":"^\\d{8}$"},"example":"72000000"},{"name":"since","in":"query","description":"Inclusive TED publication date. This is a bounded latest-result window.","schema":{"type":"string","format":"date"}},{"name":"page","in":"query","description":"Page number for the current search. The source can change between requests.","schema":{"type":"integer","enum":[1,2,3,4,5,6,7,8,9,10],"default":1}},{"name":"include_previous","in":"query","description":"Resolve up to 20 explicit previous-notice references against TED and return per-reference status.","schema":{"type":"string","enum":["true","false"],"default":"false"}},{"name":"limit","in":"query","schema":{"type":"integer","enum":[1,2,3,4,5,6,7,8,9,10,20],"default":10}}],"responses":{"200":{"description":"Enriched records and deterministic fingerprints","content":{"application/json":{"schema":{"type":"object","properties":{"record_count":{"type":"integer"},"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"source_total":{"type":["integer","null"]},"has_more":{"type":["boolean","null"]},"next_page":{"type":["integer","null"]},"max_page":{"type":"integer"}}},"notices":{"type":"array","items":{"type":"object","properties":{"publication_number":{"type":"string"},"metadata":{"type":"object","additionalProperties":true},"metadata_sha256":{"type":"string"},"official_url":{"type":"string","format":"uri"},"previous_notices":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string"},"status":{"type":"string"},"publication_number":{"type":"string"},"official_url":{"type":"string","format":"uri"}}}}}}},"batch_metadata_sha256":{"type":"string"},"checked_at":{"type":"string","format":"date-time"},"real_money":{"type":"boolean"}}}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limit"},"502":{"description":"Source unavailable"},"503":{"description":"Busy; retry later"}}}}}}