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

# Event types

> Every event Aiveth sends to webhooks and returns from the events API, with what it means.

Each event has a `type`. Choose the types an address receives when you set up a [webhook](https://docs.aiveth.com/events/webhooks.md), or filter by them when you read events back with `GET /v1/events?types=...`. The console shows the same list under **Webhooks**.

## People

| Type | Meaning |
| - | - |
| `user.created` | Someone joined: invited, added, by domain, single sign-on or user sync. |
| `user.updated` | A person's name, email or status (suspended or active again) changed. |
| `user.deleted` | Your directory removed a person, or they deleted their account. |
| `organization_membership.updated` | A person's role changed. |

## Sign-in

These need the **See sign-in history** power to choose for a webhook.

| Type | Meaning |
| - | - |
| `session.created` | A person signed in (every step done). |
| `session.revoked` | A person signed out, or an admin signed them out. |
| `authentication.failed` | A sign-in was refused. |
| `impersonation.started` | Someone from your support started acting as a person. |
| `impersonation.ended` | Acting as a person ended. |

## Invitations

| Type | Meaning |
| - | - |
| `invitation.created` | Someone was invited. |
| `invitation.accepted` | Someone accepted their invitation. |
| `invitation.revoked` | An invitation was withdrawn. |

## Roles

| Type | Meaning |
| - | - |
| `role.created` | A role was made. |
| `role.updated` | A role was changed. |
| `role.deleted` | A role was deleted. |

## Domains

| Type | Meaning |
| - | - |
| `organization_domain.created` | A domain was added. |
| `organization_domain.verified` | A domain was verified. |
| `organization_domain.updated` | Who can join from a domain changed. |
| `organization_domain.deleted` | A domain was removed. |

## Single sign-on and directory

| Type | Meaning |
| - | - |
| `connection.activated` | Your organization's single sign-on was turned on. |
| `connection.deactivated` | Your organization's single sign-on was turned off. |
| `connection.updated` | Your organization's single sign-on settings changed. |
| `directory_group.created` | Your directory sent a new group. |
| `directory_group.updated` | Your directory changed a group. |
| `directory_group.deleted` | Your directory removed a group. |

## Privacy

| Type | Meaning |
| - | - |
| `consent.given` | A person said yes to one of your purposes. |
| `consent.withdrawn` | A person withdrew their yes: stop that processing (DPDP Act section 6(6)). |
| `erasure.requested` | Data a purpose no longer allows must be erased. Mark it done through the admin API (DPDP Act section 8(7)). See [Erasure](https://docs.aiveth.com/privacy/erasure.md). |

## AI agents

| Type | Meaning |
| - | - |
| `agent.alert` | An AI agent did something unusual: far more tokens than usual, a new MCP server, or many refused tries. See [Alerts](https://docs.aiveth.com/agents/controls-and-approvals.md#alerts). |

## Fine-grained authorization

See [Fine-grained authorization](https://docs.aiveth.com/access/fine-grained-authorization.md).

| Type | Meaning |
| - | - |
| `resource_type.created` | A type of part was added. |
| `resource_type.updated` | A type of part was renamed. |
| `resource_type.deleted` | A type of part was removed. |
| `authorization_resource.created` | A part of your organization was registered. |
| `authorization_resource.updated` | A part was renamed or moved under another part. |
| `authorization_resource.deleted` | A part was removed (with any parts under it). |
| `resource_role.created` | A role for parts was made. |
| `resource_role.updated` | A role for parts was changed. |
| `resource_role.deleted` | A role for parts was deleted. |
| `role_assignment.created` | A person or a group was given a role on a part. |
| `role_assignment.deleted` | A role on a part was taken away. |

## Test

| Type | Meaning |
| - | - |
| `webhook.test` | Sent only when you choose **Send a test** on a webhook address. |

## Notes

* `data` is the object as it is now, never a password, code, token or link.
* An update includes `previous_attributes` when Aiveth knows the earlier value.
* A sign-in that still needs a second step makes no `session.created` until that step is done.
* Events are kept for 30 days.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.