> ## Documentation Index
> Fetch the complete documentation index at: https://api.loanscape.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Events

When an application is created or updated, POST requests will be sent to your Webhook URL with a JSON payload of the following format.

You will only be notified of events and updates to fields which are enabled in your [Webhook settings](https://app.loanscape.io/dashboard/settings/developers).

If a TPO updates their company profile or team (e.g. `tpo.name`, `tpo.team`, `tpo.affiliations` etc.) updates will be bundled into a single `application_updated` event sent within an hour.

### Body Parameters

| Key             | Type             | Description                                                                                        |
| --------------- | ---------------- | -------------------------------------------------------------------------------------------------- |
| `applicationId` | string           | The ID of the created or updated application.                                                      |
| `event`         | string           | `application_created` or `application_updated`                                                     |
| `fieldsUpdated` | array of strings | A list indicating which fields have been updated. Only passed when event is `application_updated`. |

### Example

<CodeGroup>
  ```json JSON theme={"dark"}
  {
    "applicationId": "65f8ab19bbdaba667c42f6f2",
    "event": "application_updated",
    "fieldsUpdated": ["status", "assignedAccountExecutive", "tpo.address", "tpo.affiliations"]
  }
  ```

  ```json Headers theme={"dark"}
  {
    "content-type": "application/json; charset=utf-8",
    "webhook-secret": "KNNR40RB4AOGNmyKaxGTeYlYdnPlMBd"
  ```
</CodeGroup>
