curl --request POST \
--url https://api.promptguard.co/api/v1/fleet/device-certificate \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"csr": "<string>",
"os_user": "<string>",
"crl_distribution_point": "<string>"
}
'import requests
url = "https://api.promptguard.co/api/v1/fleet/device-certificate"
payload = {
"csr": "<string>",
"os_user": "<string>",
"crl_distribution_point": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({csr: '<string>', os_user: '<string>', crl_distribution_point: '<string>'})
};
fetch('https://api.promptguard.co/api/v1/fleet/device-certificate', 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.promptguard.co/api/v1/fleet/device-certificate",
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([
'csr' => '<string>',
'os_user' => '<string>',
'crl_distribution_point' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.promptguard.co/api/v1/fleet/device-certificate"
payload := strings.NewReader("{\n \"csr\": \"<string>\",\n \"os_user\": \"<string>\",\n \"crl_distribution_point\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.promptguard.co/api/v1/fleet/device-certificate")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"csr\": \"<string>\",\n \"os_user\": \"<string>\",\n \"crl_distribution_point\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.promptguard.co/api/v1/fleet/device-certificate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"csr\": \"<string>\",\n \"os_user\": \"<string>\",\n \"crl_distribution_point\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"certificate": "-----BEGIN CERTIFICATE-----\nMIIC...\n-----END CERTIFICATE-----\n",
"serial": "4c1d9f0b7a2e5c3d8e6f1a0b9c8d7e6f5a4b3c2d",
"not_before": "2026-11-14T09:00:00Z",
"not_after": "2026-11-21T10:00:00Z",
"renew_after": "2026-11-17T21:30:00Z",
"permitted_dns_names": [
"api.anthropic.com",
"api.openai.com",
"claude.ai"
],
"root": {
"id": "6a0f2a8e-3c47-4f0e-9b4a-2d6c1e8f7a35",
"certificate": "-----BEGIN CERTIFICATE-----\nMIIB...\n-----END CERTIFICATE-----\n",
"fingerprint_sha256": "9f2c4b7d1e3a5c8f0b2d4e6a8c0e2f4a6b8d0f2a4c6e8b0d2f4a6c8e0b2d4f6a"
},
"revocation_list": {
"crl": "MIIBKjCB0QIBATAKBggqhkjOPQQDAjA9...",
"this_update": "2026-11-14T09:00:00Z",
"next_update": "2026-11-21T10:00:00Z",
"distribution_point": "http://127.0.0.1:47811/pgshadow-org-3f9a1c0e5b7d2a64.crl"
}
}Issue Device Certificate
Issue this device its Shadow Device certificate, or return its live one again.
A short-lived, name-constrained CA under the Organization’s active
Organisation root, for the device key in csr, with the root’s empty
revocation list for exactly its life (Shadow ADR-0016). Refused once the
Device is revoked (ADR-0007). The contract, every refusal and what the
agent does on each: docs/04_engineering/reference/SHADOW_DEVICE_CERTIFICATES.md.
Guide: Enroll your team’s devices
curl --request POST \
--url https://api.promptguard.co/api/v1/fleet/device-certificate \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"csr": "<string>",
"os_user": "<string>",
"crl_distribution_point": "<string>"
}
'import requests
url = "https://api.promptguard.co/api/v1/fleet/device-certificate"
payload = {
"csr": "<string>",
"os_user": "<string>",
"crl_distribution_point": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({csr: '<string>', os_user: '<string>', crl_distribution_point: '<string>'})
};
fetch('https://api.promptguard.co/api/v1/fleet/device-certificate', 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.promptguard.co/api/v1/fleet/device-certificate",
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([
'csr' => '<string>',
'os_user' => '<string>',
'crl_distribution_point' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.promptguard.co/api/v1/fleet/device-certificate"
payload := strings.NewReader("{\n \"csr\": \"<string>\",\n \"os_user\": \"<string>\",\n \"crl_distribution_point\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.promptguard.co/api/v1/fleet/device-certificate")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"csr\": \"<string>\",\n \"os_user\": \"<string>\",\n \"crl_distribution_point\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.promptguard.co/api/v1/fleet/device-certificate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"csr\": \"<string>\",\n \"os_user\": \"<string>\",\n \"crl_distribution_point\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"certificate": "-----BEGIN CERTIFICATE-----\nMIIC...\n-----END CERTIFICATE-----\n",
"serial": "4c1d9f0b7a2e5c3d8e6f1a0b9c8d7e6f5a4b3c2d",
"not_before": "2026-11-14T09:00:00Z",
"not_after": "2026-11-21T10:00:00Z",
"renew_after": "2026-11-17T21:30:00Z",
"permitted_dns_names": [
"api.anthropic.com",
"api.openai.com",
"claude.ai"
],
"root": {
"id": "6a0f2a8e-3c47-4f0e-9b4a-2d6c1e8f7a35",
"certificate": "-----BEGIN CERTIFICATE-----\nMIIB...\n-----END CERTIFICATE-----\n",
"fingerprint_sha256": "9f2c4b7d1e3a5c8f0b2d4e6a8c0e2f4a6b8d0f2a4c6e8b0d2f4a6c8e0b2d4f6a"
},
"revocation_list": {
"crl": "MIIBKjCB0QIBATAKBggqhkjOPQQDAjA9...",
"this_update": "2026-11-14T09:00:00Z",
"next_update": "2026-11-21T10:00:00Z",
"distribution_point": "http://127.0.0.1:47811/pgshadow-org-3f9a1c0e5b7d2a64.crl"
}
}Authorizations
Body
A Device asks for its certificate. Unknown fields are refused, not ignored.
Where the agent serves the returned revocation list: http://127.0.0.1:/.crl or http://[::1]:/.crl
160Response
The live certificate again: its CSR was sent before
A Device certificate, the root it chains to and the list that says it is not revoked.