pub struct IntegrationWebhookConfig {
pub signature_verification: Option<IntegrationWebhookSignatureVerification>,
pub handle_verification: Option<String>,
pub payload_transform: Option<String>,
}Expand description
How Truto receives and verifies inbound webhooks for this integration. Not to be confused with WebhookSchema elsewhere in this spec, which describes Truto’s outbound webhook delivered to your application.
Fields§
§signature_verification: Option<IntegrationWebhookSignatureVerification>Strategy used to verify the webhook signature before accepting it. Runs after payload_transform and after handle_verification returns { type: 'payload' }.
handle_verification: Option<String>JSONata expression evaluated on every inbound webhook before signature verification. Use to: * Respond to handshake pings (return { type: 'verify', verification_response: { status_code, body, headers } }). * Surface meta-events that should not fan out (return { type: 'meta' }). * Update the integrated account context (return { type: 'verify' \| 'payload' \| 'meta', update_context: { ... } }). * Pass through to fan-out (return { type: 'payload' } or omit entirely — defaults to payload).
payload_transform: Option<String>JSONata expression that transforms the raw inbound payload before handle_verification and signature_verification see it. Use to normalize vendor-specific envelopes (e.g. unwrap a Salesforce payloads[] array, decode a base64 body).