FireblocksSdk.Api.Webhook (FireblocksSdk v0.1.8)
View SourceWebhook V2 API module for Fireblocks SDK.
Summary
Functions
Creates a new webhook, which will be triggered on the specified events
Retrieve a webhook by its id
Retrieve a specific notification by its id.
Get notification attempts by notification id
Get all notifications by webhook id (paginated)
Get the status of a resend job
Get all webhooks (paginated)
Delete a webhook by its id
Resend a specific notification by its id.
Resend notifications by resource ID.
Resend all failed notifications for a webhook, optionally filtered by resource ID.
Update a webhook by its id
Functions
Creates a new webhook, which will be triggered on the specified events
Endpoint Permission: Owner, Admin, Non-Signing Admin.
Options:
:url(String.t/0) - Required.:description(String.t/0):events(list ofString.t/0) - Required.:enabled(boolean/0) - The default value isfalse.
Retrieve a webhook by its id
Retrieve a specific notification by its id.
Options:
:includeData(boolean/0) - Whether to include notification data in the response. The default value isfalse.:webhookId(String.t/0) - Required. The ID of the webhook to fetch:notificationId(String.t/0) - Required. The ID of the notification to fetch
Get notification attempts by notification id
Options:
:webhookId(String.t/0) - Required. The ID of the webhook to fetch:notificationId(String.t/0) - Required. The ID of the notification to fetch:pageCursor(String.t/0):pageSize(integer/0) - The default value is10.
Get all notifications by webhook id (paginated)
# Get notifications for a specific webhook
FireblocksSdk.Api.Webhook.get_notifications([
webhookId: "wh_123abc",
order: :desc,
events: ["transaction.created", "embedded_wallet.asset.added"],
statuses: [:failed],
pageSize: 20
])Options:
:webhookId(String.t/0) - Required.:sortBy- Field to sort notifications by. Available values::id,:createdAt,:updatedAt,:status,:eventType,:resourceId.:order- available value::asc,:desc:pageCursor(String.t/0):pageSize(integer/0) - The default value is10.:startTime(integer/0) - Start time in milliseconds since epoch to filter by notifications created after this time (default 31 days ago):endTime(integer/0) - End time in milliseconds since epoch to filter by notifications created before this time (default current time):statuses- Filter notifications by status. Available values::completed,:failed,:in_progress,:on_hold.:events(list ofString.t/0) - Available values :transaction.created,transaction.status.updated,transaction.approval_status.updated,transaction.network_records.processing_completed,external_wallet.asset.added,external_wallet.asset.removed,internal_wallet.asset.added,internal_wallet.asset.removed,contract_wallet.asset.added,contract_wallet.asset.removed,vault_account.created,vault_account.asset.added,vault_account.asset.balance_updated,embedded_wallet.status.updated,embedded_wallet.created,embedded_wallet.asset.balance_updated,embedded_wallet.asset.added,embedded_wallet.account.created,embedded_wallet.device.added,onchain_data.updated,connection.added,connection.removed,connection.request.waiting_peer_approval,connection.request.rejected_by_peer:resourceId(String.t/0)
Get the status of a resend job
Get all webhooks (paginated)
Options:
:order- available value::asc,:descThe default value is:desc.:pageCursor(String.t/0):pageSize(integer/0) - The default value is10.
Delete a webhook by its id
Endpoint Permission: Owner, Admin, Non-Signing Admin.
Resend a specific notification by its id.
Endpoint Permission: Owner, Admin, Non-Signing Admin, Editor, Signer.
Options:
:webhookId(String.t/0) - Required. The ID of the webhook to resend notification for:notificationId(String.t/0) - Required. The ID of the notification to resend
Resend notifications by resource ID.
Endpoint Permission: Owner, Admin, Non-Signing Admin, Editor, Signer.
Options:
:webhookId(String.t/0) - Required. The ID of the webhook to resend notifications for:resourceId(String.t/0) - Required. The resource ID to resend notifications for:excludeStatuses- Filter notifications by status. Available values::completed,:failed,:in_progress,:on_hold.
Resend all failed notifications for a webhook, optionally filtered by resource ID.
Endpoint Permission: Owner, Admin, Non-Signing Admin, Editor, Signer.
Options:
:webhookId(String.t/0) - Required. The ID of the webhook to resend failed notifications for:startTime(integer/0) - Start time in milliseconds since epoch to filter by notifications created after this time (default 31 days ago):events(list ofString.t/0) - Available values :transaction.created,transaction.status.updated,transaction.approval_status.updated,transaction.network_records.processing_completed,external_wallet.asset.added,external_wallet.asset.removed,internal_wallet.asset.added,internal_wallet.asset.removed,contract_wallet.asset.added,contract_wallet.asset.removed,vault_account.created,vault_account.asset.added,vault_account.asset.balance_updated,embedded_wallet.status.updated,embedded_wallet.created,embedded_wallet.asset.balance_updated,embedded_wallet.asset.added,embedded_wallet.account.created,embedded_wallet.device.added,onchain_data.updated,connection.added,connection.removed,connection.request.waiting_peer_approval,connection.request.rejected_by_peer
Update a webhook by its id
Endpoint Permission: Owner, Admin, Non-Signing Admin.
Options:
:url(String.t/0):description(String.t/0):events(list ofString.t/0):enabled(boolean/0) - The default value isfalse.