curl --request POST \
--url https://api.fixaeo.com/api/public/v1/agents/ingest/vercel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"id": "<string>",
"host": "<string>",
"timestamp": 123,
"proxy": {
"timestamp": 123,
"method": "<string>",
"host": "<string>",
"path": "<string>",
"userAgent": [
"<string>"
],
"referer": "<string>",
"region": "<string>",
"statusCode": 123,
"clientIp": "<string>"
}
}
]
'import requests
url = "https://api.fixaeo.com/api/public/v1/agents/ingest/vercel"
payload = [
{
"id": "<string>",
"host": "<string>",
"timestamp": 123,
"proxy": {
"timestamp": 123,
"method": "<string>",
"host": "<string>",
"path": "<string>",
"userAgent": ["<string>"],
"referer": "<string>",
"region": "<string>",
"statusCode": 123,
"clientIp": "<string>"
}
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
id: '<string>',
host: '<string>',
timestamp: 123,
proxy: {
timestamp: 123,
method: '<string>',
host: '<string>',
path: '<string>',
userAgent: ['<string>'],
referer: '<string>',
region: '<string>',
statusCode: 123,
clientIp: '<string>'
}
}
])
};
fetch('https://api.fixaeo.com/api/public/v1/agents/ingest/vercel', 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.fixaeo.com/api/public/v1/agents/ingest/vercel",
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([
[
'id' => '<string>',
'host' => '<string>',
'timestamp' => 123,
'proxy' => [
'timestamp' => 123,
'method' => '<string>',
'host' => '<string>',
'path' => '<string>',
'userAgent' => [
'<string>'
],
'referer' => '<string>',
'region' => '<string>',
'statusCode' => 123,
'clientIp' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.fixaeo.com/api/public/v1/agents/ingest/vercel"
payload := strings.NewReader("[\n {\n \"id\": \"<string>\",\n \"host\": \"<string>\",\n \"timestamp\": 123,\n \"proxy\": {\n \"timestamp\": 123,\n \"method\": \"<string>\",\n \"host\": \"<string>\",\n \"path\": \"<string>\",\n \"userAgent\": [\n \"<string>\"\n ],\n \"referer\": \"<string>\",\n \"region\": \"<string>\",\n \"statusCode\": 123,\n \"clientIp\": \"<string>\"\n }\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.fixaeo.com/api/public/v1/agents/ingest/vercel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"id\": \"<string>\",\n \"host\": \"<string>\",\n \"timestamp\": 123,\n \"proxy\": {\n \"timestamp\": 123,\n \"method\": \"<string>\",\n \"host\": \"<string>\",\n \"path\": \"<string>\",\n \"userAgent\": [\n \"<string>\"\n ],\n \"referer\": \"<string>\",\n \"region\": \"<string>\",\n \"statusCode\": 123,\n \"clientIp\": \"<string>\"\n }\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fixaeo.com/api/public/v1/agents/ingest/vercel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"id\": \"<string>\",\n \"host\": \"<string>\",\n \"timestamp\": 123,\n \"proxy\": {\n \"timestamp\": 123,\n \"method\": \"<string>\",\n \"host\": \"<string>\",\n \"path\": \"<string>\",\n \"userAgent\": [\n \"<string>\"\n ],\n \"referer\": \"<string>\",\n \"region\": \"<string>\",\n \"statusCode\": 123,\n \"clientIp\": \"<string>\"\n }\n }\n]"
response = http.request(request)
puts response.read_body{
"accepted": 123,
"scanned": 123,
"skipped": 123,
"monthly_used": 123,
"monthly_cap": 123
}Ingest a Vercel Drain delivery
Receives a Vercel Drain (formerly “Log Drain”) delivery in VERCEL’S OWN format, so a Vercel-hosted customer needs no code: they paste this URL into a drain and add one Authorization: Bearer <api-key> custom header. We translate, classify the User-Agent through the same catalog the JS beacon uses, and store recognised AI-crawler requests with channel=vercel.
Accepts both delivery encodings — a JSON array or NDJSON — sniffed from the body rather than from Content-Type, which Vercel does not guarantee; gzip is detected by magic bytes. Records without a proxy object (build output, function stdout, and the sample events Vercel posts when the drain is created) are counted as skipped, not errors.
DELIBERATELY FORGIVING: a delivery we cannot parse, or one we fail to persist, still returns 200. Vercel publishes no retry policy and flags a drain (emailing the customer that the endpoint is broken) past 80% failed deliveries. Only a bad token, a foreign site_id, a signature mismatch or a spent quota return a non-2xx.
Requires the Growth plan or higher and is metered against the same monthly server-log event cap as /agents/ingest.
curl --request POST \
--url https://api.fixaeo.com/api/public/v1/agents/ingest/vercel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"id": "<string>",
"host": "<string>",
"timestamp": 123,
"proxy": {
"timestamp": 123,
"method": "<string>",
"host": "<string>",
"path": "<string>",
"userAgent": [
"<string>"
],
"referer": "<string>",
"region": "<string>",
"statusCode": 123,
"clientIp": "<string>"
}
}
]
'import requests
url = "https://api.fixaeo.com/api/public/v1/agents/ingest/vercel"
payload = [
{
"id": "<string>",
"host": "<string>",
"timestamp": 123,
"proxy": {
"timestamp": 123,
"method": "<string>",
"host": "<string>",
"path": "<string>",
"userAgent": ["<string>"],
"referer": "<string>",
"region": "<string>",
"statusCode": 123,
"clientIp": "<string>"
}
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
id: '<string>',
host: '<string>',
timestamp: 123,
proxy: {
timestamp: 123,
method: '<string>',
host: '<string>',
path: '<string>',
userAgent: ['<string>'],
referer: '<string>',
region: '<string>',
statusCode: 123,
clientIp: '<string>'
}
}
])
};
fetch('https://api.fixaeo.com/api/public/v1/agents/ingest/vercel', 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.fixaeo.com/api/public/v1/agents/ingest/vercel",
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([
[
'id' => '<string>',
'host' => '<string>',
'timestamp' => 123,
'proxy' => [
'timestamp' => 123,
'method' => '<string>',
'host' => '<string>',
'path' => '<string>',
'userAgent' => [
'<string>'
],
'referer' => '<string>',
'region' => '<string>',
'statusCode' => 123,
'clientIp' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.fixaeo.com/api/public/v1/agents/ingest/vercel"
payload := strings.NewReader("[\n {\n \"id\": \"<string>\",\n \"host\": \"<string>\",\n \"timestamp\": 123,\n \"proxy\": {\n \"timestamp\": 123,\n \"method\": \"<string>\",\n \"host\": \"<string>\",\n \"path\": \"<string>\",\n \"userAgent\": [\n \"<string>\"\n ],\n \"referer\": \"<string>\",\n \"region\": \"<string>\",\n \"statusCode\": 123,\n \"clientIp\": \"<string>\"\n }\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.fixaeo.com/api/public/v1/agents/ingest/vercel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"id\": \"<string>\",\n \"host\": \"<string>\",\n \"timestamp\": 123,\n \"proxy\": {\n \"timestamp\": 123,\n \"method\": \"<string>\",\n \"host\": \"<string>\",\n \"path\": \"<string>\",\n \"userAgent\": [\n \"<string>\"\n ],\n \"referer\": \"<string>\",\n \"region\": \"<string>\",\n \"statusCode\": 123,\n \"clientIp\": \"<string>\"\n }\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fixaeo.com/api/public/v1/agents/ingest/vercel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"id\": \"<string>\",\n \"host\": \"<string>\",\n \"timestamp\": 123,\n \"proxy\": {\n \"timestamp\": 123,\n \"method\": \"<string>\",\n \"host\": \"<string>\",\n \"path\": \"<string>\",\n \"userAgent\": [\n \"<string>\"\n ],\n \"referer\": \"<string>\",\n \"region\": \"<string>\",\n \"statusCode\": 123,\n \"clientIp\": \"<string>\"\n }\n }\n]"
response = http.request(request)
puts response.read_body{
"accepted": 123,
"scanned": 123,
"skipped": 123,
"monthly_used": 123,
"monthly_cap": 123
}Authorizations
API keys generated via POST /api/v1/me/api-keys. Format:
Authorization: Bearer fxa_<32-char-secret>. Only accepted on
/api/public/v1/*. Cookie auth is rejected on that surface.
Headers
Hex HMAC-SHA1 of the raw body using the drain's signing secret. Vercel makes the secret optional; verification is enforced only when a secret has been saved for the brand, and then a missing or mismatched signature is a 403.
Query Parameters
The brand's public site id (the same value used by the JS tag). Ownership-checked against the API key's account. May also be sent as an X-FixAEO-Site header.
Echoed back as x-vercel-verify on every response.