List workspace webhooks
curl --request GET \
--url https://wallet-sandbox.blockops.network/api/v1/workspaces/{workspace_id}/webhooks \
--header 'ACCESS-API-KEY: <api-key>' \
--header 'ACCESS-SIGN: <api-key>' \
--header 'ACCESS-TIMESTAMP: <api-key>'import requests
url = "https://wallet-sandbox.blockops.network/api/v1/workspaces/{workspace_id}/webhooks"
headers = {
"ACCESS-API-KEY": "<api-key>",
"ACCESS-TIMESTAMP": "<api-key>",
"ACCESS-SIGN": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'ACCESS-API-KEY': '<api-key>',
'ACCESS-TIMESTAMP': '<api-key>',
'ACCESS-SIGN': '<api-key>'
}
};
fetch('https://wallet-sandbox.blockops.network/api/v1/workspaces/{workspace_id}/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://wallet-sandbox.blockops.network/api/v1/workspaces/{workspace_id}/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"ACCESS-API-KEY: <api-key>",
"ACCESS-SIGN: <api-key>",
"ACCESS-TIMESTAMP: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://wallet-sandbox.blockops.network/api/v1/workspaces/{workspace_id}/webhooks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("ACCESS-API-KEY", "<api-key>")
req.Header.Add("ACCESS-TIMESTAMP", "<api-key>")
req.Header.Add("ACCESS-SIGN", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://wallet-sandbox.blockops.network/api/v1/workspaces/{workspace_id}/webhooks")
.header("ACCESS-API-KEY", "<api-key>")
.header("ACCESS-TIMESTAMP", "<api-key>")
.header("ACCESS-SIGN", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://wallet-sandbox.blockops.network/api/v1/workspaces/{workspace_id}/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["ACCESS-API-KEY"] = '<api-key>'
request["ACCESS-TIMESTAMP"] = '<api-key>'
request["ACCESS-SIGN"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "success",
"code": 0,
"data": [
{
"id": "<string>",
"webhook_id": "<string>",
"workspace_id": "<string>",
"url": "<string>",
"events": [
"<string>"
],
"status": "<string>",
"is_active": true,
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"success": false,
"message": "invalid api signature",
"code": "unauthorized",
"data": null
}{
"success": false,
"message": "success",
"code": 0,
"data": null
}webhooks
List workspace webhooks
GET
/
api
/
v1
/
workspaces
/
{workspace_id}
/
webhooks
List workspace webhooks
curl --request GET \
--url https://wallet-sandbox.blockops.network/api/v1/workspaces/{workspace_id}/webhooks \
--header 'ACCESS-API-KEY: <api-key>' \
--header 'ACCESS-SIGN: <api-key>' \
--header 'ACCESS-TIMESTAMP: <api-key>'import requests
url = "https://wallet-sandbox.blockops.network/api/v1/workspaces/{workspace_id}/webhooks"
headers = {
"ACCESS-API-KEY": "<api-key>",
"ACCESS-TIMESTAMP": "<api-key>",
"ACCESS-SIGN": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'ACCESS-API-KEY': '<api-key>',
'ACCESS-TIMESTAMP': '<api-key>',
'ACCESS-SIGN': '<api-key>'
}
};
fetch('https://wallet-sandbox.blockops.network/api/v1/workspaces/{workspace_id}/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://wallet-sandbox.blockops.network/api/v1/workspaces/{workspace_id}/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"ACCESS-API-KEY: <api-key>",
"ACCESS-SIGN: <api-key>",
"ACCESS-TIMESTAMP: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://wallet-sandbox.blockops.network/api/v1/workspaces/{workspace_id}/webhooks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("ACCESS-API-KEY", "<api-key>")
req.Header.Add("ACCESS-TIMESTAMP", "<api-key>")
req.Header.Add("ACCESS-SIGN", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://wallet-sandbox.blockops.network/api/v1/workspaces/{workspace_id}/webhooks")
.header("ACCESS-API-KEY", "<api-key>")
.header("ACCESS-TIMESTAMP", "<api-key>")
.header("ACCESS-SIGN", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://wallet-sandbox.blockops.network/api/v1/workspaces/{workspace_id}/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["ACCESS-API-KEY"] = '<api-key>'
request["ACCESS-TIMESTAMP"] = '<api-key>'
request["ACCESS-SIGN"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "success",
"code": 0,
"data": [
{
"id": "<string>",
"webhook_id": "<string>",
"workspace_id": "<string>",
"url": "<string>",
"events": [
"<string>"
],
"status": "<string>",
"is_active": true,
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"success": false,
"message": "invalid api signature",
"code": "unauthorized",
"data": null
}{
"success": false,
"message": "success",
"code": 0,
"data": null
}Authorizations
HMAC API-key identifier.
Unix timestamp in seconds.
Base64-encoded hex HMAC signature.

