> For the complete documentation index, see [llms.txt](https://docs-old.telematicssdk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-old.telematicssdk.com/platform-features/fnol-inspections-and-damage-recognition/quotes.md).

# Photo processing

{% content-ref url="/pages/-MKB5h80JebYNZ9nuqhb" %}
[Broken mention](broken://pages/-MKB5h80JebYNZ9nuqhb)
{% endcontent-ref %}

{% hint style="info" %}
**Note:** You have to [Create a Claim](/platform-features/fnol-inspections-and-damage-recognition/claims-service.md) and [attach a Screen](/platform-features/fnol-inspections-and-damage-recognition/screens.md) to it in order to create a Quote and get Damage Report.
{% endhint %}

## Create a Quote

<mark style="color:green;">`POST`</mark> `https://insp.telematicssdk.com/api​/v1​/screens​/:screen_id​/quotes`

**Authorization:** Required with Token\
\
**Content Type:** application/json\
\
**Important:** You can create a Quote only if Claim's state is **Approved** and Screen's **CanQuotation == true.**\
\
Creation of a Quote will set up the claim's state to **"Quote\_Processing"** automatically. After the Quote is processed, the claim's state will be changed to "**Executed**" automatically. It usually takes 30-60 seconds.

#### Path Parameters

| Name       | Type    | Description                               |
| ---------- | ------- | ----------------------------------------- |
| screen\_id | integer | Screen ID. Get it via /api/v1/screens/:id |

#### Headers

| Name          | Type   | Description                                                               |
| ------------- | ------ | ------------------------------------------------------------------------- |
| Authorization | string | Token. Get it via <https://insp.telematicssdk.com/api/v1/profiles/login/> |

{% tabs %}
{% tab title="200 " %}

```
{
  "Result": {
    "Quote": {
      "Id": 0,
      "ExternalId": "string",
      "ScreenId": 0,
      "CreatedAt": "2020-10-20T19:27:45.316Z",
      "Screen": {
        "Id": 0,
        "ScreenableId": 0,
        "ScreenableType": "string",
        "Front": {
          "Url": "string"
        },
        "Back": {
          "Url": "string"
        },
        "LeftFrontWing": {
          "Url": "string"
        },
        "LeftFrontDoor": {
          "Url": "string"
        },
        "LeftRearDoor": {
          "Url": "string"
        },
        "LeftRearWing": {
          "Url": "string"
        },
        "RightFrontWing": {
          "Url": "string"
        },
        "RightFrontDoor": {
          "Url": "string"
        },
        "RightRearDoor": {
          "Url": "string"
        },
        "RightRearWing": {
          "Url": "string"
        },
        "FrontLeftDiagonal": {
          "Url": "string"
        },
        "FrontRightDiagonal": {
          "Url": "string"
        },
        "BackLeftDiagonal": {
          "Url": "string"
        },
        "BackRightDiagonal": {
          "Url": "string"
        },
        "Windshield": {
          "Url": "string"
        },
        "Dashboard": {
          "Url": "string"
        },
        "Left": {
          "Url": "string"
        },
        "Right": {
          "Url": "string"
        },
        "CanQuotation": true,
        "CanEdit": true,
        "CreatedAt": "2020-10-20T19:27:45.316Z",
        "UpdatedAt": "2020-10-20T19:27:45.316Z"
      },
      "Claim": {
        "Id": 0,
        "Paint": "solid",
        "ClaimDateTime": "2020-10-23T06:06:04.281Z",
        "Description": "string",
        "Lat": "string",
        "Lng": "string",
        "DriverFirstName": "string",
        "DriverLastName": "string",
        "DriverPhone": "string",
        "DriverLicenseNo": "string",
        "InvolvedFirstName": "string",
        "InvolvedLastName": "string",
        "InvolvedLicenseNo": "string",
        "InvolvedVehicleLicenseplateno": "string",
        "VehicleMake": "string",
        "VehicleModel": "string",
        "VehicleLicenseplateno": "string",
        "CarToken": "string",
        "CarTowing": true,
        "CarDrivable": true,
        "CreatedAt": "2020-10-23T06:06:04.281Z",
        "UpdatedAt": "2020-10-23T06:06:04.281Z",
        "DriverName": "string",
        "InvolvedComments": "string",
        "Locations": "string",
        "State": "draft",
        "CanEdit": true
      },
      "DamageReport": "string" // Value NULL
    }
  }
```

{% endtab %}
{% endtabs %}

## Show Damage Reports

<mark style="color:blue;">`GET`</mark> `https://insp.telematicssdk.com/api/v1/claims/:screen_id/damage_reports`

**Authorization:** Required with Token

#### Path Parameters

| Name       | Type   | Description                                          |
| ---------- | ------ | ---------------------------------------------------- |
| screen\_id | string | Screen ID. Get via /api/v1/claims/:claim\_id/screens |

#### Headers

| Name          | Type   | Description                                                               |
| ------------- | ------ | ------------------------------------------------------------------------- |
| Authorization | string | Token. Get it via <https://insp.telematicssdk.com/api/v1/profiles/login/> |

{% tabs %}
{% tab title="200 " %}

```
{
  "Result": {
    "DamageReports": [
      {
        "Id": 0,
        "QuoteId": 0,
        "CreatedOn": "2020-10-20T20:30:14.099Z",
        "EstimateTotal":  {
          "tax": 0, 
          "total": 0, // Total Estimate Cost including entire repair cost/replacement cost of all the detected panels anddamages.
          "discount": 0, 
          "totalAfterTax": 0.0, 
          "taxDescription": "string", 
          "totalAfterDiscount": 0
          },
        "SegmentImages": {
          "rawImages": [
            Image Url \\ List of all raw image urls
          ],
          "imageDetails": [
            {
              "_id": "string",
              "raw": "string" // Image Url,
              "error": null,
              "filename": null,
              "annotated": "string" // Image Url
            }
          ],
          "annotatedImages": [
            Image Url \\ List of all annotated image urls
          ]
        },
        "SegmentationEstimate": {
          "damages": [
            {
              "{{panel code}}": "string", // e.g. ("rightfender":). Other panel can include { frontbumper, rightfender , etc}
              "area": 0.0, // e.g. “9.19” (% area damaged corresponding to the respective panel area) (Or) “null”
              "name": "string" // e.g. Damage name: scratch, d2, clean, etc (OR) "null"
            }
          ],
          "estimates": [
            "name": "string", // Panelcode. E.g. { frontbumper, rightfender , etc}
            "costs": [
              {
                "__v": 0,
                "_id": "string",
                "vehicle": {"make": "string", "model": "string"},
                "discount": 0,
                "panelCode": "string", //  can include { frontbumper, rightfender , etc}
                "panelName": "string",
                "damageCode": "scratchS1",// Dent Grades. e.g. Dent1,Dent2, Scratch1 etc,
                "dealerCode": "string",
                "damageValue": 0, // Cost for the particular work. E.g. cost for tinkeringlabour
                "lineItemType": "string",
                "discountedValve": 0
              }
            ]
          ],
          "totalCost": 0 // Cost for repair/replacement for a particular panel. E.g. cost for frontbumber. It can be repair cost / replacement cost.
        },
        "CreatedAt": "2020-10-20T20:30:14.099Z",
        "UpdatedAt": "2020-10-20T20:30:14.099Z"
      }
    ]
  }
```

{% endtab %}
{% endtabs %}

## Show a Damage Report

<mark style="color:blue;">`GET`</mark> `https://insp.telematicssdk.com/api/v1/damage_reports/:id`

**Authorization:** Required with Token

#### Path Parameters

| Name | Type   | Description                                                            |
| ---- | ------ | ---------------------------------------------------------------------- |
| ID   | string | Damage Report ID. Get it via /api/v1/claims/:claim\_id/damage\_reports |

#### Headers

| Name          | Type   | Description                                                               |
| ------------- | ------ | ------------------------------------------------------------------------- |
| Authorization | string | Token. Get it via <https://insp.telematicssdk.com/api/v1/profiles/login/> |

{% tabs %}
{% tab title="200 " %}

```
{
  "Result": {
    "DamageReport": {
      "Id": 0,
      "QuoteId": 0,
      "CreatedOn": "2020-10-20T20:30:14.103Z",
      "EstimateTotal": {},
      "SegmentImages": {},
      "SegmentationEstimate": {},
      "CreatedAt": "2020-10-20T20:30:14.103Z",
      "UpdatedAt": "2020-10-20T20:30:14.103Z"
    }
  }
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs-old.telematicssdk.com/platform-features/fnol-inspections-and-damage-recognition/quotes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
