{"openapi":"3.0.3","info":{"title":"AI Consumer Compliance API","version":"1.0.0","description":"Public JSON API for AI Consumer Compliance content and personalization.","contact":{"url":"https://aiconsumercompliance.com/contact"},"license":{"name":"Proprietary"}},"servers":[{"url":"https://aiconsumercompliance.com/api/v1"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Opaque"}},"schemas":{"Error":{"type":"object","properties":{"message":{"type":"string"},"errors":{"type":"object"}}}}},"paths":{"/countries":{"get":{"summary":"List countries","parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"region","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"per_page","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/countries/{slug}":{"get":{"summary":"Get country","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/industries":{"get":{"summary":"List industries","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/industries/{slug}":{"get":{"summary":"Get industry","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/topics":{"get":{"summary":"List topics","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/topics/{slug}":{"get":{"summary":"Get topic","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/regulations":{"get":{"summary":"List regulations","parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"country","in":"query","schema":{"type":"string"}},{"name":"industry","in":"query","schema":{"type":"string"}},{"name":"topic","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/regulations/{slug}":{"get":{"summary":"Get regulation","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/articles":{"get":{"summary":"List articles","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/articles/{slug}":{"get":{"summary":"Get article","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/glossary":{"get":{"summary":"List glossary terms","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/glossary/{slug}":{"get":{"summary":"Get glossary term","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/search":{"get":{"summary":"Cross-collection search","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/auth/register":{"post":{"summary":"Register a new consumer","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string","format":"email"},"password":{"type":"string"},"device":{"type":"string"},"platform":{"type":"string"}},"required":["name","email","password"]}}}},"responses":{"201":{"description":"Created"}}}},"/auth/login":{"post":{"summary":"Log in and receive a bearer token","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"password":{"type":"string"},"device":{"type":"string"},"platform":{"type":"string"}},"required":["email","password"]}}}},"responses":{"200":{"description":"OK"}}}},"/auth/logout":{"post":{"summary":"Revoke current token","responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]}},"/auth/password/request":{"post":{"summary":"Send password reset link","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"}},"required":["email"]}}}},"responses":{"200":{"description":"OK"}}}},"/auth/password/reset":{"post":{"summary":"Reset password with token","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"email":{"type":"string","format":"email"},"password":{"type":"string"}},"required":["token","email","password"]}}}},"responses":{"200":{"description":"OK"}}}},"/auth/email/resend":{"post":{"summary":"Resend email verification","responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]}},"/auth/email/status":{"get":{"summary":"Get email verification status","responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]}},"/me":{"get":{"summary":"Current user","responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]},"patch":{"summary":"Update profile","responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]},"delete":{"summary":"Delete account (GDPR)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"string","enum":["DELETE"]}},"required":["confirm"]}}}},"responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]}},"/watchlist":{"get":{"summary":"List watchlist","responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]},"post":{"summary":"Add to watchlist","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["country","industry","topic","regulation"]},"id":{"type":"integer"},"notify_email":{"type":"boolean"},"notify_push":{"type":"boolean"}},"required":["type","id"]}}}},"responses":{"201":{"description":"Created"}},"security":[{"bearerAuth":[]}]}},"/watchlist/{id}":{"delete":{"summary":"Remove from watchlist","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]}},"/alerts":{"get":{"summary":"List alerts","responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]}},"/alerts/{id}/read":{"post":{"summary":"Mark alert read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]}},"/alerts/read-all":{"post":{"summary":"Mark all alerts read","responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]}},"/saved-searches":{"get":{"summary":"List saved searches","responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]},"post":{"summary":"Create a saved search","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string"},"query":{"type":"string"},"scope":{"type":"string"},"filters":{"type":"object"}},"required":["label","scope"]}}}},"responses":{"201":{"description":"Created"}},"security":[{"bearerAuth":[]}]}},"/saved-searches/{id}":{"delete":{"summary":"Delete a saved search","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]}}}}