{"openapi":"3.0.3","info":{"title":"VehiCore API","version":"2.0.0","description":"Vehicle-related API: OCR, damage recognition, car-side recognition, normalize, valuation. All endpoints return consistent errors: **400** Bad Request (validation), **401** Unauthorized (missing/invalid auth), **402** Payment Required (insufficient credits), **403** Forbidden (valid auth but not allowed), **404** Not Found, **500** Internal Server Error, **503** Service Unavailable (upstream dependency unavailable). Response shape: `{ \"message\": \"Human-readable text\", \"code\": \"OPTIONAL_CODE\" }`."},"servers":[{"url":"/"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"apiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"}},"responses":{"BadRequest":{"description":"Bad Request – Invalid input or validation failed (e.g. missing required field, invalid format).","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"email: Invalid email"},"code":{"type":"string","example":"VALIDATION_ERROR"}},"required":["message"]}}}},"Unauthorized":{"description":"Unauthorized – Missing or invalid authentication (e.g. missing X-API-Key, invalid or expired token).","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Missing X-API-Key"},"code":{"type":"string","example":"UNAUTHORIZED"}},"required":["message"]}}}},"PaymentRequired":{"description":"Payment Required – Insufficient credits for this API product. Purchase more credits to continue.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Insufficient credits. Purchase more to continue."},"code":{"type":"string","example":"INSUFFICIENT_CREDITS"}},"required":["message"]}}}},"Forbidden":{"description":"Forbidden – Valid credentials but not allowed to perform this action.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Invalid token"},"code":{"type":"string","example":"FORBIDDEN"}},"required":["message"]}}}},"NotFound":{"description":"Not Found – Resource does not exist.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"User not found"},"code":{"type":"string","example":"NOT_FOUND"}},"required":["message"]}}}},"InternalServerError":{"description":"Internal Server Error – Unexpected server error.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Internal Server Error"},"code":{"type":"string"}},"required":["message"]}}}},"ServiceUnavailable":{"description":"Service Unavailable – A required upstream dependency is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Service not available. Try again later."},"code":{"type":"string","example":"SERVICE_UNAVAILABLE"}},"required":["message","code"]}}}},"DemoLimitExceeded":{"description":"Too Many Requests – Demo rate limit exceeded (50 calls per service per IP, or 10 AI calls per IP). No X-API-Key required for demo; upgrade for full access.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["DEMO_SERVICE_LIMIT","DEMO_AI_LIMIT"]}},"required":["error"]}}}}},"schemas":{"ErrorResponse":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable error message"},"code":{"type":"string","description":"Optional machine-readable code (e.g. UNAUTHORIZED, VALIDATION_ERROR)"}},"required":["message"]},"Tokens":{"type":"object","properties":{"accessToken":{"type":"string"},"refreshToken":{"type":"string"}},"required":["accessToken","refreshToken"]},"AuthUser":{"type":"object","properties":{"_id":{"type":"string"},"id":{"type":"string"},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"fullName":{"type":"string"},"role":{"type":"string","enum":["guest","client","owner"]},"isConfirmed":{"type":"boolean"}},"additionalProperties":true},"AuthResult":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/AuthUser"},"accessToken":{"type":"string"},"refreshToken":{"type":"string"}},"required":["user"]},"Password":{"type":"string","minLength":8,"pattern":"^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[^A-Za-z0-9]).+$","description":"At least 8 characters and must include uppercase, lowercase, number, and special character."},"SignUpInput":{"type":"object","properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"phone":{"type":"string"},"dateOfBirth":{"type":"string"},"email":{"type":"string"},"password":{"$ref":"#/components/schemas/Password"},"telegram":{"type":"string"},"role":{"type":"string","enum":["guest","client","owner"]}},"required":["email","password","role"]},"SignInInput":{"type":"object","properties":{"email":{"type":"string"},"password":{"type":"string"}},"required":["email","password"]},"RefreshInput":{"type":"object","properties":{"refreshToken":{"type":"string"}},"required":["refreshToken"]},"VerificationEmailInput":{"type":"object","properties":{"email":{"type":"string"}},"required":["email"]},"ForgotPasswordRequestInput":{"type":"object","properties":{"email":{"type":"string"}},"required":["email"]},"ForgotPasswordResetInput":{"type":"object","properties":{"password":{"$ref":"#/components/schemas/Password"}},"required":["password"]},"ValidatePasswordInput":{"type":"object","properties":{"password":{"type":"string"}},"required":["password"]},"ValidatePasswordResult":{"type":"object","properties":{"valid":{"type":"boolean"}},"required":["valid"]},"ChangePasswordInput":{"type":"object","properties":{"oldPassword":{"type":"string"},"newPassword":{"$ref":"#/components/schemas/Password"}},"required":["oldPassword","newPassword"]},"TokenValidateResult":{"type":"object","properties":{"valid":{"type":"boolean"},"message":{"type":"string"},"userId":{"type":"string"},"userRole":{"type":"string"}},"required":["valid"]},"OcrResult":{"type":"object","properties":{"result":{"type":"string"}},"required":["result"]},"BoundingBox":{"type":"object","description":"Normalized bounding box coordinates [0.0, 1.0] relative to image dimensions","properties":{"ymin":{"type":"number","description":"Top edge normalized coordinate"},"xmin":{"type":"number","description":"Left edge normalized coordinate"},"ymax":{"type":"number","description":"Bottom edge normalized coordinate"},"xmax":{"type":"number","description":"Right edge normalized coordinate"}},"required":["ymin","xmin","ymax","xmax"]},"DamageItem":{"type":"object","properties":{"damage_type":{"type":"string","description":"Type of visual damage (e.g. deformation, dent, scratched, misaligned)"},"severity":{"type":"string","description":"Severity level (e.g. minor, moderate, severe)"},"confidence":{"type":"string","description":"Confidence level (e.g. low, medium, high)"},"position":{"type":"string","description":"Location of the damaged part on vehicle"},"recommendation":{"type":"string","description":"Action recommendation (e.g. repair, replace)"},"description":{"type":"string","description":"Detailed localized description of the damage"},"bounding_box":{"$ref":"#/components/schemas/BoundingBox"}}},"DamageRecognitionResult":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/DamageItem"}},"inspection":{"$ref":"#/components/schemas/DamageInspection"}},"required":["result"]},"InspectionDamage":{"type":"object","properties":{"id":{"type":"integer","description":"Stable number within this response (reading order, visible first). Use as the box label."},"part":{"type":"object","properties":{"code":{"type":"string","enum":["front_bumper","front_bumper_grille","front_bumper_lower_spoiler","front_bumper_reinforcement","grille","hood","headlight_left","headlight_right","fog_light_left","fog_light_right","front_license_plate","radiator","condenser","radiator_support","engine_undercover","front_crash_absorber","windshield","fender_front_left","fender_front_right","door_front_left","door_front_right","door_rear_left","door_rear_right","mirror_left","mirror_right","rocker_panel_left","rocker_panel_right","a_pillar_left","a_pillar_right","b_pillar_left","b_pillar_right","quarter_panel_rear_left","quarter_panel_rear_right","window_front_left","window_front_right","window_rear_left","window_rear_right","roof","sunroof","wheel_front_left","wheel_front_right","wheel_rear_left","wheel_rear_right","tire_front_left","tire_front_right","tire_rear_left","tire_rear_right","rear_bumper","rear_bumper_lower_diffuser","rear_bumper_reinforcement","trunk_lid","tailgate","rear_windshield","taillight_left","taillight_right","rear_license_plate","spoiler","exhaust","wheelhouse_liner_front_left","wheelhouse_liner_front_right","wheelhouse_liner_rear_left","wheelhouse_liner_rear_right","apron_front_left","apron_front_right","strut_tower_front_left","strut_tower_front_right","frame_rail_front_left","frame_rail_front_right","headlight_mount_left","headlight_mount_right","wheel_arch_flare_front_left","wheel_arch_flare_front_right","wheel_arch_flare_rear_left","wheel_arch_flare_rear_right","rocker_molding_left","rocker_molding_right","door_handle_front_left","door_handle_front_right","door_handle_rear_left","door_handle_rear_right","fuel_door","other"],"description":"Language-independent part code. `other` = not in catalog."},"label":{"type":"string","description":"Localized part name (userLanguage)"}},"required":["code","label"]},"kind":{"type":"string","enum":["visible","suspected"],"description":"`visible` = damage seen on the part. `suspected` = hidden part very likely damaged behind a visible impact."},"damage_types":{"type":"array","items":{"type":"string","enum":["scratch","dent","deformation","crack","broken","shattered","crushed","misaligned","detached","missing","puncture","paint_damage","corrosion","other"]}},"severity":{"type":"string","enum":["minor","moderate","severe","critical"],"description":"Derived from severity_score: minor 0–29, moderate 30–59, severe 60–84, critical 85–100"},"severity_score":{"type":"integer","minimum":0,"maximum":100},"action":{"type":"string","enum":["check","refinish","repair","replace"]},"confidence":{"type":"number","minimum":0,"maximum":1},"description":{"type":"string"},"bounding_box":{"allOf":[{"$ref":"#/components/schemas/BoundingBox"}],"nullable":true}},"required":["id","part","kind","damage_types","severity","severity_score","action","confidence","description","bounding_box"]},"DamageInspection":{"type":"object","description":"Returned only when the request sends `format=inspection`.","properties":{"version":{"type":"integer","enum":[1]},"precision":{"type":"string","enum":["standard","high"]},"status":{"type":"string","enum":["damage_detected","no_damage_detected","no_vehicle_detected"]},"front_points_to":{"type":"string","enum":["image_left","image_right","toward_camera","away_from_camera","unknown"],"description":"Where the vehicle front points in the photo. The visible flank side follows from it."},"side_corrected":{"type":"boolean","description":"True when the API flipped mirrored left/right part codes (and their labels) to match `front_points_to` or the `side` you sent."},"view":{"type":"string","enum":["front","rear","left","right","front_left","front_right","rear_left","rear_right","top","interior","unknown"]},"image_quality":{"type":"string","enum":["good","limited","poor"]},"summary":{"type":"object","properties":{"damaged_parts":{"type":"integer","description":"Visible damaged parts"},"suspected_parts":{"type":"integer"},"worst_severity":{"type":"string","enum":["minor","moderate","severe","critical"],"nullable":true},"max_severity_score":{"type":"integer"},"by_severity":{"type":"object","additionalProperties":{"type":"integer"}},"by_action":{"type":"object","additionalProperties":{"type":"integer"}}},"required":["damaged_parts","suspected_parts","worst_severity","max_severity_score","by_severity","by_action"]},"damages":{"type":"array","items":{"$ref":"#/components/schemas/InspectionDamage"}},"unmapped_parts":{"type":"array","items":{"type":"string"},"description":"Damaged parts reported with part.code `other`"}},"required":["version","precision","status","front_points_to","side_corrected","view","image_quality","summary","damages","unmapped_parts"]},"ImageClassificationResult":{"type":"object","properties":{"result":{"type":"string"},"confidence":{"type":"number"},"model":{"type":"string","enum":["clip","vit"]},"anonymization":{"type":"object","properties":{"mustAnonymize":{"type":"boolean"},"reasons":{"type":"array","items":{"type":"string","enum":["face","license_plate","vin","personal_document"]}},"detected":{"type":"object","properties":{"face":{"type":"boolean"},"licensePlate":{"type":"boolean"},"vin":{"type":"boolean"},"personalDocument":{"type":"boolean"}},"required":["face","licensePlate","vin","personalDocument"]},"counts":{"type":"object","properties":{"faces":{"type":"number"},"licensePlates":{"type":"number"}},"required":["faces","licensePlates"]}},"required":["mustAnonymize","reasons","detected","counts"]},"predictions":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"score":{"type":"number"}},"required":["label","score"]}}},"required":["result","confidence","model","anonymization"]},"ClaimProcessFileResult":{"type":"object","properties":{"filename":{"type":"string"},"mimetype":{"type":"string"},"size":{"type":"number"},"kind":{"type":"string","enum":["photo","document","unknown"]},"stepsExecuted":{"type":"array","items":{"type":"string"}},"personalInfo":{"type":"object","additionalProperties":true},"anonymization":{"type":"object","properties":{"applied":{"type":"boolean"},"note":{"type":"string"}},"required":["applied"]},"ocr":{"type":"object","properties":{"text":{"type":"string","nullable":true},"note":{"type":"string"}},"required":["text"]},"damage":{"type":"object","properties":{"result":{"type":"string","nullable":true},"note":{"type":"string"}},"required":["result"]},"errors":{"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"message":{"type":"string"}},"required":["step","message"]}}},"required":["filename","mimetype","size","kind","stepsExecuted","errors"]},"ClaimProcessFilesResult":{"type":"object","properties":{"receivedAt":{"type":"string"},"files":{"type":"array","items":{"$ref":"#/components/schemas/ClaimProcessFileResult"}}},"required":["receivedAt","files"]},"ApiKeyCreateInput":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"ApiKeyCreated":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string"},"status":{"type":"string","enum":["active","revoked"]},"apiKey":{"type":"string","description":"Shown only once on creation"}},"required":["id","name","prefix","status","apiKey"]},"PackageInput":{"type":"object","properties":{"product":{"type":"string","enum":["ocr","damage-recognition","car-side-recognition","image-classification","normalize","valuation"]},"name":{"type":"string"},"currency":{"type":"string","example":"eur"},"priceCents":{"type":"number","example":1000},"credits":{"type":"number","example":1000},"active":{"type":"boolean"}},"required":["product","name","currency","priceCents","credits"]},"CheckoutInput":{"type":"object","properties":{"packageId":{"type":"string","pattern":"^[a-fA-F0-9]{24}$","description":"Legacy single-package checkout. Omit when using packageIds."},"packageIds":{"type":"array","items":{"type":"string","pattern":"^[a-fA-F0-9]{24}$"},"minItems":1,"maxItems":20,"uniqueItems":true,"description":"Distinct packages in the same currency; one of each is purchased."},"apiKeyId":{"type":"string","pattern":"^[a-fA-F0-9]{24}$"}},"required":["apiKeyId"],"oneOf":[{"required":["packageId"],"not":{"required":["packageIds"]}},{"required":["packageIds"],"not":{"required":["packageId"]}}]},"CheckoutResult":{"type":"object","properties":{"url":{"type":"string"},"id":{"type":"string"}},"required":["url","id"]},"PriceChangeDataInput":{"type":"object","description":"Car criteria for price change lookup. All fields optional.","properties":{"brand":{"type":"string","example":"bmw"},"combustion":{"type":"string","example":"diesel"},"gearbox":{"type":"string","example":"automatic"},"model":{"type":"string","example":"320"},"year":{"type":"number","example":2020},"country":{"type":"string","example":"italy"}},"example":{"brand":"bmw","model":"320","gearbox":"automatic","combustion":"diesel","year":2020,"country":"italy"}},"NormalizeSelectDataInput":{"type":"object","description":"Car fields to normalize/lookup. country is required; other fields optional.","properties":{"bodyType":{"type":"string","example":"sedan"},"brand":{"type":"string","example":"bmw"},"color":{"type":"string","example":"black"},"combustion":{"type":"string","example":"diesel"},"gearbox":{"type":"string","example":"automatic"},"model":{"type":"string","example":"320"},"numberOfDoors":{"type":"number","example":4},"numberOfSeats":{"type":"number","example":5},"traction":{"type":"string","example":"fwd"},"year":{"type":"number","example":2020},"mileage":{"type":"number","example":50000},"country":{"type":"string","example":"italy"}},"required":["country"],"example":{"brand":"bmw","model":"320","gearbox":"automatic","combustion":"diesel","bodyType":"sedan","country":"italy"}},"SupportTicketCreateInput":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"},"email":{"type":"string","format":"email"}},"required":["title","message","email"]},"SupportTicket":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"message":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["new","processing","done"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","title","message","email","status"]},"SupportTicketStatusUpdateInput":{"type":"object","properties":{"status":{"type":"string","enum":["new","processing","done"]}},"required":["status"]},"AdminStatsDemoByDay":{"type":"object","properties":{"day":{"type":"string","example":"2026-03-16"},"successCount":{"type":"number","example":42},"successAiCount":{"type":"number","example":12},"blockedServiceLimitCount":{"type":"number","example":3},"blockedAiLimitCount":{"type":"number","example":1}},"required":["day","successCount","successAiCount","blockedServiceLimitCount","blockedAiLimitCount"]},"AdminStatsResult":{"type":"object","properties":{"range":{"type":"object","properties":{"from":{"type":"string","format":"date-time","nullable":true},"to":{"type":"string","format":"date-time","nullable":true}},"required":["from","to"]},"revenueCents":{"type":"object","properties":{"period":{"type":"number"},"allTime":{"type":"number"}},"required":["period","allTime"]},"credits":{"type":"object","properties":{"sold":{"type":"object","properties":{"period":{"type":"number"},"allTime":{"type":"number"}},"required":["period","allTime"]},"usedAllTime":{"type":"number"},"remainingAllTime":{"type":"number"}},"required":["sold","usedAllTime","remainingAllTime"]},"users":{"type":"object","properties":{"total":{"type":"number"},"createdPeriod":{"type":"number"}},"required":["total","createdPeriod"]},"tokens":{"type":"object","properties":{"total":{"type":"number"},"createdPeriod":{"type":"number"}},"required":["total","createdPeriod"]},"purchases":{"type":"object","properties":{"countPeriod":{"type":"number"},"countAllTime":{"type":"number"}},"required":["countPeriod","countAllTime"]},"demo":{"type":"object","properties":{"overview":{"type":"object","properties":{"successCount":{"type":"number"},"successAiCount":{"type":"number"},"blockedServiceLimitCount":{"type":"number"},"blockedAiLimitCount":{"type":"number"}},"required":["successCount","successAiCount","blockedServiceLimitCount","blockedAiLimitCount"]},"graphs":{"type":"object","properties":{"byDay":{"type":"array","items":{"$ref":"#/components/schemas/AdminStatsDemoByDay"}}},"required":["byDay"]}},"required":["overview","graphs"]},"graphs":{"type":"object","properties":{"granularity":{"type":"string","enum":["day"]},"range":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"}},"required":["from","to"]},"revenueCentsByDay":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"value":{"type":"number"}},"required":["day","value"]}},"creditsSoldByDay":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"value":{"type":"number"}},"required":["day","value"]}},"purchasesCountByDay":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"value":{"type":"number"}},"required":["day","value"]}},"usersCreatedByDay":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"value":{"type":"number"}},"required":["day","value"]}},"tokensCreatedByDay":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"value":{"type":"number"}},"required":["day","value"]}}},"required":["granularity","range","revenueCentsByDay","creditsSoldByDay","purchasesCountByDay","usersCreatedByDay","tokensCreatedByDay"]}},"required":["range","revenueCents","credits","users","tokens","purchases","demo","graphs"]}}},"paths":{"/":{"get":{"tags":["system"],"summary":"Root","responses":{"200":{"description":"OK"}}}},"/health":{"get":{"tags":["system"],"summary":"Health check","responses":{"200":{"description":"OK"}}}},"/status":{"get":{"tags":["system"],"summary":"Public service status snapshot","responses":{"200":{"description":"Aggregated status for public Vehicore services.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["operational","degraded","unavailable"]},"checkedAt":{"type":"string","format":"date-time"},"services":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["operational","degraded","unavailable"]},"message":{"type":"string"},"latencyMs":{"type":"number"},"checkedAt":{"type":"string","format":"date-time"}},"required":["id","name","description","status","checkedAt"]}}},"required":["status","checkedAt","services"]}}}}}}},"/api/auth/sign-up":{"post":{"tags":["auth"],"summary":"Sign up","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignUpInput"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/api/auth/sign-in":{"post":{"tags":["auth"],"summary":"Sign in","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInInput"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/api/auth/confirm-email":{"get":{"tags":["auth"],"summary":"Confirm email","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/api/auth/confirm-email-change":{"get":{"tags":["auth"],"summary":"Confirm an email-address change","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh tokens","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshInput"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tokens"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/auth/logout":{"post":{"tags":["auth"],"summary":"Revoke all refresh sessions for the current user","security":[{"bearerAuth":[]}],"responses":{"204":{"description":"Logged out"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/api/auth/verification-email":{"post":{"tags":["auth"],"summary":"Send verification email","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationEmailInput"}}}},"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/auth/forgot-password":{"post":{"tags":["auth"],"summary":"Forgot password (request email) OR reset password (token query)","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ForgotPasswordRequestInput"},{"$ref":"#/components/schemas/ForgotPasswordResetInput"}]}}}},"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/auth/validate-password":{"post":{"tags":["auth"],"summary":"Validate current password","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidatePasswordInput"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidatePasswordResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/api/auth/change-password":{"post":{"tags":["auth"],"summary":"Change password","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordInput"}}}},"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/api/token/validate":{"post":{"tags":["auth"],"summary":"Validate bearer token","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenValidateResult"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenValidateResult"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenValidateResult"}}}}}}},"/api/users/me":{"get":{"tags":["users"],"summary":"Get current user","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}},"delete":{"tags":["users"],"summary":"Delete current user","security":[{"bearerAuth":[]}],"responses":{"204":{"description":"Deleted"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/api/billing/products":{"get":{"tags":["billing"],"summary":"List supported API products","responses":{"200":{"description":"OK"}}}},"/api/packages":{"get":{"tags":["billing"],"summary":"List active packages","responses":{"200":{"description":"OK"}}}},"/api/usage":{"get":{"tags":["billing"],"summary":"Get my usage overview","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/api/keys":{"get":{"tags":["billing"],"summary":"List API keys","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}},"post":{"tags":["billing"],"summary":"Create API key (returns key once)","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreateInput"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreated"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/api/keys/{id}/revoke":{"delete":{"tags":["billing"],"summary":"Revoke API key","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Revoked"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}},"post":{"tags":["billing"],"summary":"Revoke API key (legacy compatibility)","deprecated":true,"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/billing/checkout":{"post":{"tags":["billing"],"summary":"Create Stripe Checkout session","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutInput"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/api/billing/checkout/{sessionId}":{"get":{"tags":["billing"],"summary":"Read confirmation status for your own checkout","security":[{"bearerAuth":[]}],"parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","pattern":"^cs_[a-zA-Z0-9_]{1,250}$"}}],"responses":{"200":{"description":"Paid means the webhook transaction has granted credits","content":{"application/json":{"schema":{"type":"object","required":["status","creditsByProduct","apiKeyId"],"properties":{"status":{"type":"string","enum":["pending","paid","failed"]},"apiKeyId":{"type":"string"},"paidAt":{"type":"string","format":"date-time"},"creditsByProduct":{"type":"array","items":{"type":"object","properties":{"product":{"type":"string"},"credits":{"type":"integer","minimum":1}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"description":"Unknown session or session belonging to another user"}}}},"/api/billing/checkout/{sessionId}/reconcile":{"post":{"tags":["billing"],"summary":"Verify your pending checkout with Stripe and fulfill it idempotently","security":[{"bearerAuth":[]}],"parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","pattern":"^cs_[a-zA-Z0-9_]{1,250}$"}}],"responses":{"200":{"description":"Checkout status; paid means credits have been granted"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"description":"Unknown checkout or another user’s session"},"503":{"description":"Stripe unavailable; retry later"}}}},"/api/billing/welcome/preview":{"post":{"tags":["billing"],"summary":"Read personal welcome offer without redeeming it","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["token"],"properties":{"token":{"type":"string","pattern":"^[a-f0-9]{64}$"}}}}}},"responses":{"200":{"description":"status (available, expired or claimed), expiresAt and creditsByProduct"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"description":"Unknown token or token belonging to another account"}}}},"/api/billing/welcome/redeem":{"post":{"tags":["billing"],"summary":"Atomically claim 50 credits per service once per account on an owned active API key","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["token","apiKeyId"],"properties":{"token":{"type":"string","pattern":"^[a-f0-9]{64}$"},"apiKeyId":{"type":"string","pattern":"^[a-fA-F0-9]{24}$"}}}}}},"responses":{"200":{"description":"status: claimed, creditsByProduct. Credits do not expire."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Email confirmation required"},"409":{"description":"Link invalid, expired, replaced or already claimed"}}}},"/api/support":{"post":{"tags":["support"],"summary":"Submit a support ticket (contact form)","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportTicketCreateInput"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportTicket"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/support/conversation":{"get":{"tags":["support"],"summary":"Get the current customer support conversation","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Conversation or null"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/api/support/conversation/read":{"post":{"tags":["support"],"summary":"Acknowledge the current customer conversation as read","security":[{"bearerAuth":[]}],"responses":{"204":{"description":"Acknowledged"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/api/support/conversation/new":{"post":{"tags":["support"],"summary":"Close the active conversation and start a new one on the next message","security":[{"bearerAuth":[]}],"responses":{"204":{"description":"Ready for a new conversation"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/api/support/conversation/messages":{"post":{"tags":["support"],"summary":"Append a customer message to the active conversation","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":4000}},"required":["message"]}}}},"responses":{"201":{"description":"Message appended"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/api/ocr/health":{"get":{"tags":["ocr"],"summary":"Health","responses":{"200":{"description":"OK"}}}},"/api/ocr/{type}":{"post":{"tags":["ocr"],"summary":"OCR recognition","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["plate","vin","odometer"]}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"image":{"type":"string","format":"binary"},"userLanguage":{"type":"string"}},"required":["image"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OcrResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/damage-recognition/health":{"get":{"tags":["damage-recognition"],"summary":"Health","responses":{"200":{"description":"OK"}}}},"/api/damage-recognition":{"post":{"tags":["damage-recognition"],"summary":"Damage recognition","description":"AI infers vehicle side from the image. No path param required.","security":[{"apiKeyAuth":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"image":{"type":"string","format":"binary"},"userLanguage":{"type":"string","example":"de-DE","description":"Language for part labels and descriptions: any BCP-47 tag (`de`, `pt-BR`, `hy`, `zh-Hant`) or English language name (`Armenian`). Defaults to English; enum values stay English."},"format":{"type":"string","enum":["default","inspection"],"default":"default","description":"`inspection` adds the `inspection` block: catalog part codes, severity score 0–100, numeric confidence, suspected hidden parts, numbering and summary."},"precision":{"type":"string","enum":["standard","high"],"default":"standard","description":"Only with `format=inspection`. `standard` runs the default model with a second pass for missed damage and zoomed box refinement (about 20–30 s). `high` uses a stronger vision model (gpt-6.1-terra) with the same missed-damage pass: more accurate sides, boxes and severity and fewer misses (e.g. rim curb rash), usually faster (15–22 s), about 5x the AI cost."},"side":{"type":"string","enum":["left","right"],"description":"Only with `format=inspection`. The vehicle side shown in the photo, when you know it (e.g. from your capture flow). Overrides the side the model infers."}},"required":["image"]}}}},"responses":{"200":{"description":"Damage recognition completed successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamageRecognitionResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/car-side-recognition/health":{"get":{"tags":["car-side-recognition"],"summary":"Health","responses":{"200":{"description":"OK"}}}},"/api/car-side-recognition":{"post":{"tags":["car-side-recognition"],"summary":"Car side recognition","security":[{"apiKeyAuth":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"image":{"type":"string","format":"binary"},"userLanguage":{"type":"string"}},"required":["image"]}}}},"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/image-classification/health":{"get":{"tags":["image-classification"],"summary":"Health","responses":{"200":{"description":"OK"}}}},"/api/image-classification/{type}":{"post":{"tags":["image-classification"],"summary":"Image classification & privacy assessment","description":"Classify an image as car, document, odometer, vin, license plate, etc. using CLIP (zero-shot) or ViT (ImageNet). Simultaneously performs an automated privacy assessment detecting human faces, license plates, VINs, and personal documents requiring anonymization. Provide multipart field `image` OR query `?url=...`.","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["clip","vit"]}},{"name":"url","in":"query","required":false,"schema":{"type":"string","format":"uri"}},{"name":"labels","in":"query","required":false,"schema":{"type":"string","example":"car,document,motorcycle,truck,person,other"},"description":"Comma-separated labels (CLIP only)."}],"requestBody":{"required":false,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"image":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageClassificationResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"}}},"get":{"tags":["image-classification"],"summary":"Image classification & privacy assessment (URL)","description":"Classify an image hosted at a public URL as car, document, odometer, vin, etc. and assess if it contains sensitive PII (faces, plates, VINs, documents) requiring anonymization.","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["clip","vit"]}},{"name":"url","in":"query","required":true,"schema":{"type":"string","format":"uri"}},{"name":"labels","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageClassificationResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/normalize/health":{"get":{"tags":["normalize"],"summary":"Health","responses":{"200":{"description":"OK"}}}},"/api/normalize/normalize-text":{"post":{"tags":["normalize"],"summary":"Normalize from text","security":[{"apiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string"},"country":{"type":"string","example":"italy"}},"required":["text","country"]}}}},"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/normalize/normalize-select-data":{"post":{"tags":["normalize"],"summary":"Normalize from selected fields","security":[{"apiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NormalizeSelectDataInput"}}}},"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/valuation/health":{"get":{"tags":["valuation"],"summary":"Health","responses":{"200":{"description":"OK"}}}},"/api/valuation/price-change-data":{"post":{"tags":["valuation"],"summary":"Get price change data","security":[{"apiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceChangeDataInput"}}}},"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"$ref":"#/components/responses/NotFound"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/anonymize":{"post":{"tags":["anonymization"],"summary":"Anonymize license plates in an image","description":"Upload an image (multipart field `image`). By default returns `multipart/mixed` (JSON metadata + anonymized image). Use `?response=image` to get only the image, or `?response=json` for metadata only.","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"response","in":"query","schema":{"type":"string","enum":["mixed","image","json"]}},{"name":"padding","in":"query","schema":{"type":"number","description":"Override padding ratio (0.10..0.30)"}},{"name":"shrink","in":"query","schema":{"type":"number","description":"Override shrink ratio (0..0.40)"}},{"name":"blur","in":"query","schema":{"type":"number","description":"Override blur sigma (1..80)"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"image":{"type":"string","format":"binary"}},"required":["image"]}}}},"responses":{"200":{"description":"OK (multipart/mixed, image/*, or JSON depending on `response`)"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"415":{"description":"Unsupported Media Type"},"503":{"description":"Service Unavailable (model not configured)"}}}},"/api/anonymize/face":{"post":{"tags":["anonymization"],"summary":"Anonymize faces in an image","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"response","in":"query","schema":{"type":"string","enum":["mixed","image","json"]}},{"name":"padding","in":"query","schema":{"type":"number"}},{"name":"shrink","in":"query","schema":{"type":"number"}},{"name":"blur","in":"query","schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"image":{"type":"string","format":"binary"}},"required":["image"]}}}},"responses":{"200":{"description":"OK (multipart/mixed, image/*, or JSON depending on `response`)"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"415":{"description":"Unsupported Media Type"},"503":{"description":"Service Unavailable (model not configured)"}}}},"/api/anonymize/all":{"post":{"tags":["anonymization"],"summary":"Anonymize plates + faces in one pass","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"response","in":"query","schema":{"type":"string","enum":["mixed","image","json"]}},{"name":"padding","in":"query","schema":{"type":"number"}},{"name":"shrink","in":"query","schema":{"type":"number"}},{"name":"blur","in":"query","schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"image":{"type":"string","format":"binary"}},"required":["image"]}}}},"responses":{"200":{"description":"OK (multipart/mixed, image/*, or JSON depending on `response`)"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"415":{"description":"Unsupported Media Type"},"503":{"description":"Service Unavailable (model not configured)"}}}},"/api/claim/health":{"get":{"tags":["claim"],"summary":"Health","responses":{"200":{"description":"OK"}}}},"/api/claim/standardize":{"post":{"tags":["claim"],"summary":"Standardize claim data (photos + documents + metadata)","description":"Pipeline: optional face+plate anonymization → document text extraction → damage detection on anonymized photos → structured output. Charged as a single call.","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"steps","in":"query","required":false,"schema":{"type":"string","example":"anonymize,ocr,damage,structure"},"description":"Comma-separated list of steps to run. Defaults to all."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"photos":{"type":"array","items":{"type":"string","format":"binary"}},"documents":{"type":"array","items":{"type":"string","format":"binary"}},"metadata":{"type":"string","description":"JSON string with metadata (e.g. carSide, userLanguage, etc.)"}}}}}},"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/claim/process":{"post":{"tags":["claim"],"summary":"Process mixed files (auto-detect + pipeline)","description":"Upload a mixed list of files (photos + documents). VehiCore auto-detects file kind and runs a middleware-style pipeline per file (e.g. personal-info extraction → anonymize → damage for photos; OCR for documents). Returns per-file results.","security":[{"apiKeyAuth":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"string","format":"binary"}},"metadata":{"type":"string","description":"Optional JSON string with metadata."}},"required":["files"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimProcessFilesResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/defraud/health":{"get":{"tags":["defraud"],"summary":"Defraud images health","responses":{"200":{"description":"OK"}}}},"/api/defraud/images":{"post":{"tags":["defraud"],"summary":"Detect image fraud and plausibility signals","description":"Runs deterministic EXIF timeline, editing software, screenshot, and perceptual duplicate checks on 1-20 claim images with zero image retention.","security":[{"apiKeyAuth":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["images"],"properties":{"images":{"type":"array","items":{"type":"string","format":"binary"},"description":"1 to 20 images (JPEG/PNG/WebP/TIFF/HEIC)"},"lossDate":{"type":"string","format":"date","description":"Reported loss date (ISO-8601)"},"firstRegistrationDate":{"type":"string","format":"date","description":"Vehicle first registration date (ISO-8601)"},"referenceHashes":{"type":"string","description":"Optional JSON array of 16-char dHash or 64-char sha256 strings from prior claims"},"duplicateThreshold":{"type":"integer","minimum":0,"maximum":16,"default":6,"description":"Max dHash Hamming distance for perceptual duplicate matching"}}}}}},"responses":{"200":{"description":"Image fraud analysis result"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}}}}