Skip to main content
The step_up.hook_failed event is triggered when Prelude calls your step-up delegation hook and the call cannot be completed successfully. Use this event to monitor the health of your delegation endpoint and alert on outages or misconfiguration.

Failure reasons

The reason field identifies the precise rule that failed. It is one of the following values:

Transport-level

Response-level

The following reasons are emitted when the hook returns 200 but the body does not match the expected response schema:

Event payload

Emitted when Prelude calls your step-up delegation hook and the call cannot be completed successfully.

user_id
string
required

An app's user's unique identifier. It is prefixed with 'usr_'

Examples:

"usr_01jqebhswje1ka1z7ahr9rfsgt"

"usr_01jqy7455pf8p9bap5qke912g1"

session_id
string
required

A user's session unique identifier. It is prefixed with 'ses_'

Example:

"ses_01jr0z5w2seq998trz7ftbb9rj"

scope
string
required

The step-up scope that was being requested.

Example:

"transfer_funds"

reason
enum<string>
required

The reason the delegation hook call failed. Transport-level reasons describe failures reaching the hook; response-level reasons describe failures validating the response body.

Available options:
invalid_granted_for,
invalid_grant_mode,
invalid_status,
invalid_status_code,
invalid_step,
invalid_response,
missing_steps,
request_failed,
response_decode_failed
Example:

"invalid_grant_mode"

occurred_at
string<date-time>
required
Example:

"2025-03-15T10:30:00Z"

dispatch_id
string
Example:

"123e4567-e89b-12d3-a456-426614174000"

correlation_id
string
Example:

"123e4567-e89b-12d3-a456-426614174000"