curl --request POST \
--url https://api.agentsfleet.net/v1/auth/identity-events/clerk \
--header 'Content-Type: application/json' \
--header 'svix-id: <svix-id>' \
--header 'svix-signature: <svix-signature>' \
--header 'svix-timestamp: <svix-timestamp>' \
--data '
{
"type": "<string>",
"data": {}
}
'import requests
url = "https://api.agentsfleet.net/v1/auth/identity-events/clerk"
payload = {
"type": "<string>",
"data": {}
}
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({type: '<string>', data: {}})
};
fetch('https://api.agentsfleet.net/v1/auth/identity-events/clerk', 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/auth/identity-events/clerk",
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([
'type' => '<string>',
'data' => [
]
]),
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/auth/identity-events/clerk"
payload := strings.NewReader("{\n \"type\": \"<string>\",\n \"data\": {}\n}")
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/auth/identity-events/clerk")
.header("svix-id", "<svix-id>")
.header("svix-timestamp", "<svix-timestamp>")
.header("svix-signature", "<svix-signature>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"<string>\",\n \"data\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agentsfleet.net/v1/auth/identity-events/clerk")
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 = "{\n \"type\": \"<string>\",\n \"data\": {}\n}"
response = http.request(request)
puts response.read_body{
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_name": "<string>",
"created": true,
"deleted": true,
"status": "<string>",
"type": "<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>"
}{
"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>"
}Receive a Clerk account event
Receives signed account events from Clerk. A user.created event creates the user’s account and default workspace.
Repeated events return created:false. Unsupported event types return 200 with status: ignored.
curl --request POST \
--url https://api.agentsfleet.net/v1/auth/identity-events/clerk \
--header 'Content-Type: application/json' \
--header 'svix-id: <svix-id>' \
--header 'svix-signature: <svix-signature>' \
--header 'svix-timestamp: <svix-timestamp>' \
--data '
{
"type": "<string>",
"data": {}
}
'import requests
url = "https://api.agentsfleet.net/v1/auth/identity-events/clerk"
payload = {
"type": "<string>",
"data": {}
}
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({type: '<string>', data: {}})
};
fetch('https://api.agentsfleet.net/v1/auth/identity-events/clerk', 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/auth/identity-events/clerk",
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([
'type' => '<string>',
'data' => [
]
]),
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/auth/identity-events/clerk"
payload := strings.NewReader("{\n \"type\": \"<string>\",\n \"data\": {}\n}")
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/auth/identity-events/clerk")
.header("svix-id", "<svix-id>")
.header("svix-timestamp", "<svix-timestamp>")
.header("svix-signature", "<svix-signature>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"<string>\",\n \"data\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agentsfleet.net/v1/auth/identity-events/clerk")
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 = "{\n \"type\": \"<string>\",\n \"data\": {}\n}"
response = http.request(request)
puts response.read_body{
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_name": "<string>",
"created": true,
"deleted": true,
"status": "<string>",
"type": "<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>"
}{
"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 v1 signatures.
Body
Response
Handled. Shape depends on event type: user.created → {workspace_id, workspace_name, created}; user.deleted → {deleted}; any other type → {status: ignored, type}.
New or existing default workspace identifier.
Heroku-style workspace name, e.g. jolly-harbor-482.
true on fresh bootstrap; false on idempotent replay.
true on a user.deleted event.
ignored for event types other than user.created/user.deleted.
Echoed Clerk event type on ignored events.