Webhook subscription that receives event notifications. Returned by
AccessGrid.Console.list_webhooks/1 and AccessGrid.Console.create_webhook/2.
Auth-method-specific fields appear only when applicable:
private_keyis returned ONLY onauth_method: "bearer_token"creation (sensitive; store on receipt — Rails does not return it again).client_certandcert_expires_atare returned onauth_method: "mtls".
Unused fields are nil on the struct.
Summary
Functions
Creates a Webhook struct from an API response map.