# Setting up a webhook

Rather than manually retrieving results using the [Retrieving entity verification results](/api-documentation/entity-results/retrieving-entity-verification-results.md) endpoint, you can set up a webhook that sends the verification status and data to your API once a verification has finished processing.

Providing us your endpoint URL is easy. Simply head to <https://enterprise.personr.co/dashboard/dev-space> and click on Webhooks.

Enter your API endpoint that's listening, and hit Save.

<figure><img src="/files/5SVXB2FGSot7XP6Wvid9" alt=""><figcaption></figcaption></figure>

Be sure to generate a webhook authentication token, and only accept authenticated calls from us. We'll send a POST request to your endpoint, with your generated token in the header.&#x20;

#### Webhook Response

```json
{
  "applicantId": "140000249274x80293840283",
  "status": "Reviewed",
  "reviewAnswer": "Rejected",
  "rejectLabels": [
    "SANCTIONS",
    "COMPROMISED_PERSONS"
  ],
  "entityType": "AUSTRALIAN PROPRIETARY COMPANY, LIMITED BY SHARES",
  "registrySource": "AUSTRALIAN SECURITIES & INVESTMENTS COMMISSION",
  "registeredAddress": "123 EXAMPLE LANE, PERTH, 6000, WA, AUSTRALIA",
  "companyName": "EXAMPLE LTD",
  "registrationNumber": "123 456 789",
  "incorporatedOn": "2020-12-01",
  "representativeEmail": "example@personr.co",
  "representativePhone": "0400 000 000",
  "flowQuestions": [
    "Example Question 1",
    "Example Question 2"
  ],
  "flowAnswers": [
    "Entity Answer 1",
    "Entity Answer 2"
  ],
  "flow": "KYB Basic"
  "sourceKey": "Example Source Key",
  "externalUserId": []
}
```


---

# 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://manual.personr.co/api-documentation/entity-results/retrieving-entity-verification-results/setting-up-a-webhook.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.
