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

# Webhook_usage table

> Webhook usage statistics - tracks call+error statistics. Same primary key as the webhook.

## Webhook\_usage Table (524)

Webhook usage statistics - tracks call+error statistics. Same primary key as the webhook.

## Fields

| Name                      | Description                                                                                                                                                     | Type                            | Nullable |
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- | :------: |
| webhook\_usage\_id        | Primary key                                                                                                                                                     | PK                              |    No    |
| total\_calls              | Number of times webhook has been invoked since registered. For statistical purposes.                                                                            | Int                             |    No    |
| total\_errors             | Number of times webhook has returned error since registered. For statistical purposes.                                                                          | Int                             |    No    |
| consecutive\_errors       | Number of consecutive errors. Reset to 0 when an non-error is received. If too many errors, webhook.state is changed to TooManyErrors(3) to deactivate webhook. | Int                             |    No    |
| last\_error               | Most recent error message received from target. HTTP Headers + body. To help with debugging webhooks.                                                           | String(4000)                    |    Yes   |
| registered                | Registered when                                                                                                                                                 | UtcDateTime                     |    No    |
| registered\_associate\_id | Registered by whom                                                                                                                                              | FK [associate](./associate.mdx) |    No    |
| updated                   | Last updated when                                                                                                                                               | UtcDateTime                     |    No    |
| updated\_associate\_id    | Last updated by whom                                                                                                                                            | FK [associate](./associate.mdx) |    No    |
| updatedCount              | Number of updates made to this record                                                                                                                           | UShort                          |    No    |

<img src="https://mintcdn.com/superofficeas/i6M2qZmvMNH7UTeu/media/loc/en/database/tables/Webhook_usage.png?fit=max&auto=format&n=i6M2qZmvMNH7UTeu&q=85&s=e0987d44bfddf0863c67c1afb2985e84" alt="Webhook_usage table relationship diagram" width="458" height="59" data-path="media/loc/en/database/tables/Webhook_usage.png" />

## Indexes

| Fields | Types | Description |
| ------ | ----- | ----------- |

## Relationships

| Table                    | Description                                                        |
| ------------------------ | ------------------------------------------------------------------ |
| [associate](./associate) | Employees, resources and other users - except for External persons |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [What's new in version 10.1.2.686](/release-notes/database/changes-10.1.2.md)
- [What's new in version 10.2.6.1248](/release-notes/database/changes-10.2.6.md)
- [What's new in version 10.1.5](/release-notes/database/changes-10.1.5.md)
- [What's new in version 10.2.1.1517](/release-notes/database/changes-10.2.1.md)
- [What's new in version 10.2.2.707](/release-notes/database/changes-10.2.2.md)
- [What's new in version 10.2.3.544](/release-notes/database/changes-10.2.3.md)
