curl --request GET \
--url https://hip4-api.totalis.trade/v1/partner/webhook-events \
--header 'Authorization: Bearer <token>'import requests
url = "https://hip4-api.totalis.trade/v1/partner/webhook-events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://hip4-api.totalis.trade/v1/partner/webhook-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://hip4-api.totalis.trade/v1/partner/webhook-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 => [
"Authorization: Bearer <token>"
],
]);
$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://hip4-api.totalis.trade/v1/partner/webhook-events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://hip4-api.totalis.trade/v1/partner/webhook-events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hip4-api.totalis.trade/v1/partner/webhook-events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"events": [
{
"event": {
"id": "settle_7a3c9e1f00000000000000000000000000000000000000000000000000000001",
"type": "position.settled",
"created_at": "2026-11-13T09:12:40Z",
"data": {
"position_id": "0x7a3c9e1f00000000000000000000000000000000000000000000000000000001",
"owner": "0x1111111111111111111111111111111111111111",
"legs": [
{
"outcome_id": "1201",
"side": "YES"
}
],
"settlement_kind": "WIN",
"stake": "24962500",
"payout": "61000000",
"settled_amount": "61000000",
"credited": "24962500",
"claimable": "36037500",
"claim_fee": "540562",
"share_bps": 2000,
"time": "2026-11-13T09:12:40Z",
"block_number": 22101877,
"log_index": 2,
"transaction_hash": "0x5b0e8d2a00000000000000000000000000000000000000000000000000000003"
}
},
"status": "FAILED",
"attempts": 8,
"queued_at": "2026-11-13T09:12:43.118Z",
"delivered_at": null
},
{
"event": {
"id": "balance_01933a5e-6f1c-7c3a-9b1e-2f4d5c6b7a81",
"type": "balance.updated",
"created_at": "2026-11-13T09:12:41.020Z",
"data": {
"account": "0x1111111111111111111111111111111111111111",
"state": "CURRENT",
"amount": "61000000",
"block_number": "22101878",
"wallet_usdc": "0",
"vault_cash": "24962500",
"run_off_cash": "0",
"open_positions": 0,
"open_cost": "0",
"claimable_profit": "35496938",
"checkpoint": {
"block_number": "22101878",
"projection_state": "CURRENT"
}
}
},
"status": "DELIVERED",
"attempts": 1,
"queued_at": "2026-11-13T09:12:43.120Z",
"delivered_at": "2026-11-13T09:12:43.402Z"
}
],
"next_cursor": "v1:812:balance_01933a5e-6f1c-7c3a-9b1e-2f4d5c6b7a81",
"has_more": false
}{
"error": {
"code": "INVALID_QUERY",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "NEVER"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "NEVER"
}
}{
"error": {
"code": "FORBIDDEN",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "NEVER"
}
}{
"error": {
"code": "RATE_LIMITED",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "BACKOFF"
}
}{
"error": {
"code": "AUTHORIZATION_UNAVAILABLE",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "BACKOFF"
}
}List webhook events
Every webhook event Totalis queued for you in the last 30 days, delivered or not, in the order it queued them, each with the body it posts and how its delivery stands, so you can recover events your endpoint missed.
Requires your partner server key (tpk_), sent from your server with no Origin; an API key cannot call it.
curl --request GET \
--url https://hip4-api.totalis.trade/v1/partner/webhook-events \
--header 'Authorization: Bearer <token>'import requests
url = "https://hip4-api.totalis.trade/v1/partner/webhook-events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://hip4-api.totalis.trade/v1/partner/webhook-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://hip4-api.totalis.trade/v1/partner/webhook-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 => [
"Authorization: Bearer <token>"
],
]);
$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://hip4-api.totalis.trade/v1/partner/webhook-events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://hip4-api.totalis.trade/v1/partner/webhook-events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hip4-api.totalis.trade/v1/partner/webhook-events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"events": [
{
"event": {
"id": "settle_7a3c9e1f00000000000000000000000000000000000000000000000000000001",
"type": "position.settled",
"created_at": "2026-11-13T09:12:40Z",
"data": {
"position_id": "0x7a3c9e1f00000000000000000000000000000000000000000000000000000001",
"owner": "0x1111111111111111111111111111111111111111",
"legs": [
{
"outcome_id": "1201",
"side": "YES"
}
],
"settlement_kind": "WIN",
"stake": "24962500",
"payout": "61000000",
"settled_amount": "61000000",
"credited": "24962500",
"claimable": "36037500",
"claim_fee": "540562",
"share_bps": 2000,
"time": "2026-11-13T09:12:40Z",
"block_number": 22101877,
"log_index": 2,
"transaction_hash": "0x5b0e8d2a00000000000000000000000000000000000000000000000000000003"
}
},
"status": "FAILED",
"attempts": 8,
"queued_at": "2026-11-13T09:12:43.118Z",
"delivered_at": null
},
{
"event": {
"id": "balance_01933a5e-6f1c-7c3a-9b1e-2f4d5c6b7a81",
"type": "balance.updated",
"created_at": "2026-11-13T09:12:41.020Z",
"data": {
"account": "0x1111111111111111111111111111111111111111",
"state": "CURRENT",
"amount": "61000000",
"block_number": "22101878",
"wallet_usdc": "0",
"vault_cash": "24962500",
"run_off_cash": "0",
"open_positions": 0,
"open_cost": "0",
"claimable_profit": "35496938",
"checkpoint": {
"block_number": "22101878",
"projection_state": "CURRENT"
}
}
},
"status": "DELIVERED",
"attempts": 1,
"queued_at": "2026-11-13T09:12:43.120Z",
"delivered_at": "2026-11-13T09:12:43.402Z"
}
],
"next_cursor": "v1:812:balance_01933a5e-6f1c-7c3a-9b1e-2f4d5c6b7a81",
"has_more": false
}{
"error": {
"code": "INVALID_QUERY",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "NEVER"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "NEVER"
}
}{
"error": {
"code": "FORBIDDEN",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "NEVER"
}
}{
"error": {
"code": "RATE_LIMITED",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "BACKOFF"
}
}{
"error": {
"code": "AUTHORIZATION_UNAVAILABLE",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "BACKOFF"
}
}Authorizations
Partner server key (tpk_...), issued by Totalis to a registered partner. It calls only POST /v1/partner/wallet-admissions, GET /v1/partner/report, GET /v1/partner/fills, GET /v1/partner/webhook-events and GET /v1/partner/accounts/{wallet}/account-value, from the partner's server with no Origin. It reads the value of an account the partner admitted but cannot act for an account. Never ship it to a browser: pages use the publishable browser key (X-Totalis-Partner: tpb_...), which labels traffic but authorizes nothing.
Query Parameters
Response
A page of your webhook events. No caching.
Was this page helpful?

