Bulk-subscribe from your 15-day call history
curl --request POST \
--url https://www.serializedaudit.io/api/subscriptions/import-history \
--header 'X-Auth-Key: <api-key>'import requests
url = "https://www.serializedaudit.io/api/subscriptions/import-history"
headers = {"X-Auth-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-Auth-Key': '<api-key>'}};
fetch('https://www.serializedaudit.io/api/subscriptions/import-history', 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://www.serializedaudit.io/api/subscriptions/import-history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-Auth-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"
"net/http"
"io"
)
func main() {
url := "https://www.serializedaudit.io/api/subscriptions/import-history"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Auth-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.serializedaudit.io/api/subscriptions/import-history")
.header("X-Auth-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.serializedaudit.io/api/subscriptions/import-history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Auth-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"dry_run": true,
"window_days": 123,
"current_version_only": true,
"would_subscribe": 123,
"credits_per_token": 123,
"credits_required": 123,
"confirm_required": true,
"hint": "<string>"
}{
"error": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"error": "<string>",
"action": "wait"
}{
"error": "<string>",
"action": "wait"
}API Reference
Bulk-subscribe from your 15-day call history
Subscribe every token you’ve called in the last 15 days whose audit is already at the current prompt version (old-version tokens are skipped so no re-audit wave is triggered). Two-step: a bare POST is a DRY-RUN quote (creates/charges nothing); re-POST with ?confirm=true to subscribe and be charged. Cap-gated on confirm.
POST
/
subscriptions
/
import-history
Bulk-subscribe from your 15-day call history
curl --request POST \
--url https://www.serializedaudit.io/api/subscriptions/import-history \
--header 'X-Auth-Key: <api-key>'import requests
url = "https://www.serializedaudit.io/api/subscriptions/import-history"
headers = {"X-Auth-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-Auth-Key': '<api-key>'}};
fetch('https://www.serializedaudit.io/api/subscriptions/import-history', 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://www.serializedaudit.io/api/subscriptions/import-history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-Auth-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"
"net/http"
"io"
)
func main() {
url := "https://www.serializedaudit.io/api/subscriptions/import-history"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Auth-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.serializedaudit.io/api/subscriptions/import-history")
.header("X-Auth-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.serializedaudit.io/api/subscriptions/import-history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Auth-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"dry_run": true,
"window_days": 123,
"current_version_only": true,
"would_subscribe": 123,
"credits_per_token": 123,
"credits_required": 123,
"confirm_required": true,
"hint": "<string>"
}{
"error": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"error": "<string>",
"action": "wait"
}{
"error": "<string>",
"action": "wait"
}Authorizations
Your secret API key. Create one from your dashboard.
Query Parameters
true = actually subscribe + charge; otherwise a dry-run quote.
Available options:
true, false