{"openapi":"3.0.0","info":{"title":"Autoinspector API","version":"1.0.0","description":"Unified OpenAPI document for public Autoinspector APIs."},"servers":[{"url":"https://api.autoinspector.ai"}],"paths":{"/v2/template":{"get":{"description":"Return a list of templates previously created. Templates are sorted by creation date in descending order.","operationId":"TemplatePublicApiV2Controller_listTemplates","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"number","minimum":1,"exclusiveMinimum":false,"maximum":10,"exclusiveMaximum":false,"default":10},"description":""},{"name":"page","required":false,"in":"query","schema":{"type":"number","minimum":1,"exclusiveMinimum":false,"default":1},"description":""},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["draft","published"]},"description":""}],"responses":{"200":{"description":"List of minimal template object","content":{"application/json":{"schema":{"type":["object"],"properties":{"data":{"type":["array"],"items":{"type":["object"],"properties":{"_id":{"type":["string"],"description":"Template ID"},"name":{"type":["string"],"description":"Template name"},"status":{"type":["string"],"enum":["draft","published"],"description":"Template status"},"createdAt":{"type":["string"],"format":"date-time","description":"Template creation date"},"updatedAt":{"type":["string"],"format":"date-time","description":"Template last update date"},"publishedAt":{"type":["string"],"format":"date-time","description":"Template publication date"}},"required":["_id","name","status","createdAt","updatedAt"]}},"meta":{"type":["object"],"properties":{"total":{"type":["number"],"description":"Total number of templates"},"page":{"type":["number"],"description":"Current page"},"limit":{"type":["number"],"description":"Limit per page"},"hasMore":{"type":["boolean"],"description":"If there are more templates to fetch"}},"required":["total","page","limit","hasMore"]}},"required":["data","meta"]}}}}},"summary":"List templates","tags":["Templates v2"]}},"/v2/template/{templateId}":{"get":{"description":"Retrieve template details","operationId":"TemplatePublicApiV2Controller_retrieveTemplate","parameters":[{"name":"stage","required":false,"in":"query","schema":{"description":"Stage to consider when building template assets schema. By default all stages are considered.","type":"string","enum":["create","update","complete"]},"description":"Stage to consider when building template assets schema. By default all stages are considered."},{"name":"templateId","required":true,"in":"path","schema":{"type":"string"},"description":""}],"responses":{"200":{"description":"Template object","content":{"application/json":{"schema":{"type":["object"],"properties":{"_id":{"type":["string"],"description":"Template ID"},"name":{"type":["string"],"description":"Template name"},"status":{"type":["string"],"enum":["draft","published"],"description":"Template status"},"createdAt":{"type":["string"],"format":"date-time","description":"Template creation date"},"updatedAt":{"type":["string"],"format":"date-time","description":"Template last update date"},"publishedAt":{"type":["string"],"format":"date-time","description":"Template publication date"},"schema":{"type":["object"],"additionalProperties":{},"description":"Template assets JSON Schema","example":{"type":["object"],"properties":{"assets":{"type":["array"],"items":{"discriminator":{"propertyName":"identifier"},"oneOf":[{"type":["object"],"properties":{"label":{"type":["string"],"enum":["Nombre"]},"identifier":{"type":["string"],"enum":["input_799d0410-6f9f-4336-acd1-9dde9af158bd"]},"type":{"type":["string"],"enum":["text"]},"value":{"type":["string"]}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"label":{"type":["string"],"enum":["Apellido"]},"identifier":{"type":["string"],"enum":["input_7c9c6f4b-b74d-4842-b6fa-b59e6e1d57b5"]},"type":{"type":["string"],"enum":["text"]},"value":{"type":["string"]}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"label":{"type":["string"],"enum":["File"]},"identifier":{"type":["string"],"enum":["input_12f97833-f738-42bf-8b7e-10b27ae964b9"]},"type":{"type":["string"],"enum":["file"]},"value":{"type":["string"],"description":"File Object ID"}},"required":["identifier","type","value"]}]}}},"required":["assets"]}},"assets":{"type":["array"],"items":{"discriminator":{"propertyName":"type"},"oneOf":[{"type":["object"],"properties":{"identifier":{"type":["string"],"description":"Asset identifier"},"label":{"type":["string"],"description":"Asset label"},"description":{"type":["string"],"description":"Asset description"},"stages":{"type":["array"],"items":{"type":["string"],"enum":["create","update","complete"]}},"type":{"type":["string"],"enum":["text"]},"validation":{"type":["object"],"properties":{"required":{"type":["boolean"]},"minLength":{"type":["number"]},"maxLength":{"type":["number"]},"email":{"type":["boolean"]},"pattern":{"type":["string"]}},"required":["required"]}},"required":["identifier","label","stages","type","validation"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"description":"Asset identifier"},"label":{"type":["string"],"description":"Asset label"},"description":{"type":["string"],"description":"Asset description"},"stages":{"type":["array"],"items":{"type":["string"],"enum":["create","update","complete"]}},"type":{"type":["string"],"enum":["numeric"]},"validation":{"type":["object"],"properties":{"required":{"type":["boolean"]},"minimum":{"type":["number"]},"maximum":{"type":["number"]},"minDigits":{"type":["number"]},"maxDigits":{"type":["number"]}},"required":["required"]}},"required":["identifier","label","stages","type","validation"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"description":"Asset identifier"},"label":{"type":["string"],"description":"Asset label"},"description":{"type":["string"],"description":"Asset description"},"stages":{"type":["array"],"items":{"type":["string"],"enum":["create","update","complete"]}},"type":{"type":["string"],"enum":["select"]},"validation":{"type":["object"],"properties":{"required":{"type":["boolean"]}},"required":["required"]},"options":{"type":["array"],"items":{"type":["object"],"properties":{"label":{"type":["string"],"description":"Option label"}},"required":["label"]}}},"required":["identifier","label","stages","type","validation","options"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"description":"Asset identifier"},"label":{"type":["string"],"description":"Asset label"},"description":{"type":["string"],"description":"Asset description"},"stages":{"type":["array"],"items":{"type":["string"],"enum":["create","update","complete"]}},"type":{"type":["string"],"enum":["multiselect"]},"validation":{"type":["object"],"properties":{"required":{"type":["boolean"]},"minOptions":{"type":["number"]},"maxOptions":{"type":["number"]}},"required":["required"]},"options":{"type":["array"],"items":{"type":["object"],"properties":{"label":{"type":["string"],"description":"Option label"}},"required":["label"]}}},"required":["identifier","label","stages","type","validation","options"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"description":"Asset identifier"},"label":{"type":["string"],"description":"Asset label"},"description":{"type":["string"],"description":"Asset description"},"stages":{"type":["array"],"items":{"type":["string"],"enum":["create","update","complete"]}},"type":{"type":["string"],"enum":["date"]},"validation":{"type":["object"],"properties":{"required":{"type":["boolean"]},"minDate":{"type":["string"],"format":"date-time"},"maxDate":{"type":["string"],"format":"date-time"}},"required":["required"]}},"required":["identifier","label","stages","type","validation"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"description":"Asset identifier"},"label":{"type":["string"],"description":"Asset label"},"description":{"type":["string"],"description":"Asset description"},"stages":{"type":["array"],"items":{"type":["string"],"enum":["create","update","complete"]}},"type":{"type":["string"],"enum":["file","video","audio"]},"validation":{"type":["object"],"properties":{"required":{"type":["boolean"]}},"required":["required"]}},"required":["identifier","label","stages","type","validation"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"description":"Asset identifier"},"label":{"type":["string"],"description":"Asset label"},"description":{"type":["string"],"description":"Asset description"},"stages":{"type":["array"],"items":{"type":["string"],"enum":["create","update","complete"]}},"type":{"type":["string"],"enum":["checkboxGroup"]},"validation":{"type":["object"],"properties":{"required":{"type":["boolean"]},"minOptions":{"type":["number"]},"maxOptions":{"type":["number"]}},"required":["required"]},"options":{"type":["array"],"items":{"type":["object"],"properties":{"label":{"type":["string"],"description":"Option label"}},"required":["label"]}}},"required":["identifier","label","stages","type","validation","options"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"description":"Asset identifier"},"label":{"type":["string"],"description":"Asset label"},"description":{"type":["string"],"description":"Asset description"},"stages":{"type":["array"],"items":{"type":["string"],"enum":["create","update","complete"]}},"type":{"type":["string"],"enum":["dialogDecision"]},"validation":{"type":["object"],"properties":{"required":{"type":["boolean"]}},"required":["required"]}},"required":["identifier","label","stages","type","validation"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"description":"Asset identifier"},"label":{"type":["string"],"description":"Asset label"},"description":{"type":["string"],"description":"Asset description"},"stages":{"type":["array"],"items":{"type":["string"],"enum":["create","update","complete"]}},"type":{"type":["string"],"enum":["signature"]},"validation":{"type":["object"],"properties":{"required":{"type":["boolean"]}},"required":["required"]}},"required":["identifier","label","stages","type","validation"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"description":"Asset identifier"},"label":{"type":["string"],"description":"Asset label"},"description":{"type":["string"],"description":"Asset description"},"stages":{"type":["array"],"items":{"type":["string"],"enum":["create","update","complete"]}},"type":{"type":["string"],"enum":["image"]},"validation":{"type":["object"],"properties":{"required":{"type":["boolean"]}},"required":["required"]}},"required":["identifier","label","stages","type","validation"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"description":"Asset identifier"},"label":{"type":["string"],"description":"Asset label"},"description":{"type":["string"],"description":"Asset description"},"stages":{"type":["array"],"items":{"type":["string"],"enum":["create","update","complete"]}},"type":{"type":["string"],"enum":["textarea"]},"validation":{"type":["object"],"properties":{"required":{"type":["boolean"]},"minLength":{"type":["number"]},"maxLength":{"type":["number"]},"pattern":{"type":["string"]}},"required":["required"]}},"required":["identifier","label","stages","type","validation"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"description":"Asset identifier"},"label":{"type":["string"],"description":"Asset label"},"description":{"type":["string"],"description":"Asset description"},"stages":{"type":["array"],"items":{"type":["string"],"enum":["create","update","complete"]}},"type":{"type":["string"],"enum":["check"]},"validation":{"type":["object"],"properties":{"required":{"type":["boolean"]}},"required":["required"]}},"required":["identifier","label","stages","type","validation"]}]},"description":"Template assets spec","example":[{"identifier":"input_799d0410-6f9f-4336-acd1-9dde9af158bd","label":"Nombre","type":"text","validation":{"required":true,"minLength":2,"maxLength":60,"email":false,"pattern":"^[A-Za-z]+$"},"description":"Ingresa el nombre del titular","stages":["create"]},{"identifier":"input_7c9c6f4b-b74d-4842-b6fa-b59e6e1d57b5","label":"Apellido","type":"text","validation":{"required":true,"minLength":2,"maxLength":60,"email":false},"stages":["create"]},{"identifier":"input_12f97833-f738-42bf-8b7e-10b27ae964b9","label":"File","type":"file","validation":{"required":true},"stages":["create"]}]},"validations":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1,"description":"Identifier of the validation. Use this to programmatically reference the validation."},"title":{"type":["string"],"minLength":1,"description":"Human readable validation title"},"description":{"type":["string"],"minLength":1,"description":"Human readable validation description"},"bindings":{"type":["object"],"properties":{"assets":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1,"description":"Identifier of the asset"},"type":{"type":["string"],"enum":["video","audio","text","date","textarea","select","numeric","check","file","multiselect","dialogDecision","signature","checkboxGroup","image"],"description":"Type of the asset"},"value":{"type":["string"],"description":"Declared asset value. Present when needed to disambiguate repeated asset declarations."}},"required":["identifier","type"]},"description":"Assets dependencies of the validation"}},"required":["assets"],"description":"Dependencies of the validation"}},"required":["identifier","title","description","bindings"],"description":"Validation results"},"example":[{"identifier":"69823dd4f18d7435a9c487b1","title":"Validacion de Persona","description":"Verifica que en la imagen de selfie sea una persona","bindings":{"assets":[{"identifier":"image_b1ac0f90-34d4-4049-a807-a752bb36eb4f","type":"image"}]}}]},"inferences":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1,"description":"Identifier of the inference. Use this to programmatically reference the inference."},"title":{"type":["string"],"minLength":1,"description":"Human readable inference title"},"bindings":{"type":["object"],"properties":{"assets":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1,"description":"Identifier of the asset"},"type":{"type":["string"],"enum":["video","audio","text","date","textarea","select","numeric","check","file","multiselect","dialogDecision","signature","checkboxGroup","image"],"description":"Type of the asset"},"value":{"type":["string"],"description":"Declared asset value. Present when needed to disambiguate repeated asset declarations."}},"required":["identifier","type"]}}},"required":["assets"],"description":"To which assets the inference is bound to"},"schema":{"type":["object"],"additionalProperties":{},"description":"Inference value JSON Schema"}},"required":["identifier","title","bindings","schema"]},"example":[{"identifier":"vehicle_brand","title":"Vehicle Brand","bindings":{"assets":[{"type":"image","identifier":"image_3416b703-2aad-4beb-9cf1-422b3eeda98f"}]},"schema":{"type":"string","title":"Detected Brand"}}]}},"required":["_id","name","status","createdAt","updatedAt","schema","assets","validations","inferences"],"example":{"_id":"65f8f2c8a4a5b1c2d3e4f5a6","name":"Inspeccion Auto - Produccion","status":"published","createdAt":"2026-02-17T19:00:00.000Z","updatedAt":"2026-02-17T19:30:00.000Z","publishedAt":"2026-02-17T19:30:00.000Z","schema":{"type":["object"],"properties":{"assets":{"type":["array"],"items":{"discriminator":{"propertyName":"identifier"},"oneOf":[{"type":["object"],"properties":{"label":{"type":["string"],"enum":["Nombre"]},"identifier":{"type":["string"],"enum":["input_799d0410-6f9f-4336-acd1-9dde9af158bd"]},"type":{"type":["string"],"enum":["text"]},"value":{"type":["string"]}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"label":{"type":["string"],"enum":["Apellido"]},"identifier":{"type":["string"],"enum":["input_7c9c6f4b-b74d-4842-b6fa-b59e6e1d57b5"]},"type":{"type":["string"],"enum":["text"]},"value":{"type":["string"]}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"label":{"type":["string"],"enum":["File"]},"identifier":{"type":["string"],"enum":["input_12f97833-f738-42bf-8b7e-10b27ae964b9"]},"type":{"type":["string"],"enum":["file"]},"value":{"type":["string"],"description":"File Object ID"}},"required":["identifier","type","value"]}]}}},"required":["assets"]},"assets":[{"identifier":"input_799d0410-6f9f-4336-acd1-9dde9af158bd","label":"Nombre","type":"text","validation":{"required":true,"minLength":2,"maxLength":60,"email":false,"pattern":"^[A-Za-z]+$"},"description":"Ingresa el nombre del titular","stages":["create"]},{"identifier":"input_7c9c6f4b-b74d-4842-b6fa-b59e6e1d57b5","label":"Apellido","type":"text","validation":{"required":true,"minLength":2,"maxLength":60,"email":false},"stages":["create"]},{"identifier":"input_12f97833-f738-42bf-8b7e-10b27ae964b9","label":"File","type":"file","validation":{"required":true},"stages":["create"]}],"validations":[{"identifier":"69823dd4f18d7435a9c487b1","title":"Validacion de Persona","description":"Verifica que en la imagen de selfie sea una persona","bindings":{"assets":[{"identifier":"image_b1ac0f90-34d4-4049-a807-a752bb36eb4f","type":"image"}]}}],"inferences":[{"identifier":"vehicle_brand","title":"Vehicle Brand","bindings":{"assets":[{"type":"image","identifier":"image_3416b703-2aad-4beb-9cf1-422b3eeda98f"}]},"schema":{"type":"string","title":"Detected Brand"}}]}}}}}},"summary":"Retrieve Template","tags":["Templates v2"]}},"/v1/file":{"post":{"description":"To upload a file to Autoinspector, you need to send a request of type multipart/form-data. Include the file you want to upload in the request, and the parameters for creating a file.\n\nMax file size is 100MB.","operationId":"FilePublicApiV1Controller_createFile","parameters":[],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"File object","content":{"application/json":{"schema":{"type":["object"],"properties":{"_id":{"type":["string"]},"filename":{"type":["string"],"description":"Filename of the file"},"size":{"type":["number"]},"type":{"type":["string"],"enum":["audio","image","video","pdf","document","other"]},"extension":{"type":["string","null"]},"mimetype":{"type":["string","null"]},"createdAt":{"type":["string"],"format":"date-time"}},"required":["_id","filename","size","type","extension","mimetype","createdAt"],"example":{"_id":"698110cb0b6620f0f318697c","createdAt":"2026-02-02T21:02:03.911Z","filename":"0000d420-24ec-42ef-972d-8f5761948b78-20231012_164800.mp4","extension":"mp4","mimetype":"video/mp4","size":62009825,"type":"video"},"title":"File object"}}}}},"summary":"Create file","tags":["Files v1"]}},"/v2/inspection":{"post":{"description":"Create an inspection with a given template and assets values","operationId":"InspectionPublicApiV2Controller_createInspection","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":["object"],"properties":{"templateId":{"description":"The template id to use for the inspection","type":["string"],"example":"60f021d61234567890000666"},"owner":{"discriminator":{"propertyName":"type"},"oneOf":[{"type":["object"],"properties":{"type":{"type":["string"],"enum":["internalId"],"description":"Internal ID"},"internalId":{"type":["string"],"minLength":1}},"required":["type","internalId"],"title":"Internal ID","description":"Internal ID of the user to who this inspection will be assigned to"},{"type":["object"],"properties":{"type":{"type":["string"],"enum":["userId"],"description":"User ID"},"userId":{"type":["string"]}},"required":["type","userId"],"title":"User ID","description":"User ID of the user to who this inspection will be assigned to"}],"description":"The user to who this inspection will be assigned to. Can be an internal id or user id. If not provided, the inspection will be assigned only to the company","example":{"type":"internalId","internalId":"user_240"}},"assets":{"type":["array"],"items":{"discriminator":{"propertyName":"type"},"oneOf":[{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["text"]},"value":{"type":["string"],"minLength":1}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["textarea"]},"value":{"type":["string"],"minLength":1}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["audio"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["date"]},"value":{"type":["string"]}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["select"]},"value":{"type":["string"],"minLength":1}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["numeric"]},"value":{"type":["number"],"minimum":0}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["check"]},"value":{"type":["boolean"]}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["image"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["file"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["video"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["multiselect"]},"value":{"type":["array"],"items":{"type":["object"],"properties":{"selected":{"type":["string"],"minLength":1}},"required":["selected"]}}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["dialogDecision"]},"value":{"type":["boolean"]}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["signature"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["checkboxGroup"]},"value":{"type":["array"],"items":{"type":["object"],"properties":{"selected":{"type":["string"],"minLength":1}},"required":["selected"]}}},"required":["identifier","type","value"]}]},"description":"List of values to fill out template assets","example":[{"identifier":"input_528088f5-e28d-4c2c-adf9-f0f67c4bc28a","type":"select","value":"option_1"},{"identifier":"input_47c10318-cbc6-4c21-82bd-316fa9683f49","type":"file","value":"6980eea3ea1ec2ca6cdf153f"},{"identifier":"input_d6dae0fb-03c1-47c1-b6a2-d12eda8dbaff","type":"numeric","value":100}]},"notifications":{"type":["array"],"items":{"discriminator":{"propertyName":"channel"},"oneOf":[{"type":["object"],"properties":{"channel":{"type":["string"],"enum":["email"]},"recipient":{"type":["string"],"format":"email","description":"Email address"}},"required":["channel","recipient"]},{"type":["object"],"properties":{"channel":{"type":["string"],"enum":["wsp","sms"]},"recipient":{"type":["string"],"minLength":1,"description":"International/E.164-style phone number (plus sign + country code + national number)"}},"required":["channel","recipient"]}]},"description":"Notifications to send for communicating the inspection link. You can only send one notification per channel except for email, where you can send multiple notifications.\n\nFor reminders only emails notifications are supported.","example":[{"channel":"wsp","recipient":"+543812453820"},{"channel":"email","recipient":"john.doe@example.com"}]},"metadata":{"description":"Metadata to add to the inspection. Key length must be less than 50 characters and value length must be less than 500 characters. Maximum 50 keys","type":["object"],"additionalProperties":{"type":["string"],"maxLength":500,"description":"Value of the metadata"},"example":{"sinister_id":"1234567890","policy_id":"5912"}}},"required":["templateId","assets","notifications","metadata"]}}}},"responses":{"201":{"description":"Minimal inspection object","content":{"application/json":{"schema":{"type":["object"],"properties":{"_id":{"description":"Inspection ID","type":["string"]},"magicLink":{"type":["string"],"minLength":1,"description":"URL to access the inspection"},"accessCode":{"type":["string"],"minLength":1,"description":"Security code to access the inspection"},"metadata":{"description":"Metadata to add to the inspection. Key length must be less than 50 characters and value length must be less than 500 characters. Maximum 50 keys","type":["object"],"additionalProperties":{"type":["string"],"maxLength":500,"description":"Value of the metadata"},"example":{"sinister_id":"1234567890","policy_id":"5912"}},"status":{"type":["string"],"enum":["created","started","blocked","processing","completed"],"description":"Status of the inspection"},"testing":{"type":["boolean"],"description":"Whether the inspection was created as a test inspection"}},"required":["_id","magicLink","accessCode","metadata","status","testing"]}}}}},"summary":"Create Inspection","tags":["Inspections v2"]}},"/v2/inspection/{inspectionId}":{"put":{"description":"Update the specified inspection by setting the values of the parameters passed","operationId":"InspectionPublicApiV2Controller_updateInspection","parameters":[{"name":"inspectionId","required":true,"in":"path","schema":{"type":"string"},"description":""}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":["object"],"properties":{"metadata":{"description":"Metadata to add to the inspection. Key length must be less than 50 characters and value length must be less than 500 characters. Maximum 50 keys","type":["object"],"additionalProperties":{"type":["string"],"maxLength":500,"description":"Value of the metadata"},"example":{"sinister_id":"1234567890","policy_id":"5912"}}},"required":["metadata"]}}}},"responses":{"200":{"description":"Minimal inspection object","content":{"application/json":{"schema":{"type":["object"],"properties":{"_id":{"description":"Inspection ID","type":["string"]},"magicLink":{"type":["string"],"minLength":1,"description":"URL to access the inspection"},"accessCode":{"type":["string"],"minLength":1,"description":"Security code to access the inspection"},"metadata":{"description":"Metadata to add to the inspection. Key length must be less than 50 characters and value length must be less than 500 characters. Maximum 50 keys","type":["object"],"additionalProperties":{"type":["string"],"maxLength":500,"description":"Value of the metadata"},"example":{"sinister_id":"1234567890","policy_id":"5912"}},"status":{"type":["string"],"enum":["created","started","blocked","processing","completed"],"description":"Status of the inspection"},"testing":{"type":["boolean"],"description":"Whether the inspection was created as a test inspection"}},"required":["_id","magicLink","accessCode","metadata","status","testing"]}}}}},"summary":"Update Inspection","tags":["Inspections v2"]},"get":{"description":"Retrieve specified inspection detail: status, result, assets, inferences and validations.","operationId":"InspectionPublicApiV2Controller_retrieveInspection","parameters":[{"name":"inspectionId","required":true,"in":"path","schema":{"type":"string"},"description":""}],"responses":{"200":{"description":"Minimal inspection object","content":{"application/json":{"schema":{"type":["object"],"properties":{"_id":{"description":"Inspection ID","type":["string"]},"magicLink":{"type":["string"],"minLength":1,"description":"URL to access the inspection"},"accessCode":{"type":["string"],"minLength":1,"description":"Security code to access the inspection"},"metadata":{"description":"Metadata to add to the inspection. Key length must be less than 50 characters and value length must be less than 500 characters. Maximum 50 keys","type":["object"],"additionalProperties":{"type":["string"],"maxLength":500,"description":"Value of the metadata"},"example":{"sinister_id":"1234567890","policy_id":"5912"}},"status":{"type":["string"],"enum":["created","started","blocked","processing","completed"],"description":"Status of the inspection"},"testing":{"type":["boolean"],"description":"Whether the inspection was created as a test inspection"},"createdAt":{"type":["string"],"format":"date-time","description":"Inspection creation timestamp in ISO-8601 format"},"startedAt":{"type":["string"],"format":"date-time","description":"Inspection start timestamp in ISO-8601 format"},"finishedAt":{"type":["string"],"format":"date-time","description":"Inspection finish timestamp in ISO-8601 format"},"result":{"type":["string"],"enum":["approved","disapproved","error"],"description":"Result of the inspection. Only available when the inspection is finished"},"validations":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1,"description":"Identifier of the validation. Use this to programmatically reference the validation."},"title":{"type":["string"],"minLength":1,"description":"Human readable validation title"},"description":{"type":["string"],"minLength":1,"description":"Human readable validation description"},"bindings":{"type":["object"],"properties":{"assets":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1,"description":"Identifier of the asset"},"type":{"type":["string"],"enum":["video","audio","text","date","textarea","select","numeric","check","file","multiselect","dialogDecision","signature","checkboxGroup","image"],"description":"Type of the asset"},"value":{"type":["string"],"description":"Declared asset value. Present when needed to disambiguate repeated asset declarations."},"result":{"type":["string"],"enum":["approved","disapproved"],"description":"Validation result isolated for this concrete inspection asset declaration when it can be safely determined."}},"required":["identifier","type"]},"description":"Assets dependencies of the validation"}},"required":["assets"],"description":"Dependencies of the validation"},"result":{"type":["string"],"enum":["approved","disapproved"]},"reasoning":{"type":["string"],"description":"Natural language explanation of the validation result. When multiple reasoning model outputs are available, they are concatenated with line breaks."}},"required":["identifier","title","description","bindings","result"],"description":"Validation results"},"example":[{"identifier":"69823dd4f18d7435a9c487b1","title":"Front Image Validation","description":"Validates the front image quality","result":"approved","reasoning":"The image is sharp and the plate is fully readable.","bindings":{"assets":[{"identifier":"image_3416b703-2aad-4beb-9cf1-422b3eeda98f","type":"image"}]}}]},"inferences":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1,"description":"Identifier of the inference. Use this to programmatically reference the inference."},"title":{"type":["string"],"minLength":1,"description":"Human readable inference title"},"bindings":{"type":["object"],"properties":{"assets":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1,"description":"Identifier of the asset"},"type":{"type":["string"],"enum":["video","audio","text","date","textarea","select","numeric","check","file","multiselect","dialogDecision","signature","checkboxGroup","image"],"description":"Type of the asset"},"value":{"type":["string"],"description":"Declared asset value. Present when needed to disambiguate repeated asset declarations."}},"required":["identifier","type"]}}},"required":["assets"],"description":"To which assets the inference is bound to"},"schema":{"type":["object"],"additionalProperties":{},"description":"Inference value JSON Schema"},"value":{"oneOf":[{"type":["string"]},{"type":["number"]},{"type":["boolean"]},{"type":["array"],"items":{"type":["string"]}},{"type":["array"],"items":{"type":["number"]}},{"type":["array"],"items":{"type":["boolean"]}}]}},"required":["identifier","title","bindings","schema","value"]},"example":[{"identifier":"vehicle_brand","title":"Vehicle Brand","value":"Toyota","bindings":{"assets":[{"type":"image","identifier":"image_3416b703-2aad-4beb-9cf1-422b3eeda98f"}]}}]},"assets":{"type":["array"],"items":{"discriminator":{"propertyName":"type"},"oneOf":[{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"label":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["text"]},"value":{"type":["string"],"minLength":1}},"required":["identifier","label","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"label":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["textarea"]},"value":{"type":["string"],"minLength":1}},"required":["identifier","label","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"label":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["audio"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"},"url":{"type":["string"],"minLength":1,"description":"Presigned URL to access the file"}},"required":["identifier","label","type","value","url"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"label":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["image"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"},"url":{"type":["string"],"minLength":1,"description":"Presigned URL to access the file"}},"required":["identifier","label","type","value","url"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"label":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["video"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"},"url":{"type":["string"],"minLength":1,"description":"Presigned URL to access the file"}},"required":["identifier","label","type","value","url"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"label":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["file"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"},"url":{"type":["string"],"minLength":1,"description":"Presigned URL to access the file"}},"required":["identifier","label","type","value","url"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"label":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["signature"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"},"url":{"type":["string"],"minLength":1,"description":"Presigned URL to access the file"}},"required":["identifier","label","type","value","url"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"label":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["date"]},"value":{"type":["string"],"minLength":1,"format":"date-time"}},"required":["identifier","label","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"label":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["select"]},"value":{"type":["string"],"minLength":1}},"required":["identifier","label","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"label":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["numeric"]},"value":{"type":["number"],"minimum":0}},"required":["identifier","label","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"label":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["check"]},"value":{"type":["boolean"]}},"required":["identifier","label","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"label":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["multiselect"]},"value":{"type":["array"],"items":{"type":["object"],"properties":{"selected":{"type":["string"],"minLength":1}},"required":["selected"]}}},"required":["identifier","label","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"label":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["dialogDecision"]},"value":{"type":["boolean"]}},"required":["identifier","label","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"label":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["checkboxGroup"]},"value":{"type":["array"],"items":{"type":["object"],"properties":{"selected":{"type":["string"],"minLength":1}},"required":["selected"]}}},"required":["identifier","label","type","value"]}]},"example":[{"identifier":"input_528088f5-e28d-4c2c-adf9-f0f67c4bc28a","label":"Policy Status","type":"select","value":"option_1"},{"identifier":"image_3416b703-2aad-4beb-9cf1-422b3eeda98f","label":"Front View","type":"image","value":"6980eea3ea1ec2ca6cdf153f","url":"https://files.autoinspector.example/6980eea3ea1ec2ca6cdf153f"}]}},"required":["_id","magicLink","accessCode","metadata","status","testing","createdAt","validations","inferences","assets"],"example":{"_id":"65f8f2c8a4a5b1c2d3e4f5a6","magicLink":"https://inspection.autoinspector.example/inspection/65f8f2c8a4a5b1c2d3e4f5a6?accessCode=ABCD1234","accessCode":"ABCD1234","metadata":{"policy_id":"5912"},"status":"completed","testing":false,"createdAt":"2025-03-01T10:00:00.000Z","startedAt":"2025-03-01T10:05:00.000Z","finishedAt":"2025-03-01T10:20:00.000Z","result":"approved","assets":[{"identifier":"input_528088f5-e28d-4c2c-adf9-f0f67c4bc28a","label":"Policy Status","type":"select","value":"option_1"},{"identifier":"image_3416b703-2aad-4beb-9cf1-422b3eeda98f","label":"Front View","type":"image","value":"6980eea3ea1ec2ca6cdf153f","url":"https://files.autoinspector.example/6980eea3ea1ec2ca6cdf153f"}],"inferences":[{"identifier":"vehicle_brand","title":"Vehicle Brand","value":"Toyota","bindings":{"assets":[{"type":"image","identifier":"image_3416b703-2aad-4beb-9cf1-422b3eeda98f"}]}}],"validations":[{"identifier":"69823dd4f18d7435a9c487b1","title":"Front Image Validation","description":"Validates the front image quality","result":"approved","reasoning":"The image is sharp and the plate is fully readable.","bindings":{"assets":[{"identifier":"image_3416b703-2aad-4beb-9cf1-422b3eeda98f","type":"image"}]}}]}}}}}},"summary":"Retrieve Inspection","tags":["Inspections v2"]}},"/v2/inspection/{inspectionId}/assets":{"patch":{"description":"Update inspection assets by providing a list of assets values.\n\nThis operation will only include assets that are not already declared in the inspection.","operationId":"InspectionPublicApiV2Controller_patchInspectionAssets","parameters":[{"name":"inspectionId","required":true,"in":"path","schema":{"type":"string"},"description":""}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":["object"],"properties":{"assets":{"type":["array"],"items":{"discriminator":{"propertyName":"type"},"oneOf":[{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["text"]},"value":{"type":["string"],"minLength":1}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["textarea"]},"value":{"type":["string"],"minLength":1}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["audio"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["date"]},"value":{"type":["string"]}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["select"]},"value":{"type":["string"],"minLength":1}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["numeric"]},"value":{"type":["number"],"minimum":0}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["check"]},"value":{"type":["boolean"]}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["image"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["file"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["video"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["multiselect"]},"value":{"type":["array"],"items":{"type":["object"],"properties":{"selected":{"type":["string"],"minLength":1}},"required":["selected"]}}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["dialogDecision"]},"value":{"type":["boolean"]}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["signature"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["checkboxGroup"]},"value":{"type":["array"],"items":{"type":["object"],"properties":{"selected":{"type":["string"],"minLength":1}},"required":["selected"]}}},"required":["identifier","type","value"]}]},"description":"List of values to fill out template assets","example":[{"identifier":"input_528088f5-e28d-4c2c-adf9-f0f67c4bc28a","type":"select","value":"option_1"},{"identifier":"input_47c10318-cbc6-4c21-82bd-316fa9683f49","type":"file","value":"6980eea3ea1ec2ca6cdf153f"},{"identifier":"input_d6dae0fb-03c1-47c1-b6a2-d12eda8dbaff","type":"numeric","value":100}]}},"required":["assets"]}}}},"responses":{"200":{"description":"Minimal inspection object","content":{"application/json":{"schema":{"type":["object"],"properties":{"_id":{"description":"Inspection ID","type":["string"]},"magicLink":{"type":["string"],"minLength":1,"description":"URL to access the inspection"},"accessCode":{"type":["string"],"minLength":1,"description":"Security code to access the inspection"},"metadata":{"description":"Metadata to add to the inspection. Key length must be less than 50 characters and value length must be less than 500 characters. Maximum 50 keys","type":["object"],"additionalProperties":{"type":["string"],"maxLength":500,"description":"Value of the metadata"},"example":{"sinister_id":"1234567890","policy_id":"5912"}},"status":{"type":["string"],"enum":["created","started","blocked","processing","completed"],"description":"Status of the inspection"},"testing":{"type":["boolean"],"description":"Whether the inspection was created as a test inspection"}},"required":["_id","magicLink","accessCode","metadata","status","testing"]}}}}},"summary":"Update Inspection Assets","tags":["Inspections v2"]}},"/v2/inspection/{inspectionId}/start":{"post":{"description":"Start the specified inspection. This will set the inspection status to started and initialize the inspection. This action is idempotent and will only start the inspection if it is created and not already started.","operationId":"InspectionPublicApiV2Controller_startInspection","parameters":[{"name":"inspectionId","required":true,"in":"path","schema":{"type":"string"},"description":""}],"responses":{"200":{"description":"Minimal inspection object","content":{"application/json":{"schema":{"type":["object"],"properties":{"_id":{"description":"Inspection ID","type":["string"]},"magicLink":{"type":["string"],"minLength":1,"description":"URL to access the inspection"},"accessCode":{"type":["string"],"minLength":1,"description":"Security code to access the inspection"},"metadata":{"description":"Metadata to add to the inspection. Key length must be less than 50 characters and value length must be less than 500 characters. Maximum 50 keys","type":["object"],"additionalProperties":{"type":["string"],"maxLength":500,"description":"Value of the metadata"},"example":{"sinister_id":"1234567890","policy_id":"5912"}},"status":{"type":["string"],"enum":["created","started","blocked","processing","completed"],"description":"Status of the inspection"},"testing":{"type":["boolean"],"description":"Whether the inspection was created as a test inspection"}},"required":["_id","magicLink","accessCode","metadata","status","testing"]}}}}},"summary":"Start Inspection","tags":["Inspections v2"]}},"/v2/inspection/{inspectionId}/finish":{"post":{"description":"Finish the specified inspection. This will set the inspection status to finished and complete the inspection. This action is idempotent and will only finish the inspection if it is started and not already finished.\n\nIn order to finish an inspection all of their required assets must be declared, otherwise it will return an error. If inspection has some pending inferences or validations, it will transition to processing status.","operationId":"InspectionPublicApiV2Controller_finishInspection","parameters":[{"name":"inspectionId","required":true,"in":"path","schema":{"type":"string"},"description":""}],"responses":{"200":{"description":"Minimal inspection object","content":{"application/json":{"schema":{"type":["object"],"properties":{"_id":{"description":"Inspection ID","type":["string"]},"magicLink":{"type":["string"],"minLength":1,"description":"URL to access the inspection"},"accessCode":{"type":["string"],"minLength":1,"description":"Security code to access the inspection"},"metadata":{"description":"Metadata to add to the inspection. Key length must be less than 50 characters and value length must be less than 500 characters. Maximum 50 keys","type":["object"],"additionalProperties":{"type":["string"],"maxLength":500,"description":"Value of the metadata"},"example":{"sinister_id":"1234567890","policy_id":"5912"}},"status":{"type":["string"],"enum":["created","started","blocked","processing","completed"],"description":"Status of the inspection"},"testing":{"type":["boolean"],"description":"Whether the inspection was created as a test inspection"}},"required":["_id","magicLink","accessCode","metadata","status","testing"]}}}}},"summary":"Finish Inspection","tags":["Inspections v2"]}},"/v1/inspection/presign/detail/{inspectionId}":{"post":{"description":"Generates a temporary signature for inspection details. The endpoint returns a signed accessToken and a URL ready to be consumed by your UI (for example, in an iframe, in a new tab, or as a shareable link). The token is associated with a specific inspection and expires based on the value sent in expiresInSeconds.\n\nThe identity object is optional and is used to link an Autoinspector-registered user from your company to the inspection details. We recommend creating this association to improve access control, traceability, and auditability for events performed by users within the platform.\n\nexpiresInSeconds has a maximum of 7 days.","operationId":"PresignPublicApiV1Controller_presignInspectionDetail","parameters":[{"name":"inspectionId","required":true,"in":"path","schema":{"type":"string","minLength":1},"description":""}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expiresInSeconds":{"type":"integer","minimum":1,"exclusiveMinimum":false,"maximum":604800,"exclusiveMaximum":false,"default":28800},"identity":{"type":"object","properties":{"type":{"type":"string","enum":["user","internalId"]},"id":{"type":"string","minLength":1}},"required":["type","id"]}}}}}},"responses":{"201":{"description":"Presigned inspection detail URL and token.","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string","minLength":1},"expiresAt":{"type":"string","format":"date-time"},"url":{"type":"string","minLength":1}},"required":["accessToken","expiresAt","url"]}}}}},"summary":"Presign Inspection Detail","tags":["Presign v1"]}},"/v1/inspection/{inspectionId}/report/request":{"post":{"description":"Inspection report generation is processed asynchronously. You can receive a real-time notification with the generated report by sending an endpoint or URL in the callbackURL parameter.","operationId":"InspectionReportRequestPublicApiV1Controller_createInspectionReportRequest","parameters":[{"name":"inspectionId","required":true,"in":"path","schema":{"type":"string","minLength":1},"description":""}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"callbackURL":{"type":"string","format":"uri"}}}}}},"responses":{"201":{"description":"Created report request identifier.","content":{"application/json":{"schema":{"type":"object","properties":{"_id":{"type":"string","minLength":1}},"required":["_id"]}}}}},"summary":"Create Inspection Report Request","tags":["Reports v1"]},"get":{"description":"Allows you to get the list of report requests associated with an inspection.\n\nUseful if you want to verify whether a processed inspection report already exists to avoid generating a new one.","operationId":"InspectionReportRequestPublicApiV1Controller_listInspectionReportRequest","parameters":[{"name":"inspectionId","required":true,"in":"path","schema":{"type":"string","minLength":1},"description":""}],"responses":{"200":{"description":"List of report requests.","content":{"application/json":{"schema":{"type":"object","properties":{"reportRequests":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":1},"inspectionId":{"type":"string","minLength":1},"companyId":{"type":"string","minLength":1},"status":{"type":"string","enum":["pending","processing","completed","failed"]},"callbackURL":{"type":"string","format":"uri"},"result":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"]},"processingAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time"},"failedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["_id","inspectionId","companyId","status"]}}},"required":["reportRequests"]}}}}},"summary":"List Inspection Report Requests","tags":["Reports v1"]}},"/v1/inspection/{inspectionId}/report/request/{reportRequestId}":{"get":{"description":"To check the progress or status of an inspection report request generation, you can consume this service.\n\nWhen the report request reaches the completed status, the result parameter will contain the url attribute. This attribute corresponds to the inspection report URL, which you can request with GET to obtain the report content (PDF).\n\nThe url parameter is a dynamic and secure link that is valid for 15 minutes from the moment the inspection report request object is returned.\n\nTo refresh an expired URL, you can consume this service again.","operationId":"InspectionReportRequestPublicApiV1Controller_retrieveInspectionReportRequest","parameters":[{"name":"inspectionId","required":true,"in":"path","schema":{"type":"string","minLength":1},"description":""},{"name":"reportRequestId","required":true,"in":"path","schema":{"type":"string","minLength":1},"description":""}],"responses":{"200":{"description":"Inspection report request object.","content":{"application/json":{"schema":{"type":"object","properties":{"_id":{"type":"string","minLength":1},"inspectionId":{"type":"string","minLength":1},"companyId":{"type":"string","minLength":1},"status":{"type":"string","enum":["pending","processing","completed","failed"]},"callbackURL":{"type":"string","format":"uri"},"result":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"]},"processingAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time"},"failedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["_id","inspectionId","companyId","status"]}}}}},"summary":"Retrieve Inspection Report Request","tags":["Reports v1"]}},"/v1/accounts":{"get":{"description":"Return company accounts sorted by creation date in descending order.","operationId":"AccountsPublicApiV1Controller_listAccounts","parameters":[{"name":"x-api-key","required":true,"in":"header","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number","minimum":1,"exclusiveMinimum":false,"maximum":100,"exclusiveMaximum":false,"default":10},"description":""},{"name":"page","required":false,"in":"query","schema":{"type":"number","minimum":1,"exclusiveMinimum":false,"default":1},"description":""},{"name":"internalId","required":false,"in":"query","schema":{"description":"Filter memberships by internal ID","type":"string","minLength":1},"description":"Filter memberships by internal ID"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"_id":{"description":"Membership ID","type":"string"},"user":{"type":"object","properties":{"firstName":{"description":"Account user first name","type":"string"},"lastName":{"description":"Account user last name","type":"string"},"email":{"description":"Account user email","type":"string","format":"email"}},"required":["firstName","lastName","email"]},"internalId":{"description":"Membership internal ID","type":"string"},"createdAt":{"description":"Membership creation date","type":"string","format":"date-time"},"updatedAt":{"description":"Membership update date","type":"string","format":"date-time"}},"required":["_id","user","internalId","createdAt","updatedAt"]}},"meta":{"type":"object","properties":{"total":{"description":"Total number of accounts","type":"number"},"page":{"description":"Current page","type":"number"},"limit":{"description":"Limit per page","type":"number"},"hasMore":{"description":"If there are more accounts to fetch","type":"boolean"}},"required":["total","page","limit","hasMore"]}},"required":["data","meta"]}}}}},"summary":"List accounts","tags":["Accounts v1"]}},"/v1/account/oauth/refresh_token":{"post":{"description":"Generate a new access token using a valid refresh token and OAuth client credentials.","operationId":"OAuthPublicApiV1Controller_refreshToken","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client_app_id":{"description":"Client application ID generated when creating the OAuth application","type":"string"},"client_secret":{"description":"Client secret generated when creating the OAuth application. This value must be kept private.","type":"string"},"refresh_token":{"description":"Refresh token received on token exchange","type":"string"}},"required":["client_app_id","client_secret","refresh_token"]}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"description":"New OAuth access token","type":"string"},"expires_in":{"description":"Access token expiration time in milliseconds","type":"number"}},"required":["access_token","expires_in"]}}}}},"summary":"Refresh access token","tags":["OAuth v1"]}},"/v1/account/oauth/exchange_code":{"post":{"description":"Exchange an authorization code for a new access token and refresh token using OAuth client credentials.","operationId":"OAuthPublicApiV1Controller_exchangeCodeForAccessToken","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client_app_id":{"description":"Client application ID generated when creating the OAuth application","type":"string"},"client_secret":{"description":"Client secret generated when creating the OAuth application. This value must be kept private.","type":"string"},"code":{"description":"Authorization code received in the callback URL after user consent","type":"string"}},"required":["client_app_id","client_secret","code"]}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"description":"OAuth access token","type":"string"},"refresh_token":{"description":"Refresh token for obtaining new tokens","type":"string"},"expires_in":{"description":"Access token expiration time in milliseconds","type":"number"}},"required":["access_token","refresh_token","expires_in"]}}}}},"summary":"Exchange authorization code","tags":["OAuth v1"]}},"/v1/notification/webhook":{"get":{"description":"List company webhooks using page and limit query parameters. Results are ordered by newest webhook first.","operationId":"WebhookController_listWebhooks","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"number","minimum":1,"exclusiveMinimum":false,"maximum":10,"exclusiveMaximum":false,"default":10},"description":""},{"name":"page","required":false,"in":"query","schema":{"type":"number","minimum":1,"exclusiveMinimum":false,"default":1},"description":""}],"responses":{"200":{"description":"Paginated list of company webhooks","content":{"application/json":{"schema":{"type":["object"],"properties":{"data":{"type":["array"],"items":{"type":["object"],"properties":{"_id":{"type":["string"],"description":"Webhook identifier"},"endpoint":{"type":["string"],"format":"uri","description":"Target URL where webhook payloads are sent"},"events":{"type":["array"],"items":{"type":["string"],"enum":["inspection_started","inspection_blocked","inspection_completed","hi_from_autoinspector","image_processed","inspection_asset_processed","inspection_reviewed","extra_image_processed","inspection_created","children_inspection_created"]},"description":"Subscribed webhook events"},"isActive":{"type":["boolean"],"description":"Whether the webhook is active"}},"required":["_id","endpoint","events","isActive"]}},"meta":{"type":["object"],"properties":{"total":{"type":["number"],"description":"Total number of webhooks"},"page":{"type":["number"],"description":"Current page"},"limit":{"type":["number"],"description":"Limit per page"},"hasMore":{"type":["boolean"],"description":"If there are more webhooks to fetch"}},"required":["total","page","limit","hasMore"]}},"required":["data","meta"]}}}}},"summary":"List Webhooks","tags":["Webhooks v1"]},"post":{"description":"Create a company webhook subscribed to one or more inspection lifecycle events.","operationId":"WebhookController_createWebhook","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":["object"],"properties":{"events":{"type":["array"],"items":{"type":["string"],"enum":["inspection_started","inspection_blocked","inspection_completed","hi_from_autoinspector","image_processed","inspection_asset_processed","inspection_reviewed","extra_image_processed","inspection_created","children_inspection_created"]},"minItems":1,"description":"Webhook events to subscribe to"},"endpoint":{"type":["string"],"format":"uri","description":"Target URL where webhook payloads are sent"},"locked":{"type":["boolean"],"description":"Whether the webhook should be created in locked mode to prevent later mutations."}},"required":["events","endpoint"]}}}},"responses":{"201":{"description":"Created webhook identifier","content":{"application/json":{"schema":{"type":["object"],"properties":{"message":{"type":["string"],"description":"Webhook creation result message"},"_id":{"type":["string"],"description":"Created webhook identifier"},"signature":{"type":["string"],"description":"Webhook signature"}},"required":["message","_id","signature"]}}}}},"summary":"Create Webhook","tags":["Webhooks v1"]}},"/v1/notification/webhook/{id}":{"delete":{"description":"Delete a company webhook by identifier.","operationId":"WebhookController_deleteWebhook","parameters":[{"name":"id","required":true,"in":"path","description":"Webhook identifier to delete","schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted webhook result message","content":{"application/json":{"schema":{"type":["object"],"properties":{"message":{"type":["string"],"description":"Webhook deletion result message"}},"required":["message"]}}}}},"summary":"Delete Webhook","tags":["Webhooks v1"]}}},"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"},"x-api-key":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"notification_UpdateWebhookDTO":{"type":"object","properties":{}}}},"security":[{"x-api-key":[]}],"tags":[{"name":"Presign v1","description":"Presign is a mechanism for signing access to inspection details. Its purpose is to provide a temporary, secure URL tied to a specific inspection without exposing sensitive credentials.\n\nThat URL can be used to embed inspection details in an iframe, open them in a new tab from a button, or share them as a link through messaging channels, among other use cases.\n\nIt is designed for integrations where you need to display inspection details in your app, backoffice, or customer portal, with isolation and expiration control."},{"name":"Reports v1","description":"To export inspection information as a PDF document, you can generate an inspection report.\n\nThis report includes inspection details: customer data, inspected product information and images, answers to requested fields, validations, and more.\n\nTo obtain this document, the inspection must be completed and an inspection report request must be created.\n\nInspection report generation is an asynchronous process."},{"name":"Accounts v1","description":""},{"name":"OAuth v1","description":""},{"name":"Webhooks v1","description":""}],"webhooks":{"Inspection Created v1":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":["object"],"properties":{"event":{"type":["string"],"enum":["inspection_created"]},"payload":{"type":["object"],"properties":{"_id":{"type":["string"]},"magicLink":{"type":["string"]},"metadata":{"type":["object"],"additionalProperties":{}},"parentInspectionId":{"type":["string"]},"producer":{"type":["object"],"properties":{"companyId":{"type":["string"]},"email":{"type":["string"]},"firstName":{"type":["string"]},"internalId":{"type":["string"]},"lastName":{"type":["string"]},"membershipId":{"type":["string"]},"userId":{"type":["string"]},"username":{"type":["string"]}},"required":["companyId"],"additionalProperties":true},"status":{"type":["string"],"enum":["created","started","blocked","processing","completed"]},"template":{"type":["object"],"properties":{"_id":{"type":["string"]},"name":{"type":["string"]},"type":{"type":["string"]}},"required":["_id","name","type"],"additionalProperties":true},"testing":{"type":["boolean"]},"type":{"type":["string"],"enum":["custom","goods","people","machinery","car","moto","bike","cellphone"]}},"required":["_id","producer","status","template","testing","type"],"additionalProperties":true}},"required":["event","payload"],"title":"Inspection Created v1","description":"When an inspection is created.","example":{"event":"inspection_created","payload":{"_id":"651ae032ff786d198dfa4ce4","status":"created","producer":{"userId":"61478404b9a70800551878b6","membershipId":"61c28b777b0c420012bd4a68","companyId":"6147843bb9a70800551878bd","firstName":"John","lastName":"Doe","username":"johndoe","email":"johndoe@gmail.com"},"type":"car","metadata":{"my_custom_key":"my_custom_value"},"testing":false,"template":{"name":"easy","type":"built-in","_id":"62be865212ca0918bcabf2a5"},"magicLink":"https://app.autoinspector.ai/inspection/651ae032ff786d198dfa4ce4?accessCode=5087"}}}}}}}},"Children Inspection Created v1":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":["object"],"properties":{"event":{"type":["string"],"enum":["children_inspection_created"]},"payload":{"type":["object"],"properties":{"_id":{"type":["string"]},"magicLink":{"type":["string"]},"metadata":{"type":["object"],"additionalProperties":{}},"parentInspectionId":{"type":["string"]},"producer":{"type":["object"],"properties":{"companyId":{"type":["string"]},"email":{"type":["string"]},"firstName":{"type":["string"]},"internalId":{"type":["string"]},"lastName":{"type":["string"]},"membershipId":{"type":["string"]},"userId":{"type":["string"]},"username":{"type":["string"]}},"required":["companyId"],"additionalProperties":true},"status":{"type":["string"],"enum":["created","started","blocked","processing","completed"]},"template":{"type":["object"],"properties":{"_id":{"type":["string"]},"name":{"type":["string"]},"type":{"type":["string"]}},"required":["_id","name","type"],"additionalProperties":true},"testing":{"type":["boolean"]},"type":{"type":["string"],"enum":["custom","goods","people","machinery","car","moto","bike","cellphone"]}},"required":["_id","producer","status","template","testing","type"],"additionalProperties":true}},"required":["event","payload"],"title":"Children Inspection Created v1","description":"When an inspection is recreated from an expired inspection.","example":{"event":"children_inspection_created","payload":{"_id":"657b2dc8fa2a696fcd56946b","parentInspectionId":"657b1a7d2f1446f1b9ee0552","status":"created","producer":{"userId":"61478404b9a70800551878b6","membershipId":"61c28b777b0c420012bd4a68","companyId":"6147843bb9a70800551878bd","firstName":"Luciano","username":"lcnlvrzz","email":"lucianoalvarez1212@gmail.com","lastName":"Alvarez"},"type":"car","metadata":{"templateId":"657b17d89b8f27657c96c315","parentInspectionId":"657b1a7d2f1446f1b9ee0552"},"testing":false,"template":{"name":"UNIQUE AUTO CUSTOM","type":"created","_id":"657b17d89b8f27657c96c315"},"magicLink":"https://app.autoinspector.ai/inspection/651ae032ff786d198dfa4ce4?accessCode=5087"}}}}}}}},"Inspection Started v1":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":["object"],"properties":{"event":{"type":["string"],"enum":["inspection_started"]},"payload":{"type":["object"],"properties":{"_id":{"type":["string"]},"magicLink":{"type":["string"]},"metadata":{"type":["object"],"additionalProperties":{}},"parentInspectionId":{"type":["string"]},"producer":{"type":["object"],"properties":{"companyId":{"type":["string"]},"email":{"type":["string"]},"firstName":{"type":["string"]},"internalId":{"type":["string"]},"lastName":{"type":["string"]},"membershipId":{"type":["string"]},"userId":{"type":["string"]},"username":{"type":["string"]}},"required":["companyId"],"additionalProperties":true},"status":{"type":["string"],"enum":["created","started","blocked","processing","completed"]},"template":{"type":["object"],"properties":{"_id":{"type":["string"]},"name":{"type":["string"]},"type":{"type":["string"]}},"required":["_id","name","type"],"additionalProperties":true},"testing":{"type":["boolean"]},"type":{"type":["string"],"enum":["custom","goods","people","machinery","car","moto","bike","cellphone"]}},"required":["_id","producer","status","template","testing","type"],"additionalProperties":true}},"required":["event","payload"],"title":"Inspection Started v1","description":"When an inspection is started by the user.","example":{"event":"inspection_started","payload":{"_id":"651ae032ff786d198dfa4ce4","status":"started","producer":{"userId":"61478404b9a70800551878b6","membershipId":"61c28b777b0c420012bd4a68","companyId":"6147843bb9a70800551878bd","firstName":"John","lastName":"Doe","username":"johndoe","email":"johndoe@gmail.com"},"type":"car","metadata":{"my_custom_key":"my_custom_value"},"testing":false,"template":{"name":"easy","type":"built-in","_id":"62be865212ca0918bcabf2a5"}}}}}}}}},"Image Processed v1":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":["object"],"properties":{"event":{"type":["string"],"enum":["image_processed"]},"payload":{"type":["object"],"properties":{"_id":{"type":["string"]},"custom":{"type":["object"],"properties":{"_id":{"type":["string"]},"image":{"type":["object"],"properties":{},"additionalProperties":true},"type":{"type":["string"]}},"required":["_id","image"],"additionalProperties":true},"entities":{"type":["array"],"items":{}},"identity":{"type":["object"],"properties":{"_id":{"type":["string"]},"image":{"type":["object"],"properties":{},"additionalProperties":true},"type":{"type":["string"]}},"required":["_id","image"],"additionalProperties":true},"inspection":{"type":["object"],"properties":{"image":{"type":["object"],"properties":{},"additionalProperties":true}},"required":["image"],"additionalProperties":true},"metadata":{"type":["object"],"additionalProperties":{}},"producer":{"type":["object"],"properties":{"companyId":{"type":["string"]},"email":{"type":["string"]},"firstName":{"type":["string"]},"internalId":{"type":["string"]},"lastName":{"type":["string"]},"membershipId":{"type":["string"]},"userId":{"type":["string"]},"username":{"type":["string"]}},"required":["companyId"],"additionalProperties":true},"product":{"type":["object"],"properties":{"_id":{"type":["string"]},"image":{"type":["object"],"properties":{},"additionalProperties":true},"type":{"type":["string"]}},"required":["_id","image"],"additionalProperties":true},"scope":{"type":["string"],"enum":["product","identity","custom"]},"template":{"type":["object"],"properties":{"_id":{"type":["string"]},"name":{"type":["string"]},"type":{"type":["string"]}},"required":["_id","name","type"],"additionalProperties":true},"testing":{"type":["boolean"]},"type":{"type":["string"],"enum":["custom","goods","people","machinery","car","moto","bike","cellphone"]}},"required":["_id","producer","scope","template","testing","type"],"additionalProperties":true}},"required":["event","payload"],"title":"Image Processed v1","description":"When an image is processed and its validations have been executed.","example":{"event":"image_processed","payload":{"_id":"651ae032ff786d198dfa4ce4","producer":{"userId":"61478404b9a70800551878b6","membershipId":"61c28b777b0c420012bd4a68","companyId":"6147843bb9a70800551878bd","firstName":"John","lastName":"Doe","username":"johndoe","email":"johndoe@gmail.com"},"type":"car","metadata":{"my_custom_key":"my_custom_value"},"testing":false,"template":{"name":"easy","type":"built-in","_id":"62be865212ca0918bcabf2a5"},"entities":[],"scope":"product","product":{"_id":"651ae032ff786d198dfa4cf1","image":{"entities":[],"templateImageIdentifier":"image_3e1153f3-66fa-4463-973a-fe277894c9df","type":"normal","target":"product","side":"back","processed":true,"uploadedAt":"2023-10-02T15:29:53.000Z","_id":"651ae1f2ff786d198dfa4e20","validations":[{"confidence":99.99993896484375,"identifier":"candidate_96b69c40-5ef9-46c3-899e-e0ed37ee6d02","valid":true,"validation":"object","required":true},{"confidence":95.7,"identifier":"candidate_04f8f69c-d817-4fe2-b3f8-64ba09f7ebd0","valid":true,"validation":"make","required":true},{"confidence":95.7,"identifier":"candidate_2a66f6bc-77a7-44f3-aea7-bdd4b24c4cce","valid":true,"validation":"model","required":true},{"confidence":99,"identifier":"candidate_b8848e93-1c11-4876-9869-9adaa1f4ab6e","valid":true,"validation":"plate","required":true},{"confidence":90,"identifier":"candidate_696f64c3-b8fe-4382-9905-b539540b709f","valid":true,"validation":"domain","required":true},{"confidence":92.80000000000001,"identifier":"candidate_cd9227dc-3dd3-4f7d-be35-2d139e84cd4d","valid":true,"validation":"angle","required":true},{"confidence":99.98935461044312,"identifier":"candidate_81f1306b-b904-4afa-a1e5-f183a2d040c5","valid":true,"validation":"color","required":true},{"confidence":99.99420642852783,"identifier":"candidate_371b8a6f-b459-412a-8586-fb9af15b90eb","valid":true,"validation":"complete","required":true},{"confidence":100,"identifier":"candidate_d191cd50-5ed7-4b11-88b3-6f35dc5677dd","valid":true,"validation":"date","required":false},{"confidence":100,"identifier":"candidate_328142df-4e12-4009-9774-291266500358","valid":true,"validation":"distance","required":false},{"confidence":98.23,"identifier":"candidate_e16b1d8d-016c-4174-8d5f-9f5ce28f0369","valid":true,"validation":"recaptured","required":false},{"confidence":100,"identifier":"candidate_0665678c-4c72-4c45-b2e1-37c9b6ff4ce4","valid":false,"validation":"damage","required":false}],"approved":true,"src":"https://ai-inspections.s3.amazonaws.com/back-1696260591720.jpeg","damages":[{"part":"trunk","percentage":1.97,"damage":"dent"}]}}}}}}}}}},"Inspection Asset Processed v2":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":["object"],"properties":{"event":{"type":["string"],"enum":["inspection_asset_processed"]},"payload":{"type":["object"],"properties":{"_id":{"type":["string"]},"magicLink":{"type":["string"],"minLength":1,"description":"URL to access the inspection"},"accessCode":{"type":["string"],"minLength":1,"description":"Security code to access the inspection"},"metadata":{"type":["object"],"additionalProperties":{"type":["string"],"maxLength":500}},"status":{"type":["string"],"enum":["created","started","blocked","processing","completed"],"description":"Status of the inspection"},"testing":{"type":["boolean"],"description":"Whether the inspection was created as a test inspection"},"asset":{"allOf":[{"discriminator":{"propertyName":"type"},"oneOf":[{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["text"]},"value":{"type":["string"],"minLength":1}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["textarea"]},"value":{"type":["string"],"minLength":1}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["audio"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"},"url":{"type":["string"],"minLength":1,"description":"Presigned URL to access the file"}},"required":["identifier","type","value","url"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["image"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"},"url":{"type":["string"],"minLength":1,"description":"Presigned URL to access the file"}},"required":["identifier","type","value","url"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["video"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"},"url":{"type":["string"],"minLength":1,"description":"Presigned URL to access the file"}},"required":["identifier","type","value","url"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["file"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"},"url":{"type":["string"],"minLength":1,"description":"Presigned URL to access the file"}},"required":["identifier","type","value","url"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["signature"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"},"url":{"type":["string"],"minLength":1,"description":"Presigned URL to access the file"}},"required":["identifier","type","value","url"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["date"]},"value":{"type":["string"],"minLength":1,"format":"date-time"}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["select"]},"value":{"type":["string"],"minLength":1}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["numeric"]},"value":{"type":["number"],"minimum":0}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["check"]},"value":{"type":["boolean"]}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["multiselect"]},"value":{"type":["array"],"items":{"type":["object"],"properties":{"selected":{"type":["string"],"minLength":1}},"required":["selected"]}}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["dialogDecision"]},"value":{"type":["boolean"]}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["checkboxGroup"]},"value":{"type":["array"],"items":{"type":["object"],"properties":{"selected":{"type":["string"],"minLength":1}},"required":["selected"]}}},"required":["identifier","type","value"]}]},{"type":["object"],"properties":{"validations":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1,"description":"Identifier of the validation. Use this to programmatically reference the validation."},"title":{"type":["string"],"minLength":1,"description":"Human readable validation title"},"description":{"type":["string"],"minLength":1,"description":"Human readable validation description"},"bindings":{"type":["object"],"properties":{"assets":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1,"description":"Identifier of the asset"},"type":{"type":["string"],"enum":["video","audio","text","date","textarea","select","numeric","check","file","multiselect","dialogDecision","signature","checkboxGroup","image"],"description":"Type of the asset"},"value":{"type":["string"],"description":"Declared asset value. Present when needed to disambiguate repeated asset declarations."},"result":{"type":["string"],"enum":["approved","disapproved"],"description":"Validation result isolated for this concrete inspection asset declaration when it can be safely determined."}},"required":["identifier","type"]},"description":"Assets dependencies of the validation"}},"required":["assets"],"description":"Dependencies of the validation"},"result":{"type":["string"],"enum":["approved","disapproved"]}},"required":["identifier","title","description","bindings","result"],"description":"Validation results"}},"inferences":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1,"description":"Identifier of the inference. Use this to programmatically reference the inference."},"title":{"type":["string"],"minLength":1,"description":"Human readable inference title"},"bindings":{"type":["object"],"properties":{"assets":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1,"description":"Identifier of the asset"},"type":{"type":["string"],"enum":["video","audio","text","date","textarea","select","numeric","check","file","multiselect","dialogDecision","signature","checkboxGroup","image"],"description":"Type of the asset"},"value":{"type":["string"],"description":"Declared asset value. Present when needed to disambiguate repeated asset declarations."}},"required":["identifier","type"]}}},"required":["assets"],"description":"To which assets the inference is bound to"},"schema":{"type":["object"],"additionalProperties":{},"description":"Inference value JSON Schema"},"value":{"oneOf":[{"type":["string"]},{"type":["number"]},{"type":["boolean"]},{"type":["array"],"items":{"type":["string"]}},{"type":["array"],"items":{"type":["number"]}},{"type":["array"],"items":{"type":["boolean"]}}]}},"required":["identifier","title","bindings","schema","value"]}}},"required":["validations","inferences"]}]}},"required":["_id","magicLink","accessCode","metadata","status","testing","asset"]}},"required":["event","payload"],"title":"Inspection Asset Processed v2","description":"When an inspection asset declaration finishes its individual processing lifecycle","example":{"event":"inspection_asset_processed","payload":{"_id":"65f8f73aa4a5b1c2d3e4f5f0","magicLink":"https://app.autoinspector.ai/inspection/65f8f73aa4a5b1c2d3e4f5f0","accessCode":"381144","metadata":{"sinister_id":"1234567890","policy_id":"5912"},"status":"started","testing":true,"asset":{"identifier":"image_1","type":"image","value":"65f8f73aa4a5b1c2d3e4f5f1","url":"https://files.autoinspector.example/65f8f73aa4a5b1c2d3e4f5f1","validations":[{"identifier":"validation_plate","title":"Patente válida","description":"Valida formato de la patente","bindings":{"assets":[{"identifier":"image_1","type":"image"}]},"result":"approved"}],"inferences":[{"identifier":"patente","title":"Patente","bindings":{"assets":[{"identifier":"image_1","type":"image"}]},"schema":{"type":"number"},"value":"AB123CD"}]}}}}}}}}},"Inspection Blocked v1":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":["object"],"properties":{"event":{"type":["string"],"enum":["inspection_blocked"]},"payload":{"type":["object"],"properties":{"_id":{"type":["string"]},"magicLink":{"type":["string"]},"metadata":{"type":["object"],"additionalProperties":{}},"parentInspectionId":{"type":["string"]},"producer":{"type":["object"],"properties":{"companyId":{"type":["string"]},"email":{"type":["string"]},"firstName":{"type":["string"]},"internalId":{"type":["string"]},"lastName":{"type":["string"]},"membershipId":{"type":["string"]},"userId":{"type":["string"]},"username":{"type":["string"]}},"required":["companyId"],"additionalProperties":true},"status":{"type":["string"],"enum":["created","started","blocked","processing","completed"]},"template":{"type":["object"],"properties":{"_id":{"type":["string"]},"name":{"type":["string"]},"type":{"type":["string"]}},"required":["_id","name","type"],"additionalProperties":true},"testing":{"type":["boolean"]},"type":{"type":["string"],"enum":["custom","goods","people","machinery","car","moto","bike","cellphone"]}},"required":["_id","producer","status","template","testing","type"],"additionalProperties":true}},"required":["event","payload"],"title":"Inspection Blocked v1","description":"When an inspection gets blocked.","example":{"event":"inspection_blocked","payload":{"_id":"651ae032ff786d198dfa4ce4","status":"blocked","producer":{"userId":"61478404b9a70800551878b6","membershipId":"61c28b777b0c420012bd4a68","companyId":"6147843bb9a70800551878bd","firstName":"John","lastName":"Doe","username":"johndoe","email":"johndoe@gmail.com"},"type":"car","metadata":{"my_custom_key":"my_custom_value"},"testing":false,"template":{"name":"easy","type":"built-in","_id":"62be865212ca0918bcabf2a5"}}}}}}}}},"Inspection Completed v1":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":["object"],"properties":{"event":{"type":["string"],"enum":["inspection_completed"]},"payload":{"type":["object"],"properties":{"_id":{"type":["string"]},"completedBy":{"type":["string"],"enum":["client","cronjob"]},"custom":{"type":["object"],"properties":{"extraImages":{"type":["array"],"items":{"type":["object"],"properties":{},"additionalProperties":true}},"images":{"type":["array"],"items":{"type":["object"],"properties":{},"additionalProperties":true}},"inputs":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"]},"label":{"type":["string"]},"type":{"type":["string"]},"value":{}},"required":["identifier","label"],"additionalProperties":true}}},"additionalProperties":true},"functions":{"type":["array"],"items":{}},"globalValidations":{"type":["array"],"items":{"type":["object"],"properties":{"_id":{"type":["string"]},"description":{"type":["string"]},"name":{"type":["string"]},"valid":{"type":["boolean"]}},"required":["_id","description","name","valid"],"additionalProperties":true}},"identity":{"type":["object"],"properties":{"extraImages":{"type":["array"],"items":{"type":["object"],"properties":{},"additionalProperties":true}},"images":{"type":["array"],"items":{"type":["object"],"properties":{},"additionalProperties":true}},"inputs":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"]},"label":{"type":["string"]},"type":{"type":["string"]},"value":{}},"required":["identifier","label"],"additionalProperties":true}}},"additionalProperties":true},"metadata":{"type":["object"],"additionalProperties":{}},"producer":{"type":["object"],"properties":{"companyId":{"type":["string"]},"email":{"type":["string"]},"firstName":{"type":["string"]},"internalId":{"type":["string"]},"lastName":{"type":["string"]},"membershipId":{"type":["string"]},"userId":{"type":["string"]},"username":{"type":["string"]}},"required":["companyId"],"additionalProperties":true},"products":{"type":["array"],"items":{"type":["object"],"properties":{"_id":{"type":["string"]},"extraImages":{"type":["array"],"items":{"type":["object"],"properties":{},"additionalProperties":true}},"images":{"type":["array"],"items":{"type":["object"],"properties":{},"additionalProperties":true}},"inputs":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"]},"label":{"type":["string"]},"type":{"type":["string"]},"value":{}},"required":["identifier","label"],"additionalProperties":true}},"type":{"type":["string"]}},"required":["_id","type"],"additionalProperties":true}},"status":{"type":["string"],"enum":["created","started","blocked","processing","completed"]},"template":{"type":["object"],"properties":{"_id":{"type":["string"]},"name":{"type":["string"]},"type":{"type":["string"]},"inputs":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"]},"label":{"type":["string"]},"type":{"type":["string"]},"value":{}},"required":["identifier","label"],"additionalProperties":true}}},"required":["_id","name","type"],"additionalProperties":true},"testing":{"type":["boolean"]},"type":{"type":["string"],"enum":["custom","goods","people","machinery","car","moto","bike","cellphone"]},"variables":{"type":["array"],"items":{}},"veredict":{"type":["string"],"enum":["approved","disapproved","error"]}},"required":["_id","producer","status","template","testing","type","veredict"],"additionalProperties":true}},"required":["event","payload"],"title":"Inspection Completed v1","description":"When an inspection is completed and has a final veredict in API version v1 format.","example":{"event":"inspection_completed","payload":{"_id":"65f8f73aa4a5b1c2d3e4f5f0","metadata":{"policy_id":"POL-10021"},"producer":{"companyId":"65f8f2c8a4a5b1c2d3e4f5a6","internalId":"user_240"},"status":"completed","template":{"_id":"65f8f2c8a4a5b1c2d3e4f5a6","name":"Inspección vehicular","type":"car"},"testing":false,"type":"car","veredict":"approved"}}}}}}}},"Inspection Reviewed v1":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":["object"],"properties":{"event":{"type":["string"],"enum":["inspection_reviewed"]},"payload":{"type":["object"],"properties":{"_id":{"type":["string"]},"completedBy":{"type":["string"],"enum":["client","cronjob"]},"custom":{"type":["object"],"properties":{"extraImages":{"type":["array"],"items":{"type":["object"],"properties":{},"additionalProperties":true}},"images":{"type":["array"],"items":{"type":["object"],"properties":{},"additionalProperties":true}},"inputs":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"]},"label":{"type":["string"]},"type":{"type":["string"]},"value":{}},"required":["identifier","label"],"additionalProperties":true}}},"additionalProperties":true},"functions":{"type":["array"],"items":{}},"globalValidations":{"type":["array"],"items":{"type":["object"],"properties":{"_id":{"type":["string"]},"description":{"type":["string"]},"name":{"type":["string"]},"valid":{"type":["boolean"]}},"required":["_id","description","name","valid"],"additionalProperties":true}},"identity":{"type":["object"],"properties":{"extraImages":{"type":["array"],"items":{"type":["object"],"properties":{},"additionalProperties":true}},"images":{"type":["array"],"items":{"type":["object"],"properties":{},"additionalProperties":true}},"inputs":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"]},"label":{"type":["string"]},"type":{"type":["string"]},"value":{}},"required":["identifier","label"],"additionalProperties":true}}},"additionalProperties":true},"metadata":{"type":["object"],"additionalProperties":{}},"producer":{"type":["object"],"properties":{"companyId":{"type":["string"]},"email":{"type":["string"]},"firstName":{"type":["string"]},"internalId":{"type":["string"]},"lastName":{"type":["string"]},"membershipId":{"type":["string"]},"userId":{"type":["string"]},"username":{"type":["string"]}},"required":["companyId"],"additionalProperties":true},"products":{"type":["array"],"items":{"type":["object"],"properties":{"_id":{"type":["string"]},"extraImages":{"type":["array"],"items":{"type":["object"],"properties":{},"additionalProperties":true}},"images":{"type":["array"],"items":{"type":["object"],"properties":{},"additionalProperties":true}},"inputs":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"]},"label":{"type":["string"]},"type":{"type":["string"]},"value":{}},"required":["identifier","label"],"additionalProperties":true}},"type":{"type":["string"]}},"required":["_id","type"],"additionalProperties":true}},"status":{"type":["string"],"enum":["created","started","blocked","processing","completed"]},"template":{"type":["object"],"properties":{"_id":{"type":["string"]},"name":{"type":["string"]},"type":{"type":["string"]},"inputs":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"]},"label":{"type":["string"]},"type":{"type":["string"]},"value":{}},"required":["identifier","label"],"additionalProperties":true}}},"required":["_id","name","type"],"additionalProperties":true},"testing":{"type":["boolean"]},"type":{"type":["string"],"enum":["custom","goods","people","machinery","car","moto","bike","cellphone"]},"variables":{"type":["array"],"items":{}},"veredict":{"type":["string"],"enum":["approved","disapproved","error"]}},"required":["_id","producer","status","template","testing","type","veredict"],"additionalProperties":true}},"required":["event","payload"],"title":"Inspection Reviewed v1","description":"When a completed inspection has been reviewed and changed in API version v1 format.","example":{"event":"inspection_reviewed","payload":{"_id":"646ee7dc5b7220a2e2ed76b8","status":"completed","producer":{"userId":"61478404b9a70800551878b6","membershipId":"61c28b777b0c420012bd4a68","companyId":"6147843bb9a70800551878bd","firstName":"John","lastName":"Doe","username":"johndoe","email":"johndoe@gmail.com"},"metadata":{"my_custom_key":"my_custom_value"},"testing":false,"template":{"_id":"62be865212ca0918bcabf2a5","name":"easy","type":"built-in","inputs":[{"identifier":"input_bf5dd369-3a82-4b0d-b8be-5186da9c07c7","label":"Nombre","value":"John"},{"identifier":"input_db30b856-594e-4799-9ee9-2dacfbe2a338","label":"Apellido","value":"Doe"},{"identifier":"input_79519a40-3047-48c4-b8db-5c95c8b5166a","label":"Identificación","value":"44188219"},{"identifier":"input_1b00981a-1484-4f53-8702-2a6d43fd6662","label":"Email","value":"johndoe@gmail.com"},{"identifier":"input_79bdb79b-c3d4-40d5-905e-bdaf1f1e02cb","label":"Ciudad","value":"testing"},{"identifier":"input_a00ae5cb-e633-4b9a-98b8-863eeac96e5c","label":"País","value":"AR"},{"identifier":"input_53ca83e7-413a-4435-9c2f-8206630142a8","label":"Provincia","value":"T"},{"identifier":"input_21de8e3a-87c9-474a-9f10-a4dc9ecbf083","label":"Sexo","value":"male"},{"identifier":"input_25dd4378-395d-4fe6-8306-65dcead884b0","label":"Nacimiento","value":"2002-06-19T00:00:00.000Z"},{"identifier":"input_3f8023b1-2062-4679-b455-f69a1211af1e","label":"Dirección","value":"testing 100"},{"identifier":"input_f2aaa964-9944-4d04-b86c-33044d00fef6","label":"Teléfono","value":"03813635420"},{"identifier":"input_35c6a25f-6407-4755-a225-47d72bc02530","label":"Patente","value":"AZ204SU"},{"identifier":"input_9f7a5106-09ae-49ab-a58a-b28952725ce0","label":"Año","value":2020},{"identifier":"input_e7f39d45-cf28-422f-a643-4f6e81127065","label":"Color","value":"grey"},{"identifier":"input_23fa1c2b-b87f-4780-92d8-f8665f21288b","label":"Uso","value":"PRIVADO"},{"identifier":"input_8e20f135-42b9-42cc-9ab5-abc4d32cdea3","label":"Marca","value":"JEEP"},{"identifier":"input_0f2e6fb5-ca87-480a-984f-0afa54d5f924","label":"Modelo","value":"RENEGADE"}]},"veredict":"approved","type":"car","completedBy":"client","identity":{"images":[{"validations":[{"validation":"date","_id":"62cd9215ecac9905ccf303d5","confidence":100,"valid":true},{"validation":"distance","_id":"62cd9215ecac9905ccf303d6","confidence":100,"valid":true},{"validation":"recaptured","_id":"62cd9215ecac9905ccf303d7","confidence":95.01,"valid":true},{"validation":"face_comparison","_id":"62cd9215ecac9905ccf303d8","confidence":100,"valid":true}],"entities":[{"entity":"passport","valid":true,"result":{"sex":"M","surname":"CASTILLO","givenNames":"JUAN PABLO","nationality":"ARGENTINA","dateOfBirth":"21 FEB/FEB 87","placeOfBirth":"ARG","dateOfIssue":"13 JUN/JUN 16","dateOfExpiry":"13 JUN/JUN 26","personalNumber":"32815355","authority":"RENAPER","documentNumber":"AAE054537","issuingCountry":"ARG"}}],"damages":[],"side":"pasaporte","processed":true,"uploadedAt":"2022-07-12T15:22:56.000Z","_id":"62cd920cecac9905ccf3032d","approved":true,"src":"https://ai-inspections.s3.amazonaws.com/pasaporte-1657639433699.jpeg","target":"identity"},{"validations":[{"validation":"date","_id":"62cd9215ecac9905ccf303d5","confidence":100,"valid":true},{"validation":"distance","_id":"62cd9215ecac9905ccf303d6","confidence":100,"valid":true},{"validation":"recaptured","_id":"62cd9215ecac9905ccf303d7","confidence":95.01,"valid":true},{"validation":"face_comparison","_id":"62cd9215ecac9905ccf303d8","confidence":100,"valid":true},{"validation":"birthdate","_id":"62cd9215ecac9905ccf303d9","confidence":100,"valid":false},{"validation":"dni","_id":"62cd9215ecac9905ccf303db","confidence":100,"valid":true},{"validation":"full_name","_id":"62cd9215ecac9905ccf303de","confidence":100,"valid":true},{"validation":"sex","_id":"62cd9215ecac9905ccf303e0","confidence":100,"valid":true},{"validation":"age","_id":"62cd9215ecac9905ccf303e2","confidence":100,"valid":false},{"validation":"object","_id":"62cd9215ecac9905ccf303e3","confidence":98.41889953613281,"valid":true}],"damages":[],"side":"dni","processed":true,"uploadedAt":"2022-07-12T15:23:56.000Z","_id":"62cd920cecac9905ccf3039d","approved":true,"src":"https://ai-inspections.s3.amazonaws.com/dni-1657639433699.jpeg","target":"identity"},{"validations":[{"validation":"date","_id":"62cd9210ecac9905ccf303bd","confidence":100,"valid":true},{"validation":"distance","_id":"62cd9210ecac9905ccf303be","confidence":100,"valid":true},{"validation":"recaptured","_id":"62cd9210ecac9905ccf303bf","confidence":99.95,"valid":true},{"validation":"age","_id":"62cd9210ecac9905ccf303c0","confidence":99.99873352050781,"valid":true},{"validation":"face_comparison","_id":"62cd9210ecac9905ccf303c1","confidence":0,"valid":false},{"validation":"object","_id":"62cd9210ecac9905ccf303c2","confidence":99.8077163696289,"valid":true}],"damages":[],"side":"selfie","processed":true,"uploadedAt":"2022-07-12T15:23:56.000Z","_id":"62cd920cecac9905ccf303a7","approved":true,"src":"https://ai-inspections.s3.amazonaws.com/selfie-1657639435560.jpeg","target":"identity"}],"extraImages":[],"email":"lucianoalvarez1212@gmail.com","firstName":"Luciano","identification":"44188219","lastName":"Alvarez"},"custom":{"images":[],"inputs":[{"label":"Seleccione los accesorios que desea asegurar","type":"multiselect","identifier":"input_525a71d5-3e1d-47e3-b2f5-1238d33190be","value":[{"selected":"Llantas especiales"},{"selected":"Radio"}]}],"extraImages":[]},"products":[{"type":"car","car":{"plate":"AZ204SU","color":"grey","make":"JEEP","model":"RENEGADE","use":"PRIVADO","year":2020},"_id":"646ee7dd5b7220a2e2ed76c5","extraImages":[],"inputs":[],"images":[{"templateImageIdentifier":"image_3e1153f3-66fa-4463-973a-fe277894c9df","type":"normal","target":"product","side":"back","processed":true,"uploadedAt":"2023-05-25T04:46:40.000Z","_id":"646ee8305b7220a2e2ed7718","validations":[{"confidence":99.99993896484375,"identifier":"candidate_2b136747-6293-4fe8-abf5-1532a7d97581","valid":true,"validation":"object","required":true},{"confidence":95.7,"identifier":"candidate_df69203b-a9f1-4225-bfbb-5df5198b806f","valid":true,"validation":"make","required":true},{"confidence":95.7,"identifier":"candidate_20168d44-92b5-4e71-967d-7dbddf042718","valid":true,"validation":"model","required":true},{"confidence":99,"identifier":"candidate_f2249ef8-8360-4b35-b8f7-c941dfd9a3ba","valid":true,"validation":"plate","required":true},{"confidence":90,"identifier":"candidate_228671dc-c9a2-48d9-b3f0-632f362fc136","valid":true,"validation":"domain","required":true},{"confidence":92.80000000000001,"identifier":"candidate_3e18a4b3-7b1d-4cd5-bf69-22dfc5e6f37a","valid":true,"validation":"angle","required":true},{"confidence":99.98935461044312,"identifier":"candidate_0748121d-42b8-40f3-8889-90d88cbdf17f","valid":true,"validation":"color","required":true},{"confidence":99.99420642852783,"identifier":"candidate_2514b86c-6ba6-4c4f-8eb1-450090ceb819","valid":true,"validation":"complete","required":true},{"confidence":100,"identifier":"candidate_4bb107a9-9c46-430f-835f-541650635caf","valid":true,"validation":"date","required":false},{"confidence":100,"identifier":"candidate_028b92d5-a8cc-4c6e-85fa-220c2927687b","valid":true,"validation":"distance","required":false},{"confidence":98.23,"identifier":"candidate_c65a8d0c-62c1-4732-9317-b08237fce958","valid":true,"validation":"recaptured","required":false},{"confidence":100,"identifier":"candidate_c40b3705-64e8-4faa-9648-bea7df4e8389","valid":false,"validation":"damage","required":false}],"approved":true,"src":"https://ai-inspections.s3.amazonaws.com/back-1684989998800.jpeg","damages":[{"part":"trunk","percentage":1.97,"damage":"dent"}]},{"templateImageIdentifier":"image_69c8e668-7c20-489e-ace8-74d4d5cc833a","type":"normal","target":"product","side":"front","processed":true,"uploadedAt":"2023-05-25T04:46:44.000Z","_id":"646ee8345b7220a2e2ed7769","validations":[{"confidence":99.80770111083984,"identifier":"candidate_18276ec7-7502-4ed4-a067-f54f745bb50e","valid":true,"validation":"object","required":true},{"confidence":92.5,"identifier":"candidate_2b58b84d-ff4b-4cf1-9615-7f735659de17","valid":true,"validation":"make","required":true},{"confidence":92.5,"identifier":"candidate_fa7b952a-cd6a-449c-ba1d-8106e522de41","valid":true,"validation":"model","required":true},{"confidence":99,"identifier":"candidate_e7a7b281-2bbc-4b8b-b76f-9acc13f5000f","valid":true,"validation":"plate","required":true},{"confidence":89.7,"identifier":"candidate_ef42b770-1721-410e-ae77-93b0fa5c1028","valid":true,"validation":"domain","required":true},{"confidence":90.9,"identifier":"candidate_ce035a0a-9d75-4bcd-94bc-b10d806d67c9","valid":true,"validation":"angle","required":true},{"confidence":0.14095206279307604,"identifier":"candidate_0ba18bf2-075e-45d0-988a-64a7c9d21b3c","valid":true,"validation":"color","required":true},{"confidence":96.16938829421997,"identifier":"candidate_cae171db-1b0a-4351-8bca-052517c31703","valid":true,"validation":"complete","required":true},{"confidence":100,"identifier":"candidate_b2fb826a-06b2-4d82-a9f6-a8a0dd700804","valid":true,"validation":"date","required":false},{"confidence":100,"identifier":"candidate_a7bef5c9-f877-4928-94f4-6417c277395b","valid":true,"validation":"distance","required":false},{"confidence":97.65,"identifier":"candidate_36812f63-4a21-492c-9e56-9b3a8426c629","valid":true,"validation":"recaptured","required":false},{"confidence":100,"identifier":"candidate_470dd1b6-c020-44e2-99ea-018decba540d","valid":true,"validation":"damage","required":false}],"approved":true,"src":"https://ai-inspections.s3.amazonaws.com/front-1684990002943.jpeg","damages":[]},{"templateImageIdentifier":"image_36d5963f-c1c3-4f81-86dd-cf26e7e2d965","type":"normal","target":"product","side":"sideLeft","processed":true,"uploadedAt":"2023-05-25T04:46:49.000Z","_id":"646ee83a5b7220a2e2ed7779","validations":[{"confidence":99.4636001586914,"identifier":"candidate_cdf7cdf8-b74e-41eb-add0-edbbbb272520","valid":true,"validation":"object","required":true},{"confidence":100,"identifier":"candidate_dbf52417-c8d3-4c1f-b680-e470c8fe79c0","valid":true,"validation":"date","required":false},{"confidence":100,"identifier":"candidate_e8a20066-c99e-48aa-9914-c62a863cc90e","valid":true,"validation":"distance","required":false},{"confidence":99.24,"identifier":"candidate_37c278f8-0561-43a9-94b9-b08c118d3ddb","valid":false,"validation":"recaptured","required":false},{"confidence":47.30112850666046,"identifier":"candidate_e42c0c0e-61ee-4b16-b6f8-721dc0ef46ad","valid":true,"validation":"angle","required":true},{"confidence":20.524100959300995,"identifier":"candidate_7045b92f-fc79-4984-92b1-7fb7524b7754","valid":true,"validation":"color","required":true},{"confidence":99.16438460350037,"identifier":"candidate_8f4c77aa-0553-4541-9a96-c55945b02975","valid":true,"validation":"complete","required":true},{"confidence":100,"identifier":"candidate_38cdd9f1-c4a5-4470-ac50-aa918ee253f5","valid":true,"validation":"damage","required":false}],"approved":true,"src":"https://ai-inspections.s3.amazonaws.com/sideleft-1684990007888.jpeg","damages":[]},{"templateImageIdentifier":"image_44849b74-b3a7-4914-9bf5-180a04e27e44","type":"normal","target":"product","side":"sideRight","processed":true,"uploadedAt":"2023-05-25T04:46:52.000Z","_id":"646ee83c5b7220a2e2ed7793","validations":[{"confidence":99.34487915039062,"identifier":"candidate_fff0264f-6540-41ab-a96a-a98569c96153","valid":true,"validation":"object","required":true},{"confidence":100,"identifier":"candidate_c8b9bf42-a4ba-4709-ac99-acd58e02b22b","valid":true,"validation":"date","required":false},{"confidence":100,"identifier":"candidate_54faadcc-b7c5-4f87-9cfd-7fe5aa071a5b","valid":true,"validation":"distance","required":false},{"confidence":96.16,"identifier":"candidate_b3d3f3b7-17c6-4323-a120-63328ec9fe8f","valid":true,"validation":"recaptured","required":false},{"confidence":99.29338693618774,"identifier":"candidate_dc40f817-3483-4d1d-8bbd-46f9b1bb823e","valid":true,"validation":"angle","required":true},{"confidence":98.33864569664001,"identifier":"candidate_b5982ae4-3441-4b97-b598-2a45618d97d1","valid":true,"validation":"color","required":true},{"confidence":68.27582120895386,"identifier":"candidate_56c5c0f4-dbcf-42c0-9d67-306795251c45","valid":true,"validation":"complete","required":true},{"confidence":100,"identifier":"candidate_607dee9e-672d-43b6-83e8-f52cd6080697","valid":true,"validation":"damage","required":false}],"approved":true,"src":"https://ai-inspections.s3.amazonaws.com/sideright-1684990010964.jpeg","damages":[]},{"templateImageIdentifier":"image_b7118054-16af-4fe8-b6ec-7bf216a553cf","type":"normal","target":"product","side":"id","processed":true,"uploadedAt":"2023-05-25T04:46:56.000Z","_id":"646ee8405b7220a2e2ed77aa","validations":[{"confidence":93.64836120605469,"identifier":"candidate_e610ab3e-ed99-4d37-baab-f17f6abd1cab","valid":true,"validation":"object","required":true},{"confidence":100,"identifier":"candidate_8b4d60a7-8966-4c29-b4cb-976ec0ec2ab3","valid":true,"validation":"model","required":true},{"confidence":100,"identifier":"candidate_9eef5161-9344-45a8-b313-37400bb30a79","valid":true,"validation":"make","required":true},{"confidence":100,"identifier":"candidate_d6d80bb8-6edb-4d0e-9aee-7f653ee8a4ee","valid":true,"validation":"use","required":true},{"confidence":100,"identifier":"candidate_ea2175cf-4d2d-4818-a25f-1028f35a52a8","valid":true,"validation":"domain","required":true},{"confidence":100,"identifier":"candidate_ec46c9eb-fdf8-4427-9b7b-df20d9a098de","valid":true,"validation":"vin","required":false},{"confidence":100,"identifier":"candidate_5f059ca8-6b97-4d27-9cd8-2ca08f72624a","valid":true,"validation":"date","required":false},{"confidence":100,"identifier":"candidate_a33e7367-b037-4197-b8d6-95ba0c78ccea","valid":true,"validation":"distance","required":false},{"confidence":100,"identifier":"candidate_3a25a739-7697-4ba0-a249-9f70fb2b5e44","valid":true,"validation":"recaptured","required":false}],"approved":true,"src":"https://ai-inspections.s3.amazonaws.com/id-1684990015188.jpeg","damages":[]}]}]}}}}}}}},"Inspection Completed v2":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":["object"],"properties":{"event":{"type":["string"],"enum":["inspection_completed"]},"payload":{"type":["object"],"properties":{"_id":{"type":["string"]},"magicLink":{"type":["string"],"minLength":1,"description":"URL to access the inspection"},"accessCode":{"type":["string"],"minLength":1,"description":"Security code to access the inspection"},"metadata":{"type":["object"],"additionalProperties":{"type":["string"],"maxLength":500}},"status":{"type":["string"],"enum":["created","started","blocked","processing","completed"],"description":"Status of the inspection"},"testing":{"type":["boolean"],"description":"Whether the inspection was created as a test inspection"},"createdAt":{"type":["string"],"format":"date-time"},"startedAt":{"type":["string"],"format":"date-time"},"finishedAt":{"type":["string"],"format":"date-time"},"result":{"type":["string"],"enum":["approved","disapproved","error"],"description":"Result of the inspection. Only available when the inspection is finished"},"validations":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1,"description":"Identifier of the validation. Use this to programmatically reference the validation."},"title":{"type":["string"],"minLength":1,"description":"Human readable validation title"},"description":{"type":["string"],"minLength":1,"description":"Human readable validation description"},"bindings":{"type":["object"],"properties":{"assets":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1,"description":"Identifier of the asset"},"type":{"type":["string"],"enum":["video","audio","text","date","textarea","select","numeric","check","file","multiselect","dialogDecision","signature","checkboxGroup","image"],"description":"Type of the asset"},"value":{"type":["string"],"description":"Declared asset value. Present when needed to disambiguate repeated asset declarations."},"result":{"type":["string"],"enum":["approved","disapproved"],"description":"Validation result isolated for this concrete inspection asset declaration when it can be safely determined."}},"required":["identifier","type"]},"description":"Assets dependencies of the validation"}},"required":["assets"],"description":"Dependencies of the validation"},"result":{"type":["string"],"enum":["approved","disapproved"]}},"required":["identifier","title","description","bindings","result"],"description":"Validation results"}},"inferences":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1,"description":"Identifier of the inference. Use this to programmatically reference the inference."},"title":{"type":["string"],"minLength":1,"description":"Human readable inference title"},"bindings":{"type":["object"],"properties":{"assets":{"type":["array"],"items":{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1,"description":"Identifier of the asset"},"type":{"type":["string"],"enum":["video","audio","text","date","textarea","select","numeric","check","file","multiselect","dialogDecision","signature","checkboxGroup","image"],"description":"Type of the asset"},"value":{"type":["string"],"description":"Declared asset value. Present when needed to disambiguate repeated asset declarations."}},"required":["identifier","type"]}}},"required":["assets"],"description":"To which assets the inference is bound to"},"schema":{"type":["object"],"additionalProperties":{},"description":"Inference value JSON Schema"},"value":{"oneOf":[{"type":["string"]},{"type":["number"]},{"type":["boolean"]},{"type":["array"],"items":{"type":["string"]}},{"type":["array"],"items":{"type":["number"]}},{"type":["array"],"items":{"type":["boolean"]}}]}},"required":["identifier","title","bindings","schema","value"]}},"assets":{"type":["array"],"items":{"discriminator":{"propertyName":"type"},"oneOf":[{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["text"]},"value":{"type":["string"],"minLength":1}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["textarea"]},"value":{"type":["string"],"minLength":1}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["audio"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"},"url":{"type":["string"],"minLength":1,"description":"Presigned URL to access the file"}},"required":["identifier","type","value","url"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["image"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"},"url":{"type":["string"],"minLength":1,"description":"Presigned URL to access the file"}},"required":["identifier","type","value","url"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["video"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"},"url":{"type":["string"],"minLength":1,"description":"Presigned URL to access the file"}},"required":["identifier","type","value","url"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["file"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"},"url":{"type":["string"],"minLength":1,"description":"Presigned URL to access the file"}},"required":["identifier","type","value","url"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["signature"]},"value":{"type":["string"],"minLength":1,"description":"File Object ID"},"url":{"type":["string"],"minLength":1,"description":"Presigned URL to access the file"}},"required":["identifier","type","value","url"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["date"]},"value":{"type":["string"],"minLength":1,"format":"date-time"}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["select"]},"value":{"type":["string"],"minLength":1}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["numeric"]},"value":{"type":["number"],"minimum":0}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["check"]},"value":{"type":["boolean"]}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["multiselect"]},"value":{"type":["array"],"items":{"type":["object"],"properties":{"selected":{"type":["string"],"minLength":1}},"required":["selected"]}}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["dialogDecision"]},"value":{"type":["boolean"]}},"required":["identifier","type","value"]},{"type":["object"],"properties":{"identifier":{"type":["string"],"minLength":1},"type":{"type":["string"],"enum":["checkboxGroup"]},"value":{"type":["array"],"items":{"type":["object"],"properties":{"selected":{"type":["string"],"minLength":1}},"required":["selected"]}}},"required":["identifier","type","value"]}]}}},"required":["_id","magicLink","accessCode","metadata","status","testing","createdAt","validations","inferences","assets"]}},"required":["event","payload"],"title":"Inspection Completed v2","description":"When an inspection is completed and have a result. At this stage assets, inferences and validations were computed.","example":{"event":"inspection_completed","payload":{"_id":"65f8f73aa4a5b1c2d3e4f5f0","magicLink":"https://app.autoinspector.ai/inspection/65f8f73aa4a5b1c2d3e4f5f0","accessCode":"381144","metadata":{"policy_id":"POL-10021","external_claim_id":"CLM-92811"},"status":"completed","testing":false,"createdAt":"2025-03-01T10:00:00.000Z","startedAt":"2025-03-01T10:05:00.000Z","finishedAt":"2025-03-01T10:20:00.000Z","result":"approved","validations":[{"identifier":"validation_plate","title":"Patente válida","description":"Valida formato de la patente","bindings":{"assets":[{"identifier":"input_vehicle_plate","type":"text"}]},"result":"approved"}],"inferences":[{"identifier":"inference_damage_score","title":"Puntaje de daño","bindings":{"assets":[{"identifier":"input_vehicle_plate","type":"text"}]},"schema":{"type":"number"},"value":0.12}],"assets":[{"identifier":"input_vehicle_plate","type":"text","value":"AB123CD"}]}}}}}}}}}}