Skip to main content

Webhook request

Cloud availabilityOSS availability

Once a valid hook event is emitted, Logto will find corresponding webhooks and send a POST request per hook config.

Request headersโ€‹

KeyCustomizableNotes
user-agentโœ…Logto (https://logto.io/) by default
content-typeโœ…application/json by default
logto-signature-sha-256the signature of the request body, refer to Securing your webhooks

You can overwrite customizable headers by customizing request headers with the same key.

Request bodyโ€‹

FieldTypeOptionalNotes
hookIdstringthe identifier in Logto
eventstringwhich event that triggers this hook
createdAtstringthe create time of payload in ISO format
sessionIdstringโœ…the Session ID (not Interaction ID) for this event, if applicable
userAgentstringโœ…the user-agent for the request that triggers this hook
userIdstringโœ…the related User ID for this event, if applicable
userUserEntityโœ…the related user entity for this event, if applicable
applicationApplicationEntityโœ…the related application info for this event, if applicable

UserEntity includes the following fields from user data:

FieldTypeOptional
idstring
usernamestringโœ…
primaryEmailstringโœ…
primaryPhonestringโœ…
namestringโœ…
avatarstringโœ…
customDataobject
identitiesobject
lastSignInAtstring
createdAtstring
applicationIdstringโœ…
isSuspendedbooleanโœ…

ApplicationEntity includes the following fields from application data:

FieldTypeOptional
idstring
namestring
descriptionstringโœ…

See Users and Applications reference for detailed field explanations.