curl --request POST \
--url https://{tenant}.earnie.dev/v1/estate/projects:render-notice \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"project_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"policy_id": 123,
"include": []
}
'import requests
url = "https://{tenant}.earnie.dev/v1/estate/projects:render-notice"
payload = {
"project_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"policy_id": 123,
"include": []
}
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({
project_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
policy_id: 123,
include: []
})
};
fetch('https://{tenant}.earnie.dev/v1/estate/projects:render-notice', 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://{tenant}.earnie.dev/v1/estate/projects:render-notice",
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([
'project_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'policy_id' => 123,
'include' => [
]
]),
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://{tenant}.earnie.dev/v1/estate/projects:render-notice"
payload := strings.NewReader("{\n \"project_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"policy_id\": 123,\n \"include\": []\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://{tenant}.earnie.dev/v1/estate/projects:render-notice")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"project_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"policy_id\": 123,\n \"include\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant}.earnie.dev/v1/estate/projects:render-notice")
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 \"project_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"policy_id\": 123,\n \"include\": []\n}"
response = http.request(request)
puts response.read_body{
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total": 123,
"items": [
{
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "succeeded",
"step": "generate",
"error_code": "<string>",
"error_message": "<string>"
}
]
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}Render a notice file for every selected, eligible project
Queued, with a per-project auto-chain: a selected project with no current SBOM snapshot is first generated, then rendered, as one logical action, reporting which step it reached. render_notice performs a live upstream attribution fetch that MAY fail per project (upstream_unavailable), independent of every other project in the batch.
curl --request POST \
--url https://{tenant}.earnie.dev/v1/estate/projects:render-notice \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"project_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"policy_id": 123,
"include": []
}
'import requests
url = "https://{tenant}.earnie.dev/v1/estate/projects:render-notice"
payload = {
"project_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"policy_id": 123,
"include": []
}
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({
project_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
policy_id: 123,
include: []
})
};
fetch('https://{tenant}.earnie.dev/v1/estate/projects:render-notice', 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://{tenant}.earnie.dev/v1/estate/projects:render-notice",
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([
'project_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'policy_id' => 123,
'include' => [
]
]),
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://{tenant}.earnie.dev/v1/estate/projects:render-notice"
payload := strings.NewReader("{\n \"project_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"policy_id\": 123,\n \"include\": []\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://{tenant}.earnie.dev/v1/estate/projects:render-notice")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"project_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"policy_id\": 123,\n \"include\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant}.earnie.dev/v1/estate/projects:render-notice")
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 \"project_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"policy_id\": 123,\n \"include\": []\n}"
response = http.request(request)
puts response.read_body{
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total": 123,
"items": [
{
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "succeeded",
"step": "generate",
"error_code": "<string>",
"error_message": "<string>"
}
]
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}Authorizations
An Earnie API key, sent as Authorization: Bearer sk_earnie_.... Create one under Settings > API keys. The key's scopes decide which operations it may call.
Body
Shared request body for all four fan-out verbs. project_ids is the caller's explicit selection (checkbox ticks) — never a query or a filter scope, so eligibility is a per-item outcome (skipped), not a reason to reject the request.
The explicitly selected projects, in no particular order.
1The policy to attach. Required by :apply-policy; ignored by the other three verbs.
The sections each snapshot holds: oss (SBOM), crypto (CBOM), ai (AIBOM), all three (xBOM). Read by :generate-sbom only and ignored by the other verbs. Omitted, each snapshot holds the default sections. A section the organization has not enabled or the caller does not see is refused (module_disabled, module_scope_forbidden); an unknown or repeated one is invalid_include.
1oss, crypto, ai Response
The run was accepted; poll GET /v1/estate/actions/{runId}.
A queued fan-out (generate-sbom, render-notice), polled via GET /v1/estate/actions/{runId} until every item leaves pending. There is no run-level success boolean: {3 succeeded, 2 failed} is the whole truth, derived from items — never stored as a summary that a lost write could strand.