# Pre-Accident Valuation (PAV)

The create insurance claim endpoint triggers the generation of a PAV assessment in the AutoGrab PAV tool, which can then be accessed via the UI.

This allows for external systems to automate the generation of the PAV assessment for a user to then access later by a direct URL using the Claim ID

{% openapi src="/files/TapIOjKDYdyzufcTwuea" path="/v2/insurance-claims/" method="post" %}
[insurance\_updated.yaml](https://4010475651-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFaCA1JqFKRrqIB0EfZlZ%2Fuploads%2FuDtxATuz0g12x4lhufjn%2Finsurance_updated.yaml?alt=media\&token=2565c3ea-325e-4bf3-b8e4-31792a5c9e79)
{% endopenapi %}

### Access PAV via URL

Once a PAV is successfully generated, you can generate a URL to access the PAV assessment via AutoGrabs front end using the following format:

```
https://app.autograb.com.au/insurance-claims/<claim-id>
```

This allows for use cases such as adding a button on a UI that can auto redirect a user to the AutoGrab PAV platform to quickly access the specific PAV assessment.

### PAV Webhooks

To create a webhook post with the body below.&#x20;

```json
You will POST to:
https://api.autograb.com.au/v2/webhooks
with Header:
ApiKey: {YOUR_API_KEY}
with Body:
{
    "region": "au",
    "name": "{YOUR_WEBHOOK_NAME}",
    "format": "json",
    "events": ["claim_report_generated"],
    "endpoint": "{YOUR_CALLBACK_ENDPOINT}",
    "headers": [
    {
      "name": "authKey",
      "value": "password1"
    }
  ]
}
```

You will receive back events as per the example below.

```json
AutoGrab will POST to:
{YOUR_CALLBACK_ENDPOINT}
with Headers: //your optionally provided headers
"authKey": "password1"
with Body:
{
  "event": "claim_report_generated",
  "data": {
    "claimID": "{AUTOGRAB_CLAIM_ID}",
    "claimNumber: "{YOUR_CLAIM_NUMBER}",
    "claimValuation": {AUTOGRAB_CLAIM_VALUATION},
    "reportURL": "{AUTOGRAB_REPORT_PDF_URL}"
  }
}
```


---

# Agent Instructions: 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:

```
GET https://devhub.autograb.com/insurance/pre-accident-valuation-pav.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
