Send a test delivery to a webhook endpoint
curl --request POST \
--url https://blankfx-contacts.fly.dev/public/v1/webhooks/{id}/test \
--header 'BFX-API-KEY: <api-key>'import requests
url = "https://blankfx-contacts.fly.dev/public/v1/webhooks/{id}/test"
headers = {"BFX-API-KEY": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'BFX-API-KEY': '<api-key>'}};
fetch('https://blankfx-contacts.fly.dev/public/v1/webhooks/{id}/test', 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://blankfx-contacts.fly.dev/public/v1/webhooks/{id}/test",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"BFX-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://blankfx-contacts.fly.dev/public/v1/webhooks/{id}/test"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("BFX-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.post("https://blankfx-contacts.fly.dev/public/v1/webhooks/{id}/test")
.header("BFX-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://blankfx-contacts.fly.dev/public/v1/webhooks/{id}/test")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["BFX-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_bodyAPI Reference
Send a test delivery to a webhook endpoint
POST
/
webhooks
/
{id}
/
test
Send a test delivery to a webhook endpoint
curl --request POST \
--url https://blankfx-contacts.fly.dev/public/v1/webhooks/{id}/test \
--header 'BFX-API-KEY: <api-key>'import requests
url = "https://blankfx-contacts.fly.dev/public/v1/webhooks/{id}/test"
headers = {"BFX-API-KEY": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'BFX-API-KEY': '<api-key>'}};
fetch('https://blankfx-contacts.fly.dev/public/v1/webhooks/{id}/test', 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://blankfx-contacts.fly.dev/public/v1/webhooks/{id}/test",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"BFX-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://blankfx-contacts.fly.dev/public/v1/webhooks/{id}/test"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("BFX-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.post("https://blankfx-contacts.fly.dev/public/v1/webhooks/{id}/test")
.header("BFX-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://blankfx-contacts.fly.dev/public/v1/webhooks/{id}/test")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["BFX-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_bodyAuthorizations
Ed25519 request signing. Send three headers: BFX-API-KEY (your key_id), BFX-TIMESTAMP (unix seconds; rejected if more than 30s from server time), and BFX-SIGNATURE = base64(Ed25519_sign(privateKey, ${timestamp}\n${METHOD}\n${requestTarget}\n${sha256(body)})) where requestTarget is the path including any query string. The server verifies the signature against your registered public key; no shared secret exists.
Response
Sent
⌘I