Hooks

Get a list of hooks with optional pagination.

get/api/hooks

Request

  • Base URL: https://[tenant_id].logto.app
  • URL: https://[tenant_id].logto.app/api/hooks
  • Auth: OAuth 2 (client credentials, token URL /oidc/token, scopes: all)

Query parameters

includeExecutionStatsstring

Whether to include execution stats in the response.

pageinteger

Page number (starts from 1).

page_sizeinteger

Entries per page.

Response

A list of hooks.

tenantIdstring required
idstring required
namestring required
event'PostRegister' | 'PostSignIn' | 'PostSignInAdaptiveMfaTriggered' | 'PostResetPassword' | 'User.Created' | 'User.Deleted' | 'User.Data.Updated' | 'User.SuspensionStatus.Updated' | 'TrustedDevice.Created' | 'TrustedDevice.Deleted' | 'Role.Created' | 'Role.Deleted' | 'Role.Data.Updated' | 'Role.Scopes.Updated' | 'Scope.Created' | 'Scope.Deleted' | 'Scope.Data.Updated' | 'Organization.Created' | 'Organization.Deleted' | 'Organization.Data.Updated' | 'Organization.Membership.Updated' | 'OrganizationRole.Created' | 'OrganizationRole.Deleted' | 'OrganizationRole.Data.Updated' | 'OrganizationRole.Scopes.Updated' | 'OrganizationScope.Created' | 'OrganizationScope.Deleted' | 'OrganizationScope.Data.Updated' | 'Identifier.Lockout' | 'Message.RateLimited' | 'Grant.LimitExceeded' nullable required
eventsstring[] required
signingKeystring required
enabledboolean required
createdAtnumber required

Changes

    • warning

      added the new TrustedDevice.Created enum value to the / response property for the response status

    • warning

      added the new TrustedDevice.Created enum value to the // response property for the response status

    • warning

      added the new TrustedDevice.Deleted enum value to the / response property for the response status

    • warning

      added the new TrustedDevice.Deleted enum value to the // response property for the response status