curl --request POST \
--url https://api.centaur.io/v1/webhooks \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"url": "<string>",
"eventTypes": [],
"description": "<string>",
"filters": {
"traderIds": [
123
],
"sourceIdentityIds": [
"<string>"
],
"assetIds": [
123
],
"assetClasses": []
},
"maxInFlight": 25
}
'import requests
url = "https://api.centaur.io/v1/webhooks"
payload = {
"url": "<string>",
"eventTypes": [],
"description": "<string>",
"filters": {
"traderIds": [123],
"sourceIdentityIds": ["<string>"],
"assetIds": [123],
"assetClasses": []
},
"maxInFlight": 25
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: '<string>',
eventTypes: [],
description: '<string>',
filters: {
traderIds: [123],
sourceIdentityIds: ['<string>'],
assetIds: [123],
assetClasses: []
},
maxInFlight: 25
})
};
fetch('https://api.centaur.io/v1/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://api.centaur.io/v1/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => '<string>',
'eventTypes' => [
],
'description' => '<string>',
'filters' => [
'traderIds' => [
123
],
'sourceIdentityIds' => [
'<string>'
],
'assetIds' => [
123
],
'assetClasses' => [
]
],
'maxInFlight' => 25
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.centaur.io/v1/webhooks"
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"eventTypes\": [],\n \"description\": \"<string>\",\n \"filters\": {\n \"traderIds\": [\n 123\n ],\n \"sourceIdentityIds\": [\n \"<string>\"\n ],\n \"assetIds\": [\n 123\n ],\n \"assetClasses\": []\n },\n \"maxInFlight\": 25\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.centaur.io/v1/webhooks")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"eventTypes\": [],\n \"description\": \"<string>\",\n \"filters\": {\n \"traderIds\": [\n 123\n ],\n \"sourceIdentityIds\": [\n \"<string>\"\n ],\n \"assetIds\": [\n 123\n ],\n \"assetClasses\": []\n },\n \"maxInFlight\": 25\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.centaur.io/v1/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"<string>\",\n \"eventTypes\": [],\n \"description\": \"<string>\",\n \"filters\": {\n \"traderIds\": [\n 123\n ],\n \"sourceIdentityIds\": [\n \"<string>\"\n ],\n \"assetIds\": [\n 123\n ],\n \"assetClasses\": []\n },\n \"maxInFlight\": 25\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "3f0c8a52-6a7e-4d0b-9b5e-2f1c7d9e4a10",
"url": "https://hooks.example.com/centaur",
"description": "Production trade alerts",
"eventTypes": [
"trade_event.created",
"feed_item.created",
"feed_item.updated"
],
"filters": {
"traderIds": [
7
],
"assetClasses": [
"crypto"
]
},
"status": "ACTIVE",
"statusChangedAt": "2026-10-05T10:00:00.000Z",
"disabledReason": null,
"maxInFlight": 5,
"consecutiveFailures": 0,
"lastSuccessAt": null,
"lastFailureAt": null,
"lastSequence": 0,
"secretRotatedAt": null,
"previousSecretExpiresAt": null,
"createdAt": "2026-10-05T10:00:00.000Z",
"updatedAt": "2026-10-05T10:00:00.000Z",
"secret": "whsec_AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8"
},
"requestId": "c8e2c6e4-80dd-4ffc-9d66-4e31bf64c6b8"
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Unauthorized"
},
"requestId": "c8e2c6e4-80dd-4ffc-9d66-4e31bf64c6b8"
}{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "API key lacks webhooks.manage permission"
},
"requestId": "c8e2c6e4-80dd-4ffc-9d66-4e31bf64c6b8"
}{
"success": false,
"error": {
"code": "ENDPOINT_LIMIT_REACHED",
"message": "A partner can have at most 5 webhook endpoints. Delete one first."
},
"requestId": "c8e2c6e4-80dd-4ffc-9d66-4e31bf64c6b8"
}{
"success": false,
"error": {
"code": "UNSAFE_URL",
"message": "The URL host resolves to a private, loopback, link-local or metadata address."
},
"requestId": "c8e2c6e4-80dd-4ffc-9d66-4e31bf64c6b8"
}{
"success": false,
"error": {
"code": "AUTHENTICATION_UNAVAILABLE",
"message": "Authentication is temporarily unavailable"
},
"requestId": "c8e2c6e4-80dd-4ffc-9d66-4e31bf64c6b8"
}Create a webhook endpoint
Registers an HTTPS endpoint for the event types you choose. The response carries the signing secret once: store it to verify the Centaur-Signature header of each delivery. An account can have at most five endpoints.
curl --request POST \
--url https://api.centaur.io/v1/webhooks \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"url": "<string>",
"eventTypes": [],
"description": "<string>",
"filters": {
"traderIds": [
123
],
"sourceIdentityIds": [
"<string>"
],
"assetIds": [
123
],
"assetClasses": []
},
"maxInFlight": 25
}
'import requests
url = "https://api.centaur.io/v1/webhooks"
payload = {
"url": "<string>",
"eventTypes": [],
"description": "<string>",
"filters": {
"traderIds": [123],
"sourceIdentityIds": ["<string>"],
"assetIds": [123],
"assetClasses": []
},
"maxInFlight": 25
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: '<string>',
eventTypes: [],
description: '<string>',
filters: {
traderIds: [123],
sourceIdentityIds: ['<string>'],
assetIds: [123],
assetClasses: []
},
maxInFlight: 25
})
};
fetch('https://api.centaur.io/v1/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://api.centaur.io/v1/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => '<string>',
'eventTypes' => [
],
'description' => '<string>',
'filters' => [
'traderIds' => [
123
],
'sourceIdentityIds' => [
'<string>'
],
'assetIds' => [
123
],
'assetClasses' => [
]
],
'maxInFlight' => 25
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.centaur.io/v1/webhooks"
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"eventTypes\": [],\n \"description\": \"<string>\",\n \"filters\": {\n \"traderIds\": [\n 123\n ],\n \"sourceIdentityIds\": [\n \"<string>\"\n ],\n \"assetIds\": [\n 123\n ],\n \"assetClasses\": []\n },\n \"maxInFlight\": 25\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.centaur.io/v1/webhooks")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"eventTypes\": [],\n \"description\": \"<string>\",\n \"filters\": {\n \"traderIds\": [\n 123\n ],\n \"sourceIdentityIds\": [\n \"<string>\"\n ],\n \"assetIds\": [\n 123\n ],\n \"assetClasses\": []\n },\n \"maxInFlight\": 25\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.centaur.io/v1/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"<string>\",\n \"eventTypes\": [],\n \"description\": \"<string>\",\n \"filters\": {\n \"traderIds\": [\n 123\n ],\n \"sourceIdentityIds\": [\n \"<string>\"\n ],\n \"assetIds\": [\n 123\n ],\n \"assetClasses\": []\n },\n \"maxInFlight\": 25\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "3f0c8a52-6a7e-4d0b-9b5e-2f1c7d9e4a10",
"url": "https://hooks.example.com/centaur",
"description": "Production trade alerts",
"eventTypes": [
"trade_event.created",
"feed_item.created",
"feed_item.updated"
],
"filters": {
"traderIds": [
7
],
"assetClasses": [
"crypto"
]
},
"status": "ACTIVE",
"statusChangedAt": "2026-10-05T10:00:00.000Z",
"disabledReason": null,
"maxInFlight": 5,
"consecutiveFailures": 0,
"lastSuccessAt": null,
"lastFailureAt": null,
"lastSequence": 0,
"secretRotatedAt": null,
"previousSecretExpiresAt": null,
"createdAt": "2026-10-05T10:00:00.000Z",
"updatedAt": "2026-10-05T10:00:00.000Z",
"secret": "whsec_AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8"
},
"requestId": "c8e2c6e4-80dd-4ffc-9d66-4e31bf64c6b8"
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Unauthorized"
},
"requestId": "c8e2c6e4-80dd-4ffc-9d66-4e31bf64c6b8"
}{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "API key lacks webhooks.manage permission"
},
"requestId": "c8e2c6e4-80dd-4ffc-9d66-4e31bf64c6b8"
}{
"success": false,
"error": {
"code": "ENDPOINT_LIMIT_REACHED",
"message": "A partner can have at most 5 webhook endpoints. Delete one first."
},
"requestId": "c8e2c6e4-80dd-4ffc-9d66-4e31bf64c6b8"
}{
"success": false,
"error": {
"code": "UNSAFE_URL",
"message": "The URL host resolves to a private, loopback, link-local or metadata address."
},
"requestId": "c8e2c6e4-80dd-4ffc-9d66-4e31bf64c6b8"
}{
"success": false,
"error": {
"code": "AUTHENTICATION_UNAVAILABLE",
"message": "Authentication is temporarily unavailable"
},
"requestId": "c8e2c6e4-80dd-4ffc-9d66-4e31bf64c6b8"
}Authorizations
API key issued by Centaur.
Body
A new webhook endpoint.
HTTPS URL that receives deliveries as signed POST requests. Its host must be public: a host that is or resolves to a private, loopback, link-local or cloud metadata address is rejected, and URLs with a username or password are rejected.
2048Event types the endpoint subscribes to. At least one, no duplicates.
1trade_event.created, trade_event.deleted, feed_item.created, feed_item.updated, feed_item.deleted, positioning.trending.updated, positioning.specialist_ideas.updated, positioning.early_opportunities.updated, positioning.crowd_fade.updated, positioning.smart_money.updated, positioning.leaders_book.updated Your label for the endpoint. Display only.
256Subscription filters. Omit for no filtering. Applies to trade_event.* and feed_item.* deliveries only.
Show child attributes
Show child attributes
Maximum deliveries sent to this endpoint at the same time, 1 to 50. Defaults to 5.
1 <= x <= 50