Receive a signed Svix event
curl --request POST \
--url https://api.agentsfleet.net/v1/webhooks/svix/{fleet_id} \
--header 'Content-Type: application/json' \
--header 'svix-id: <svix-id>' \
--header 'svix-signature: <svix-signature>' \
--header 'svix-timestamp: <svix-timestamp>' \
--data '{}'import requests
url = "https://api.agentsfleet.net/v1/webhooks/svix/{fleet_id}"
payload = {}
headers = {
"svix-id": "<svix-id>",
"svix-timestamp": "<svix-timestamp>",
"svix-signature": "<svix-signature>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'svix-id': '<svix-id>',
'svix-timestamp': '<svix-timestamp>',
'svix-signature': '<svix-signature>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://api.agentsfleet.net/v1/webhooks/svix/{fleet_id}', 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.agentsfleet.net/v1/webhooks/svix/{fleet_id}",
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([
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"svix-id: <svix-id>",
"svix-signature: <svix-signature>",
"svix-timestamp: <svix-timestamp>"
],
]);
$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.agentsfleet.net/v1/webhooks/svix/{fleet_id}"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("svix-id", "<svix-id>")
req.Header.Add("svix-timestamp", "<svix-timestamp>")
req.Header.Add("svix-signature", "<svix-signature>")
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.agentsfleet.net/v1/webhooks/svix/{fleet_id}")
.header("svix-id", "<svix-id>")
.header("svix-timestamp", "<svix-timestamp>")
.header("svix-signature", "<svix-signature>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agentsfleet.net/v1/webhooks/svix/{fleet_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["svix-id"] = '<svix-id>'
request["svix-timestamp"] = '<svix-timestamp>'
request["svix-signature"] = '<svix-signature>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"ignored": "<string>"
}{
"status": "accepted"
}{
"docs_uri": "https://docs.agentsfleet.net/api-reference/error-codes#UZ-AGT-009",
"title": "Fleet not found",
"detail": "No fleet with id 'abc123' in this workspace.",
"error_code": "UZ-AGT-009",
"request_id": "<string>",
"current_state": "paused",
"user_message": "We couldn't find that Fleet. It may have been deleted, or the ID doesn't match one in this workspace.",
"etag": "<string>"
}{
"docs_uri": "https://docs.agentsfleet.net/api-reference/error-codes#UZ-AGT-009",
"title": "Fleet not found",
"detail": "No fleet with id 'abc123' in this workspace.",
"error_code": "UZ-AGT-009",
"request_id": "<string>",
"current_state": "paused",
"user_message": "We couldn't find that Fleet. It may have been deleted, or the ID doesn't match one in this workspace.",
"etag": "<string>"
}{
"docs_uri": "https://docs.agentsfleet.net/api-reference/error-codes#UZ-AGT-009",
"title": "Fleet not found",
"detail": "No fleet with id 'abc123' in this workspace.",
"error_code": "UZ-AGT-009",
"request_id": "<string>",
"current_state": "paused",
"user_message": "We couldn't find that Fleet. It may have been deleted, or the ID doesn't match one in this workspace.",
"etag": "<string>"
}Webhooks
Receive a signed Svix event
Receives a signed Svix event for one fleet. A valid new event returns 202.
A duplicate or an event for a paused fleet returns 200.
POST
/
v1
/
webhooks
/
svix
/
{fleet_id}
Receive a signed Svix event
curl --request POST \
--url https://api.agentsfleet.net/v1/webhooks/svix/{fleet_id} \
--header 'Content-Type: application/json' \
--header 'svix-id: <svix-id>' \
--header 'svix-signature: <svix-signature>' \
--header 'svix-timestamp: <svix-timestamp>' \
--data '{}'import requests
url = "https://api.agentsfleet.net/v1/webhooks/svix/{fleet_id}"
payload = {}
headers = {
"svix-id": "<svix-id>",
"svix-timestamp": "<svix-timestamp>",
"svix-signature": "<svix-signature>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'svix-id': '<svix-id>',
'svix-timestamp': '<svix-timestamp>',
'svix-signature': '<svix-signature>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://api.agentsfleet.net/v1/webhooks/svix/{fleet_id}', 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.agentsfleet.net/v1/webhooks/svix/{fleet_id}",
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([
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"svix-id: <svix-id>",
"svix-signature: <svix-signature>",
"svix-timestamp: <svix-timestamp>"
],
]);
$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.agentsfleet.net/v1/webhooks/svix/{fleet_id}"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("svix-id", "<svix-id>")
req.Header.Add("svix-timestamp", "<svix-timestamp>")
req.Header.Add("svix-signature", "<svix-signature>")
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.agentsfleet.net/v1/webhooks/svix/{fleet_id}")
.header("svix-id", "<svix-id>")
.header("svix-timestamp", "<svix-timestamp>")
.header("svix-signature", "<svix-signature>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agentsfleet.net/v1/webhooks/svix/{fleet_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["svix-id"] = '<svix-id>'
request["svix-timestamp"] = '<svix-timestamp>'
request["svix-signature"] = '<svix-signature>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"ignored": "<string>"
}{
"status": "accepted"
}{
"docs_uri": "https://docs.agentsfleet.net/api-reference/error-codes#UZ-AGT-009",
"title": "Fleet not found",
"detail": "No fleet with id 'abc123' in this workspace.",
"error_code": "UZ-AGT-009",
"request_id": "<string>",
"current_state": "paused",
"user_message": "We couldn't find that Fleet. It may have been deleted, or the ID doesn't match one in this workspace.",
"etag": "<string>"
}{
"docs_uri": "https://docs.agentsfleet.net/api-reference/error-codes#UZ-AGT-009",
"title": "Fleet not found",
"detail": "No fleet with id 'abc123' in this workspace.",
"error_code": "UZ-AGT-009",
"request_id": "<string>",
"current_state": "paused",
"user_message": "We couldn't find that Fleet. It may have been deleted, or the ID doesn't match one in this workspace.",
"etag": "<string>"
}{
"docs_uri": "https://docs.agentsfleet.net/api-reference/error-codes#UZ-AGT-009",
"title": "Fleet not found",
"detail": "No fleet with id 'abc123' in this workspace.",
"error_code": "UZ-AGT-009",
"request_id": "<string>",
"current_state": "paused",
"user_message": "We couldn't find that Fleet. It may have been deleted, or the ID doesn't match one in this workspace.",
"etag": "<string>"
}Headers
Svix message identifier (used for deduplication and signature binding).
Unix timestamp of the Svix delivery (used for replay protection).
Space-separated list of Svix signatures (v1 scheme).
Path Parameters
UUIDv7 of the fleet receiving the webhook.
Body
application/json
Opaque event envelope; upstream issuer (Svix) defines the payload shape per event type.
⌘I