Справочник API
Собран из openapi.json, который пишется из кода API: версия 1.0.0. Описания полей — на английском, как в самом описании.
Адрес: https://api.cerebro.uz. Каждый запрос несёт Authorization: Bearer sk_live_…. Вид
отказа и общие правила — в быстром старте.
Осмотры · Survey(e)r
| POST /v1/inspections | Create an inspection |
| GET /v1/inspections | List inspections |
| GET /v1/inspections/{id} | Get an inspection |
Create an inspection
Call after the policy has been paid. The answer carries the link to send to the client. Send Idempotency-Key so that a repeated request does not create a second inspection.
Parameters
Any unique string. A repeated request with the same key returns the inspection created the first time instead of creating another one.
Body
length 1–64
length 1–120
International format, for example +998901234567
^\+[0-9]{9,15}$
length 1–60
length 1–60
from 1950 ; to 2100
17 characters, Latin capitals and digits, without I, O and Q
^[A-HJ-NPR-Z0-9]{17}$
length 4–12
default false
default false
Market price as determined by the insurer. Used by the routing rules.
from 0.01 ; to 9999999999.99
site · partner · dealer · agent · office
The unit of the insurer the inspection belongs to, by its name as set up in the desk. Without it, the inspection takes the unit of the API key.
length 1–80
Answer · 201
e.g. "OSM-2026-000128"
created · capturing · submitted · prescreening · in_review · revision · rejection_pending · act_pending · dispute · callback · signed · rejected · unresolved · expired · delivered
awaiting_photos · under_review · retake_required · act_ready · passed · not_passed
length 1–60
length 1–60
from 1950 ; to 2100
17 characters, Latin capitals and digits, without I, O and Q
^[A-HJ-NPR-Z0-9]{17}$
length 4–12
default false
default false
Market price as determined by the insurer. Used by the routing rules.
from 0.01 ; to 9999999999.99
site · partner · dealer · agent · office
automatic · manual · senior_review
Address to send to the client
Refusals: 400 · 401 · 403 · 404 · 409
List inspections
Ordered by the time of the last change, oldest first. To follow changes, keep the updatedAt of the last inspection received and pass it as updatedSince.
Parameters
created · capturing · submitted · prescreening · in_review · revision · rejection_pending · act_pending · dispute · callback · signed · rejected · unresolved · expired · delivered
The next of the previous page, as it was given.
Answer · 200
e.g. "OSM-2026-000128"
created · capturing · submitted · prescreening · in_review · revision · rejection_pending · act_pending · dispute · callback · signed · rejected · unresolved · expired · delivered
awaiting_photos · under_review · retake_required · act_ready · passed · not_passed
length 1–60
length 1–60
from 1950 ; to 2100
17 characters, Latin capitals and digits, without I, O and Q
^[A-HJ-NPR-Z0-9]{17}$
length 4–12
default false
default false
Market price as determined by the insurer. Used by the routing rules.
from 0.01 ; to 9999999999.99
site · partner · dealer · agent · office
automatic · manual · senior_review
Address to send to the client
Pass as after to get the next page. Null on the last page.
Refusals: 400 · 401 · 403 · 404 · 409
Get an inspection
Parameters
Answer · 200
e.g. "OSM-2026-000128"
created · capturing · submitted · prescreening · in_review · revision · rejection_pending · act_pending · dispute · callback · signed · rejected · unresolved · expired · delivered
awaiting_photos · under_review · retake_required · act_ready · passed · not_passed
length 1–60
length 1–60
from 1950 ; to 2100
17 characters, Latin capitals and digits, without I, O and Q
^[A-HJ-NPR-Z0-9]{17}$
length 4–12
default false
default false
Market price as determined by the insurer. Used by the routing rules.
from 0.01 ; to 9999999999.99
site · partner · dealer · agent · office
automatic · manual · senior_review
Address to send to the client
Refusals: 400 · 401 · 403 · 404 · 409
Результат осмотра
| GET /v1/inspections/{id}/result | Get the result |
| GET /v1/inspections/{id}/photos/{photoId} | Download a photo |
| GET /v1/inspections/{id}/act | Download the signed act |
| POST /v1/inspections/{id}/result/acknowledge | Acknowledge receipt of the result |
Get the result
Available once the inspection is signed, rejected or unresolved. Reading the result changes nothing; acknowledge receipt with a separate request.
Parameters
Answer · 200
e.g. "OSM-2026-000128"
created · capturing · submitted · prescreening · in_review · revision · rejection_pending · act_pending · dispute · callback · signed · rejected · unresolved · expired · delivered
awaiting_photos · under_review · retake_required · act_ready · passed · not_passed
length 1–60
length 1–60
from 1950 ; to 2100
17 characters, Latin capitals and digits, without I, O and Q
^[A-HJ-NPR-Z0-9]{17}$
length 4–12
default false
default false
Market price as determined by the insurer. Used by the routing rules.
from 0.01 ; to 9999999999.99
site · partner · dealer · agent · office
automatic · manual · senior_review
Address to send to the client
signed · rejected · unresolved
automatic · manual · senior_review
front · rear · left · right · roof · vin · odometer · license_front · license_back · registration_front · registration_back · panoramic_roof · damage_1 · damage_2 · damage_3
Grows with every retake
False for a photo that was retaken later
Checksum of the file
^[0-9a-f]{64}$
Address of the file, relative to the API root
client · staff · insurer_system · partner · system
e.g. "inspection.approve"
e.g. "AKT-2026-000128"
Grows when a dispute changes the act
e.g. "scratch"
e.g. "front_left_door"
Place on the photo, as fractions of its width and height
Checksum of the signed PDF
Address of the signed PDF
What was read from the photos in force. The mileage has no verdict.
plate · vin · odometer
pending · done · failed
The value stated in the request
The value read from the photo
from 0 ; to 1
match · close · mismatch · unreadable
Signs that called for a closer look. Each carries details of its own.
What the result carries. A part the insurer chose not to receive is left empty and is not named here.
True once receipt has been acknowledged
Set once the photos and the act were removed at the end of their term. The record stays; the files are answered with 410.
Refusals: 400 · 401 · 403 · 404 · 409
Download a photo
The original file as the client sent it. Compare its SHA-256 with the sha256 given in the result to make sure the file arrived unchanged.
Parameters
Answer · 200
JPEG file
Refusals: 400 · 401 · 403 · 404 · 409
Download the signed act
The act as the client signed it, as a PDF. Compare its SHA-256 with act.sha256 given in the result.
Parameters
Answer · 200
PDF file
Refusals: 400 · 401 · 403 · 404 · 409
Acknowledge receipt of the result
Call after the act, the photos and the data have been saved in the policy record. The inspection becomes delivered. Repeating the call is safe.
Parameters
Answer · 200
e.g. "OSM-2026-000128"
created · capturing · submitted · prescreening · in_review · revision · rejection_pending · act_pending · dispute · callback · signed · rejected · unresolved · expired · delivered
awaiting_photos · under_review · retake_required · act_ready · passed · not_passed
length 1–60
length 1–60
from 1950 ; to 2100
17 characters, Latin capitals and digits, without I, O and Q
^[A-HJ-NPR-Z0-9]{17}$
length 4–12
default false
default false
Market price as determined by the insurer. Used by the routing rules.
from 0.01 ; to 9999999999.99
site · partner · dealer · agent · office
automatic · manual · senior_review
Address to send to the client
Refusals: 400 · 401 · 403 · 404 · 409
Убытки · Adjust(e)r
| POST /v1/claims | Report a loss |
| GET /v1/claims | List losses |
| GET /v1/claims/{id} | Get a loss |
| GET /v1/claims/{id}/result | Get the result of a loss |
| GET /v1/claims/{id}/documents/{kind} | Read a paper of a loss |
| POST /v1/claims/{id}/result/acknowledge | Acknowledge receipt of the result |
Report a loss
Call when the client has reported an event under a casco policy: from the call centre, the site or the insurer’s own system. The answer carries the link the client is sent by SMS. From what the client told, the rules of the insurer propose a path; people hurt, a theft or a third party hand the loss to the usual process at once. Send Idempotency-Key so that a repeated request does not create a second loss.
Parameters
Any unique string. A repeated request with the same key returns the inspection created the first time instead of creating another one.
Body
length 1–64
length 1–120
International format, for example +998901234567
^\+[0-9]{9,15}$
The language of the messages to the client. Uzbek unless said otherwise.
uz · ru
length 1–60
length 1–60
from 1950 ; to 2100
17 characters, Latin capitals and digits, without I, O and Q
^[A-HJ-NPR-Z0-9]{17}$
length 4–12
When the event happened
length 1–200
Another vehicle or person was involved
default false
default false
Somebody was hurt
default false
The unit of the insurer the loss belongs to, by its name as set up in the desk. Without it, the loss takes the unit of the API key.
length 1–80
Answer · 201
e.g. "UB-2026-000041"
opened · awaiting_photos · submitted · awaiting_visit · visit_assigned · estimating · approval_pending · offer_made · settling · settled · in_person · declined · stopped · expired · delivered
awaiting_photos · being_estimated · adjuster_on_the_way · offer_ready · being_paid · settled · with_insurer · expired
uz · ru
length 1–60
length 1–60
from 1950 ; to 2100
17 characters, Latin capitals and digits, without I, O and Q
^[A-HJ-NPR-Z0-9]{17}$
length 4–12
remote · visit · in_person
remote · visit · in_person
e.g. "small_loss"
What the client is offered, in sums
Address to send to the client
Refusals: 400 · 401 · 403 · 404 · 409
List losses
Ordered by the time of the last change, oldest first. To follow changes, keep the updatedAt of the last loss received and pass it as updatedSince.
Parameters
opened · awaiting_photos · submitted · awaiting_visit · visit_assigned · estimating · approval_pending · offer_made · settling · settled · in_person · declined · stopped · expired · delivered
The next of the previous page, as it was given.
Answer · 200
e.g. "UB-2026-000041"
opened · awaiting_photos · submitted · awaiting_visit · visit_assigned · estimating · approval_pending · offer_made · settling · settled · in_person · declined · stopped · expired · delivered
awaiting_photos · being_estimated · adjuster_on_the_way · offer_ready · being_paid · settled · with_insurer · expired
uz · ru
length 1–60
length 1–60
from 1950 ; to 2100
17 characters, Latin capitals and digits, without I, O and Q
^[A-HJ-NPR-Z0-9]{17}$
length 4–12
remote · visit · in_person
remote · visit · in_person
e.g. "small_loss"
What the client is offered, in sums
Address to send to the client
Pass as after to get the next page. Null on the last page.
Refusals: 400 · 401 · 403 · 404 · 409
Get a loss
Parameters
Answer · 200
e.g. "UB-2026-000041"
opened · awaiting_photos · submitted · awaiting_visit · visit_assigned · estimating · approval_pending · offer_made · settling · settled · in_person · declined · stopped · expired · delivered
awaiting_photos · being_estimated · adjuster_on_the_way · offer_ready · being_paid · settled · with_insurer · expired
uz · ru
length 1–60
length 1–60
from 1950 ; to 2100
17 characters, Latin capitals and digits, without I, O and Q
^[A-HJ-NPR-Z0-9]{17}$
length 4–12
remote · visit · in_person
remote · visit · in_person
e.g. "small_loss"
What the client is offered, in sums
Address to send to the client
Refusals: 400 · 401 · 403 · 404 · 409
Get the result of a loss
Available once the loss is settled, in_person, declined or stopped. Reading the result changes nothing; acknowledge receipt with a separate request.
Parameters
Answer · 200
e.g. "UB-2026-000041"
opened · awaiting_photos · submitted · awaiting_visit · visit_assigned · estimating · approval_pending · offer_made · settling · settled · in_person · declined · stopped · expired · delivered
awaiting_photos · being_estimated · adjuster_on_the_way · offer_ready · being_paid · settled · with_insurer · expired
uz · ru
length 1–60
length 1–60
from 1950 ; to 2100
17 characters, Latin capitals and digits, without I, O and Q
^[A-HJ-NPR-Z0-9]{17}$
length 4–12
remote · visit · in_person
remote · visit · in_person
e.g. "small_loss"
What the client is offered, in sums
Address to send to the client
settled · in_person · declined · stopped
remote · visit · in_person
client · staff · insurer_system · partner · system
e.g. "inspection.approve"
True once receipt has been acknowledged
The act of the damage, the agreement, the receipt or the referral
SHA-256 of the PDF, hex
Refusals: 400 · 401 · 403 · 404 · 409
Read a paper of a loss
The act of the damage, the agreement, the receipt or the referral, as a PDF. The result of the loss lists which of them exist.
Parameters
Answer · 200
A file
Refusals: 403 · 404
Acknowledge receipt of the result
Call after the outcome has been saved in the claim file. The loss becomes delivered. Repeating the call is safe.
Parameters
Answer · 200
e.g. "UB-2026-000041"
opened · awaiting_photos · submitted · awaiting_visit · visit_assigned · estimating · approval_pending · offer_made · settling · settled · in_person · declined · stopped · expired · delivered
awaiting_photos · being_estimated · adjuster_on_the_way · offer_ready · being_paid · settled · with_insurer · expired
uz · ru
length 1–60
length 1–60
from 1950 ; to 2100
17 characters, Latin capitals and digits, without I, O and Q
^[A-HJ-NPR-Z0-9]{17}$
length 4–12
remote · visit · in_person
remote · visit · in_person
e.g. "small_loss"
What the client is offered, in sums
Address to send to the client
Refusals: 400 · 401 · 403 · 404 · 409