All URIs are relative to https://developers.fireblocks.com/reference/
| Method | HTTP request | Description |
|---|---|---|
| createWebhook | POST /webhooks | Create a new webhook |
| deleteWebhook | DELETE /webhooks/{webhookId} | Delete webhook |
| getMetrics | GET /webhooks/{webhookId}/metrics/{metricName} | Get webhook metrics |
| getNotification | GET /webhooks/{webhookId}/notifications/{notificationId} | Get notification by id |
| getNotificationAttempts | GET /webhooks/{webhookId}/notifications/{notificationId}/attempts | Get notification attempts |
| getNotifications | GET /webhooks/{webhookId}/notifications | Get all notifications by webhook id |
| getResendJobStatus | GET /webhooks/{webhookId}/notifications/resend_failed/jobs/{jobId} | Get resend job status |
| getWebhook | GET /webhooks/{webhookId} | Get webhook by id |
| getWebhooks | GET /webhooks | Get all webhooks |
| resendFailedNotifications | POST /webhooks/{webhookId}/notifications/resend_failed | Resend failed notifications |
| resendNotificationById | POST /webhooks/{webhookId}/notifications/{notificationId}/resend | Resend notification by id |
| resendNotificationsByResourceId | POST /webhooks/{webhookId}/notifications/resend_by_resource | Resend notifications by resource Id |
| updateWebhook | PATCH /webhooks/{webhookId} | Update webhook |
Webhook createWebhook(createWebhookRequest)
Creates a new webhook, which will be triggered on the specified events Endpoint Permissions: Owner, Admin, Non-Signing Admin.
import { readFileSync } from 'fs';
import { Fireblocks, BasePath } from '@fireblocks/ts-sdk';
import type { FireblocksResponse, WebhooksV2ApiCreateWebhookRequest, Webhook } from '@fireblocks/ts-sdk';
// Set the environment variables for authentication
process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1"
process.env.FIREBLOCKS_API_KEY = "my-api-key";
process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8");
const fireblocks = new Fireblocks();
let body: WebhooksV2ApiCreateWebhookRequest = {
// CreateWebhookRequest
createWebhookRequest: param_value,
// string | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional)
idempotencyKey: idempotencyKey_example,
};
fireblocks.webhooksV2.createWebhook(body).then((res: FireblocksResponse<Webhook>) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2));
}).catch((error:any) => console.error(error));| Name | Type | Description | Notes |
|---|---|---|---|
| createWebhookRequest | CreateWebhookRequest | ||
| idempotencyKey | [string] | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | (optional) defaults to undefined |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | created new webhook successfully | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Webhook deleteWebhook()
Delete a webhook by its id Endpoint Permission: Owner, Admin, Non-Signing Admin.
import { readFileSync } from 'fs';
import { Fireblocks, BasePath } from '@fireblocks/ts-sdk';
import type { FireblocksResponse, WebhooksV2ApiDeleteWebhookRequest, Webhook } from '@fireblocks/ts-sdk';
// Set the environment variables for authentication
process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1"
process.env.FIREBLOCKS_API_KEY = "my-api-key";
process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8");
const fireblocks = new Fireblocks();
let body: WebhooksV2ApiDeleteWebhookRequest = {
// string | The unique identifier of the webhook
webhookId: 44fcead0-7053-4831-a53a-df7fb90d440f,
};
fireblocks.webhooksV2.deleteWebhook(body).then((res: FireblocksResponse<Webhook>) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2));
}).catch((error:any) => console.error(error));| Name | Type | Description | Notes |
|---|---|---|---|
| webhookId | [string] | The unique identifier of the webhook | defaults to undefined |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Deleted webhook object | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WebhookMetric getMetrics()
Get webhook metrics by webhook id and metric name
import { readFileSync } from 'fs';
import { Fireblocks, BasePath } from '@fireblocks/ts-sdk';
import type { FireblocksResponse, WebhooksV2ApiGetMetricsRequest, WebhookMetric } from '@fireblocks/ts-sdk';
// Set the environment variables for authentication
process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1"
process.env.FIREBLOCKS_API_KEY = "my-api-key";
process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8");
const fireblocks = new Fireblocks();
let body: WebhooksV2ApiGetMetricsRequest = {
// string
webhookId: 44fcead0-7053-4831-a53a-df7fb90d440f,
// 'LAST_ACTIVE_HOUR_ERROR_RATE' | Name of the metric to retrieve
metricName: LAST_ACTIVE_HOUR_ERROR_RATE,
};
fireblocks.webhooksV2.getMetrics(body).then((res: FireblocksResponse<WebhookMetric>) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2));
}).catch((error:any) => console.error(error));| Name | Type | Description | Notes |
|---|---|---|---|
| webhookId | [string] | defaults to undefined | |
| metricName | ['LAST_ACTIVE_HOUR_ERROR_RATE']Array<'LAST_ACTIVE_HOUR_ERROR_RATE'> | Name of the metric to retrieve | defaults to undefined |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Webhook metrics | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NotificationWithData getNotification()
Get notification by id
import { readFileSync } from 'fs';
import { Fireblocks, BasePath } from '@fireblocks/ts-sdk';
import type { FireblocksResponse, WebhooksV2ApiGetNotificationRequest, NotificationWithData } from '@fireblocks/ts-sdk';
// Set the environment variables for authentication
process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1"
process.env.FIREBLOCKS_API_KEY = "my-api-key";
process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8");
const fireblocks = new Fireblocks();
let body: WebhooksV2ApiGetNotificationRequest = {
// string | The ID of the webhook to fetch
webhookId: webhookId_example,
// string | The ID of the notification to fetch
notificationId: notificationId_example,
// boolean | Include the data of the notification (optional)
includeData: true,
};
fireblocks.webhooksV2.getNotification(body).then((res: FireblocksResponse<NotificationWithData>) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2));
}).catch((error:any) => console.error(error));| Name | Type | Description | Notes |
|---|---|---|---|
| webhookId | [string] | The ID of the webhook to fetch | defaults to undefined |
| notificationId | [string] | The ID of the notification to fetch | defaults to undefined |
| includeData | [boolean] | Include the data of the notification | (optional) defaults to undefined |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NotificationAttemptsPaginatedResponse getNotificationAttempts()
Get notification attempts by notification id
import { readFileSync } from 'fs';
import { Fireblocks, BasePath } from '@fireblocks/ts-sdk';
import type { FireblocksResponse, WebhooksV2ApiGetNotificationAttemptsRequest, NotificationAttemptsPaginatedResponse } from '@fireblocks/ts-sdk';
// Set the environment variables for authentication
process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1"
process.env.FIREBLOCKS_API_KEY = "my-api-key";
process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8");
const fireblocks = new Fireblocks();
let body: WebhooksV2ApiGetNotificationAttemptsRequest = {
// string | The ID of the webhook to fetch
webhookId: webhookId_example,
// string | The ID of the notification to fetch
notificationId: notificationId_example,
// string | Cursor of the required page (optional)
pageCursor: pageCursor_example,
// number | Maximum number of items in the page (optional)
pageSize: 10,
};
fireblocks.webhooksV2.getNotificationAttempts(body).then((res: FireblocksResponse<NotificationAttemptsPaginatedResponse>) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2));
}).catch((error:any) => console.error(error));| Name | Type | Description | Notes |
|---|---|---|---|
| webhookId | [string] | The ID of the webhook to fetch | defaults to undefined |
| notificationId | [string] | The ID of the notification to fetch | defaults to undefined |
| pageCursor | [string] | Cursor of the required page | (optional) defaults to undefined |
| pageSize | [number] | Maximum number of items in the page | (optional) defaults to 10 |
NotificationAttemptsPaginatedResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NotificationPaginatedResponse getNotifications()
Get all notifications by webhook id (paginated)
import { readFileSync } from 'fs';
import { Fireblocks, BasePath } from '@fireblocks/ts-sdk';
import type { FireblocksResponse, WebhooksV2ApiGetNotificationsRequest, NotificationPaginatedResponse } from '@fireblocks/ts-sdk';
// Set the environment variables for authentication
process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1"
process.env.FIREBLOCKS_API_KEY = "my-api-key";
process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8");
const fireblocks = new Fireblocks();
let body: WebhooksV2ApiGetNotificationsRequest = {
// string
webhookId: 44fcead0-7053-4831-a53a-df7fb90d440f,
// 'ASC' | 'DESC' | ASC / DESC ordering (default DESC) (optional)
order: ASC,
// 'id' | 'createdAt' | 'updatedAt' | 'status' | 'eventType' | 'resourceId' | Sort by field (optional)
sortBy: id,
// string | Cursor of the required page (optional)
pageCursor: pageCursor_example,
// number | Maximum number of items in the page (optional)
pageSize: 10,
// number | Start time in milliseconds since epoch to filter by notifications created after this time (default 31 days ago) (optional)
startTime: 1625097600000,
// number | End time in milliseconds since epoch to filter by notifications created before this time (default current time) (optional)
endTime: 1625017600000,
// Array<NotificationStatus> | List of notification statuses to filter by (optional)
statuses: param_value,
// Array<WebhookEvent> | List of webhook event types to filter by (optional)
events: param_value,
// string | Resource ID to filter by (optional)
resourceId: 44fcead0-7053-4831-a53a-df7fb90d440f,
};
fireblocks.webhooksV2.getNotifications(body).then((res: FireblocksResponse<NotificationPaginatedResponse>) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2));
}).catch((error:any) => console.error(error));| Name | Type | Description | Notes |
|---|---|---|---|
| webhookId | [string] | defaults to undefined | |
| order | [**'ASC' | 'DESC'**]Array<'ASC' | 'DESC'> | ASC / DESC ordering (default DESC) |
| sortBy | [**'id' | 'createdAt' | 'updatedAt' |
| pageCursor | [string] | Cursor of the required page | (optional) defaults to undefined |
| pageSize | [number] | Maximum number of items in the page | (optional) defaults to 100 |
| startTime | [number] | Start time in milliseconds since epoch to filter by notifications created after this time (default 31 days ago) | (optional) defaults to undefined |
| endTime | [number] | End time in milliseconds since epoch to filter by notifications created before this time (default current time) | (optional) defaults to undefined |
| statuses | Array<NotificationStatus> | List of notification statuses to filter by | (optional) defaults to undefined |
| events | Array<WebhookEvent> | List of webhook event types to filter by | (optional) defaults to undefined |
| resourceId | [string] | Resource ID to filter by | (optional) defaults to undefined |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A paginated response containing NotificationExternalDTO objects | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResendFailedNotificationsJobStatusResponse getResendJobStatus()
Get the status of a resend job
import { readFileSync } from 'fs';
import { Fireblocks, BasePath } from '@fireblocks/ts-sdk';
import type { FireblocksResponse, WebhooksV2ApiGetResendJobStatusRequest, ResendFailedNotificationsJobStatusResponse } from '@fireblocks/ts-sdk';
// Set the environment variables for authentication
process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1"
process.env.FIREBLOCKS_API_KEY = "my-api-key";
process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8");
const fireblocks = new Fireblocks();
let body: WebhooksV2ApiGetResendJobStatusRequest = {
// string | The ID of the webhook
webhookId: webhookId_example,
// string | The ID of the resend job
jobId: jobId_example,
};
fireblocks.webhooksV2.getResendJobStatus(body).then((res: FireblocksResponse<ResendFailedNotificationsJobStatusResponse>) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2));
}).catch((error:any) => console.error(error));| Name | Type | Description | Notes |
|---|---|---|---|
| webhookId | [string] | The ID of the webhook | defaults to undefined |
| jobId | [string] | The ID of the resend job | defaults to undefined |
ResendFailedNotificationsJobStatusResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Job status | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Webhook getWebhook()
Retrieve a webhook by its id
import { readFileSync } from 'fs';
import { Fireblocks, BasePath } from '@fireblocks/ts-sdk';
import type { FireblocksResponse, WebhooksV2ApiGetWebhookRequest, Webhook } from '@fireblocks/ts-sdk';
// Set the environment variables for authentication
process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1"
process.env.FIREBLOCKS_API_KEY = "my-api-key";
process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8");
const fireblocks = new Fireblocks();
let body: WebhooksV2ApiGetWebhookRequest = {
// string | The unique identifier of the webhook
webhookId: 44fcead0-7053-4831-a53a-df7fb90d440f,
};
fireblocks.webhooksV2.getWebhook(body).then((res: FireblocksResponse<Webhook>) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2));
}).catch((error:any) => console.error(error));| Name | Type | Description | Notes |
|---|---|---|---|
| webhookId | [string] | The unique identifier of the webhook | defaults to undefined |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A webhook object | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WebhookPaginatedResponse getWebhooks()
Get all webhooks (paginated).
import { readFileSync } from 'fs';
import { Fireblocks, BasePath } from '@fireblocks/ts-sdk';
import type { FireblocksResponse, WebhooksV2ApiGetWebhooksRequest, WebhookPaginatedResponse } from '@fireblocks/ts-sdk';
// Set the environment variables for authentication
process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1"
process.env.FIREBLOCKS_API_KEY = "my-api-key";
process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8");
const fireblocks = new Fireblocks();
let body: WebhooksV2ApiGetWebhooksRequest = {
// 'ASC' | 'DESC' | ASC / DESC ordering (default DESC) (optional)
order: ASC,
// string | Cursor of the required page (optional)
pageCursor: pageCursor_example,
// number | Maximum number of items in the page (optional)
pageSize: 10,
};
fireblocks.webhooksV2.getWebhooks(body).then((res: FireblocksResponse<WebhookPaginatedResponse>) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2));
}).catch((error:any) => console.error(error));| Name | Type | Description | Notes |
|---|---|---|---|
| order | [**'ASC' | 'DESC'**]Array<'ASC' | 'DESC'> | ASC / DESC ordering (default DESC) |
| pageCursor | [string] | Cursor of the required page | (optional) defaults to undefined |
| pageSize | [number] | Maximum number of items in the page | (optional) defaults to 10 |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A paginated response containing WebhookDto objects | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResendFailedNotificationsResponse resendFailedNotifications(resendFailedNotificationsRequest, )
Resend all failed notifications for a webhook in the last 24 hours Endpoint Permission: Owner, Admin, Non-Signing Admin, Editor, Signer.
import { readFileSync } from 'fs';
import { Fireblocks, BasePath } from '@fireblocks/ts-sdk';
import type { FireblocksResponse, WebhooksV2ApiResendFailedNotificationsRequest, ResendFailedNotificationsResponse } from '@fireblocks/ts-sdk';
// Set the environment variables for authentication
process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1"
process.env.FIREBLOCKS_API_KEY = "my-api-key";
process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8");
const fireblocks = new Fireblocks();
let body: WebhooksV2ApiResendFailedNotificationsRequest = {
// ResendFailedNotificationsRequest
resendFailedNotificationsRequest: param_value,
// string | The ID of the webhook
webhookId: webhookId_example,
// string | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional)
idempotencyKey: idempotencyKey_example,
};
fireblocks.webhooksV2.resendFailedNotifications(body).then((res: FireblocksResponse<ResendFailedNotificationsResponse>) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2));
}).catch((error:any) => console.error(error));| Name | Type | Description | Notes |
|---|---|---|---|
| resendFailedNotificationsRequest | ResendFailedNotificationsRequest | ||
| webhookId | [string] | The ID of the webhook | defaults to undefined |
| idempotencyKey | [string] | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | (optional) defaults to undefined |
ResendFailedNotificationsResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | No failed notifications to resend | * X-Request-ID - |
| 202 | Resend failed notifications request was accepted and is being processed | * X-Request-ID - * Location - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
resendNotificationById()
Resend notification by ID Endpoint Permission: Owner, Admin, Non-Signing Admin, Editor, Signer.
import { readFileSync } from 'fs';
import { Fireblocks, BasePath } from '@fireblocks/ts-sdk';
import type { FireblocksResponse, WebhooksV2ApiResendNotificationByIdRequest } from '@fireblocks/ts-sdk';
// Set the environment variables for authentication
process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1"
process.env.FIREBLOCKS_API_KEY = "my-api-key";
process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8");
const fireblocks = new Fireblocks();
let body: WebhooksV2ApiResendNotificationByIdRequest = {
// string | The ID of the webhook
webhookId: webhookId_example,
// string | The ID of the notification
notificationId: notificationId_example,
// string | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional)
idempotencyKey: idempotencyKey_example,
};
fireblocks.webhooksV2.resendNotificationById(body).then((res: FireblocksResponse<any>) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2));
}).catch((error:any) => console.error(error));| Name | Type | Description | Notes |
|---|---|---|---|
| webhookId | [string] | The ID of the webhook | defaults to undefined |
| notificationId | [string] | The ID of the notification | defaults to undefined |
| idempotencyKey | [string] | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | (optional) defaults to undefined |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 202 | Resend notification request was accepted and is being processed | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
resendNotificationsByResourceId(resendNotificationsByResourceIdRequest, )
Resend notifications by resource Id Endpoint Permission: Owner, Admin, Non-Signing Admin, Editor, Signer.
import { readFileSync } from 'fs';
import { Fireblocks, BasePath } from '@fireblocks/ts-sdk';
import type { FireblocksResponse, WebhooksV2ApiResendNotificationsByResourceIdRequest } from '@fireblocks/ts-sdk';
// Set the environment variables for authentication
process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1"
process.env.FIREBLOCKS_API_KEY = "my-api-key";
process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8");
const fireblocks = new Fireblocks();
let body: WebhooksV2ApiResendNotificationsByResourceIdRequest = {
// ResendNotificationsByResourceIdRequest
resendNotificationsByResourceIdRequest: param_value,
// string | The ID of the webhook
webhookId: webhookId_example,
// string | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional)
idempotencyKey: idempotencyKey_example,
};
fireblocks.webhooksV2.resendNotificationsByResourceId(body).then((res: FireblocksResponse<any>) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2));
}).catch((error:any) => console.error(error));| Name | Type | Description | Notes |
|---|---|---|---|
| resendNotificationsByResourceIdRequest | ResendNotificationsByResourceIdRequest | ||
| webhookId | [string] | The ID of the webhook | defaults to undefined |
| idempotencyKey | [string] | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | (optional) defaults to undefined |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 202 | Resend notifications by resource request was accepted and is being processed | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Webhook updateWebhook(updateWebhookRequest, )
Update a webhook by its id Endpoint Permission: Owner, Admin, Non-Signing Admin.
import { readFileSync } from 'fs';
import { Fireblocks, BasePath } from '@fireblocks/ts-sdk';
import type { FireblocksResponse, WebhooksV2ApiUpdateWebhookRequest, Webhook } from '@fireblocks/ts-sdk';
// Set the environment variables for authentication
process.env.FIREBLOCKS_BASE_PATH = BasePath.Sandbox; // or assign directly to "https://sandbox-api.fireblocks.io/v1"
process.env.FIREBLOCKS_API_KEY = "my-api-key";
process.env.FIREBLOCKS_SECRET_KEY = readFileSync("./fireblocks_secret.key", "utf8");
const fireblocks = new Fireblocks();
let body: WebhooksV2ApiUpdateWebhookRequest = {
// UpdateWebhookRequest
updateWebhookRequest: param_value,
// string | The unique identifier of the webhook
webhookId: 44fcead0-7053-4831-a53a-df7fb90d440f,
};
fireblocks.webhooksV2.updateWebhook(body).then((res: FireblocksResponse<Webhook>) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(res, null, 2));
}).catch((error:any) => console.error(error));| Name | Type | Description | Notes |
|---|---|---|---|
| updateWebhookRequest | UpdateWebhookRequest | ||
| webhookId | [string] | The unique identifier of the webhook | defaults to undefined |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Updated webhook object | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]