List upcoming events
curl --request GET \
--url https://api.bridge.xyz/v0/webhooks/{webhookID}/events \
--header 'Api-Key: <api-key>'import requests
url = "https://api.bridge.xyz/v0/webhooks/{webhookID}/events"
headers = {"Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Key': '<api-key>'}};
fetch('https://api.bridge.xyz/v0/webhooks/{webhookID}/events', 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://api.bridge.xyz/v0/webhooks/{webhookID}/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Api-Key: <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://api.bridge.xyz/v0/webhooks/{webhookID}/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Api-Key", "<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://api.bridge.xyz/v0/webhooks/{webhookID}/events")
.header("Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bridge.xyz/v0/webhooks/{webhookID}/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"api_version": "v0",
"event_id": "wh_tmneA3b1rTv1q4gkvmPU53n",
"event_developer_id": "2d127766-02fa-44b0-9fc8-a67665dbf109",
"event_sequence": 1,
"event_category": "transfer",
"event_type": "transfer.deleted",
"event_object_id": "cc598628-29ab-448e-851f-7aaffb1a1171",
"event_object_status": null,
"event_object": {
"id": "cc598628-29ab-448e-851f-7aaffb1a1171",
"state": "awaiting_funds",
"amount": "50.0",
"source": {
"currency": "usdc",
"from_address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
"payment_rail": "ethereum"
},
"receipt": {
"gas_fee": "0.0",
"exchange_fee": "0.0",
"final_amount": "50.0",
"developer_fee": "0.0",
"initial_amount": "50.0",
"subtotal_amount": "50.0",
"url": "https://dashboard.bridge.xyz/transaction/00000000-0000-0000-0000-000000000000/receipt/00000000-0000-0000-0000-000000000000"
},
"currency": "usd",
"created_at": "2024-05-02T17:48:19.366Z",
"updated_at": "2024-05-02T17:48:19.366Z",
"destination": {
"currency": "usd",
"payment_rail": "ach",
"external_account_id": "24fd61e9-80b6-464a-b5ee-9f7a521cb1f0"
},
"on_behalf_of": "474c32b3-f3d6-43e3-92ce-a7d4e07fa0a4",
"developer_fee": "0.0",
"source_deposit_instructions": {
"amount": "50.0",
"currency": "usdc",
"to_address": null,
"from_address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
"payment_rail": "ethereum"
}
},
"event_object_changes": {
"state": [
"pending",
"canceled"
],
"updated_at": [
"2024-05-02T15:14:02.842Z",
"2024-05-02T15:15:07.163Z"
]
},
"event_created_at": "2024-05-02T17:48:19.465Z"
}
]
}Webhooks
List upcoming events
List the next 10 events that will be delivered to the specified webhook.
GET
/
webhooks
/
{webhookID}
/
events
List upcoming events
curl --request GET \
--url https://api.bridge.xyz/v0/webhooks/{webhookID}/events \
--header 'Api-Key: <api-key>'import requests
url = "https://api.bridge.xyz/v0/webhooks/{webhookID}/events"
headers = {"Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Key': '<api-key>'}};
fetch('https://api.bridge.xyz/v0/webhooks/{webhookID}/events', 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://api.bridge.xyz/v0/webhooks/{webhookID}/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Api-Key: <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://api.bridge.xyz/v0/webhooks/{webhookID}/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Api-Key", "<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://api.bridge.xyz/v0/webhooks/{webhookID}/events")
.header("Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bridge.xyz/v0/webhooks/{webhookID}/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"api_version": "v0",
"event_id": "wh_tmneA3b1rTv1q4gkvmPU53n",
"event_developer_id": "2d127766-02fa-44b0-9fc8-a67665dbf109",
"event_sequence": 1,
"event_category": "transfer",
"event_type": "transfer.deleted",
"event_object_id": "cc598628-29ab-448e-851f-7aaffb1a1171",
"event_object_status": null,
"event_object": {
"id": "cc598628-29ab-448e-851f-7aaffb1a1171",
"state": "awaiting_funds",
"amount": "50.0",
"source": {
"currency": "usdc",
"from_address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
"payment_rail": "ethereum"
},
"receipt": {
"gas_fee": "0.0",
"exchange_fee": "0.0",
"final_amount": "50.0",
"developer_fee": "0.0",
"initial_amount": "50.0",
"subtotal_amount": "50.0",
"url": "https://dashboard.bridge.xyz/transaction/00000000-0000-0000-0000-000000000000/receipt/00000000-0000-0000-0000-000000000000"
},
"currency": "usd",
"created_at": "2024-05-02T17:48:19.366Z",
"updated_at": "2024-05-02T17:48:19.366Z",
"destination": {
"currency": "usd",
"payment_rail": "ach",
"external_account_id": "24fd61e9-80b6-464a-b5ee-9f7a521cb1f0"
},
"on_behalf_of": "474c32b3-f3d6-43e3-92ce-a7d4e07fa0a4",
"developer_fee": "0.0",
"source_deposit_instructions": {
"amount": "50.0",
"currency": "usdc",
"to_address": null,
"from_address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
"payment_rail": "ethereum"
}
},
"event_object_changes": {
"state": [
"pending",
"canceled"
],
"updated_at": [
"2024-05-02T15:14:02.842Z",
"2024-05-02T15:15:07.163Z"
]
},
"event_created_at": "2024-05-02T17:48:19.465Z"
}
]
}Was this page helpful?