Skip to main content

Webhook events

This guide list the different Logto webhook events and explains when each event occurs.

User interaction hook events​

Cloud availabilityOSS availability
Event typeDescription
PostRegisterA user successfully creates a new account via the UI interface.
PostSignInA user successfully signs in via the UI interface.
PostResetPasswordA user’s password is successfully reset through the β€œForgot password” flow.

Data mutation hook events​

Cloud availabilityOSS availability

User​

Event typeDescription
User.CreatedA new user account is created.
User.DeletedA user account is deleted.
User.Data.UpdatedUser profile data is updated, e.g., email, avatar, custom.data, social identifier, etc.
User.SuspensionStatus.UpdatedUser suspension status is changed (suspended or reactivated).

Role​

Event typeDescription
Role.CreatedA new role is created.
Role.DeletedA role is deleted.
Role.Data.UpdatedA role’s data is updated, e.g., role name, description, and default role status.
Role.Scopes.UpdatedPermissions assigned to a role are added or removed.

Permission (Scope)​

Event typeDescription
Scope.CreatedA new API permission is created.
Scope.DeletedAn API permission is deleted.
Scope.Data.UpdatedAn API permission’s data is updated, e.g., permission description.

Organization​

Event typeDescription
Organization.CreatedA new organization is created.
Organization.DeletedAn organization is deleted.
Organization.Data.UpdatedAn organization’s data is updated, e.g., organization name, description, custom.data, etc.
Organization.Membership.UpdatedMembers are added or removed from an organization.

Organization role​

Event typeDescription
OrganizationRole.CreatedA new organization role is created.
OrganizationRole.DeletedAn organization role is deleted
OrganizationRole.Data.UpdatedAn organization role’s data is updated, e.g., organization role name and description.
OrganizationRole.Scopes.UpdatedPermissions assigned to an organization role are added or removed.

Organization permission (scope)​

Event typeDescription
OrganizationScope.CreatedA new organization permission is created.
OrganizationScope.DeletedA organization permission is deleted.
OrganizationScope.Data.UpdatedA organization permission’s data is updated, e.g., organization permission description.

Management API triggered events​

API endpointEvent
POST /usersUser.Created
DELETE /users/:userIdUser.Deleted
PATCH /users/:userIdUser.Data.Updated
PATCH /users/:userId/custom-dataUser.Data.Updated
PATCH /users/:userId/profileUser.Data.Updated
PATCH /users/:userId/passwordUser.Data.Updated
PATCH /users/:userId/is-suspendedUser.SuspensionStatus.Updated
POST /rolesRole.Created, (Role.Scopes.Update)
DELETE /roles/:idRole.Deleted
PATCH /roles/:idRole.Data.Updated
POST /roles/:id/scopesRole.Scopes.Updated
DELETE /roles/:id/scopes/:scopeIdRole.Scopes.Updated
POST /resources/:resourceId/scopesScope.Created
DELETE /resources/:resourceId/scopes/:scopeIdScope.Deleted
PATCH /resources/:resourceId/scopes/:scopeIdScope.Data.Updated
POST /organizationsOrganization.Created
DELETE /organizations/:idOrganization.Deleted
PATCH /organizations/:idOrganization.Data.Updated
PUT /organizations/:id/usersOrganization.Membership.Updated
POST /organizations/:id/usersOrganization.Membership.Updated
DELETE /organizations/:id/users/:userIdOrganization.Membership.Updated
POST /organization-rolesOrganizationRole.Created, (OrganizationRole.Scopes.Updated)
DELETE /organization-roles/:idOrganizationRole.Deleted
PATCH /organization-roles/:idOrganizationRole.Data.Updated
POST /organization-scopesOrganizationScope.Created
DELETE /organization-scopes/:idOrganizationScope.Deleted
PATCH /organization-scopes/:idOrganizationScope.Data.Updated
PUT /organization-roles/:id/scopesOrganizationRole.Scopes.Updated
POST /organization-roles/:id/scopesOrganizationRole.Scopes.Updated
DELETE /organization-roles/:id/scopes/:organizationScopeIdOrganizationRole.Scopes.Updated

Interaction API triggered events​

User interaction actionEvent
User email/phone linkingUser.Data.Updated
User MFAs linkingUser.Data.Updated
User social/SSO linkingUser.Data.Updated
User password resetUser.Data.Updated
User registrationUser.Created