Retention Label
by format.halowerk.com in Documents & files
Assign German retention classes to a document inventory from titles or file names (or given types) and label each document with governing norm (§ 147 AO, § 257 HGB, § 14b UStG as of 2025), retention end and deletion date.
https://format.halowerk.com/v1/retention-label- Price
- $0.003
- per call in USDC
- Uptime
- 95.7%
- last 30 days
- Response time
- 117 ms
- 259 ms slowest 5%
- Last check
- Passed
- 13 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://format.halowerk.com/v1/retention-label
Each call costs $0.003 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://format.halowerk.com/v1/retention-label
content-type: application/json
{
"documents": [
{
"date": "2025-03-15",
"id": "DMS-1",
"title": "Eingangsrechnung RE-2025-001"
},
{
"date": "2016-03-31",
"filename": "Kontoauszug_2016-03.pdf",
"id": "DMS-2"
}
]
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
as_of | string | No | |
documents | array of object | Yes | |
institution | boolean | No | Default: false. |
merchant | boolean | No | Default: true. |
Example response
The provider's example. We can't check it without paying.
Example response, 134 lines
{
"limitations": [
"Keyword classification is a tr…",
"Information based on the statu…"
],
"result": {
"as_of": "2026-11-19",
"documents": [
{
"class_name": "Invoices issued or received (R…",
"classification": {
"alternatives": [],
"confidence": "unique",
"matched_terms": [
"rechnung"
],
"method": "keywords"
},
"deletable_on_reference_date": false,
"earliest_deletion": "2034-01-01",
"filename": null,
"governing_law": "AO",
"id": "DMS-1",
"label": "RET-8Y AO147(1)4 HGB257(1)4 US…",
"legal_hold_until": null,
"notes": [
"§ 147 Abs. 3 Satz 5 AO: the pe…"
],
"regimes": [
{
"basis": "shortened period applies",
"earliest_deletion": "2034-01-01",
"law": "AO",
"norm": "§ 147 Abs. 1 Nr. 4, Abs. 3 Sat…",
"retention_end": "2033-12-31",
"source": "https://www.gesetze-im-interne…",
"transition": "Art. 97 § 19a Abs. 2 EGAO",
"years": 8
},
{
"basis": "shortened period applies",
"earliest_deletion": "2034-01-01",
"law": "HGB",
"norm": "§ 257 Abs. 1 Nr. 4, Abs. 4, Ab…",
"retention_end": "2033-12-31",
"source": "https://www.gesetze-im-interne…",
"transition": "Art. 95 EGHGB",
"years": 8
}
],
"retention_end": "2033-12-31",
"retention_years": 8,
"title": "Eingangsrechnung RE-2025-001",
"trigger_date": "2025-03-15",
"trigger_event": "invoice issued",
"type": "invoice"
},
{
"class_name": "Booking vouchers (Buchungsbele…",
"classification": {
"alternatives": [],
"confidence": "unique",
"matched_terms": [
"kontoauszug"
],
"method": "keywords"
},
"deletable_on_reference_date": true,
"earliest_deletion": "2025-01-01",
"filename": "Kontoauszug_2016-03.pdf",
"governing_law": "AO",
"id": "DMS-2",
"label": "RET-8Y AO147(1)4 HGB257(1)4 | …",
"legal_hold_until": null,
"notes": [
"§ 147 Abs. 3 Satz 5 AO: the pe…"
],
"regimes": [
{
"basis": "shortened period applies",
"earliest_deletion": "2025-01-01",
"law": "AO",
"norm": "§ 147 Abs. 1 Nr. 4, Abs. 3 Sat…",
"retention_end": "2024-12-31",
"source": "https://www.gesetze-im-interne…",
"transition": "Art. 97 § 19a Abs. 2 EGAO",
"years": 8
},
{
"basis": "shortened period applies",
"earliest_deletion": "2025-01-01",
"law": "HGB",
"norm": "§ 257 Abs. 1 Nr. 4, Abs. 4, Ab…",
"retention_end": "2024-12-31",
"source": "https://www.gesetze-im-interne…",
"transition": "Art. 95 EGHGB",
"years": 8
}
],
"retention_end": "2024-12-31",
"retention_years": 8,
"title": null,
"trigger_date": "2016-03-31",
"trigger_event": "voucher created",
"type": "booking_voucher"
}
],
"legal_basis": {
"quellen": {
"AO": "https://www.gesetze-im-interne…",
"EGAO": "https://www.gesetze-im-interne…",
"EGHGB": "https://www.gesetze-im-interne…",
"HGB": "https://www.gesetze-im-interne…",
"UStG": "https://www.gesetze-im-interne…",
"UStG27": "https://www.gesetze-im-interne…"
},
"stand": "gesetze-im-internet.de, retrie…"
},
"summary": {
"ambiguous": 0,
"by_class": {
"booking_voucher": 1,
"invoice": 1
},
"deletable": 1,
"documents": 2,
"next_deletion_date": "2034-01-01",
"retained": 1,
"unresolved": 0
}
},
"service": "retention-label",
"status": "success"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.003.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://format.halowerk.com/v1/retention-label' \
-H 'content-type: application/json' \
--data-raw '{"documents":[{"date":"2025-03-15","id":"DMS-1","title":"Eingangsrechnung RE-2025-001"},{"date":"2016-03-31","filename":"Kontoauszug_2016-03.pdf","id":"DMS-2"}]}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://format.halowerk.com/v1/retention-label' \
-H 'content-type: application/json' \
--data-raw '{"documents":[{"date":"2025-03-15","id":"DMS-1","title":"Eingangsrechnung RE-2025-001"},{"date":"2016-03-31","filename":"Kontoauszug_2016-03.pdf","id":"DMS-2"}]}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.003 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.003" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.003 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fformat.halowerk.com%2Fv1%2Fretention-label&method=POST
const res = await pay("https://format.halowerk.com/v1/retention-label", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"documents": [
{
"date": "2025-03-15",
"id": "DMS-1",
"title": "Eingangsrechnung RE-2025-001"
},
{
"date": "2016-03-31",
"filename": "Kontoauszug_2016-03.pdf",
"id": "DMS-2"
}
]
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.003 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.003"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://format.halowerk.com/v1/retention-label",
json={
"documents": [
{
"date": "2025-03-15",
"id": "DMS-1",
"title": "Eingangsrechnung RE-2025-001",
},
{
"date": "2016-03-31",
"filename": "Kontoauszug_2016-03.pdf",
"id": "DMS-2",
},
],
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 13 h ago | Passed | 402 | 131 ms | $0.003 |
| 3 days ago | Timed out | - | - | - |
| 4 days ago | Passed | 402 | 74 ms | $0.003 |
| 4 days ago | Passed | 402 | 97 ms | $0.003 |
| 5 days ago | Passed | 402 | 123 ms | $0.003 |
Show 10 older checks
| 5 days ago | Passed | 402 | 41 ms | $0.003 |
| 5 days ago | Passed | 402 | 121 ms | $0.003 |
| 6 days ago | Passed | 402 | 138 ms | $0.003 |
| 6 days ago | Passed | 402 | 121 ms | $0.003 |
| 6 days ago | Passed | 402 | 120 ms | $0.003 |
| 7 days ago | Passed | 402 | 291 ms | $0.003 |
| 7 days ago | Passed | 402 | 259 ms | $0.003 |
| 7 days ago | Passed | 402 | 123 ms | $0.003 |
| 8 days ago | Passed | 402 | 43 ms | $0.003 |
| 8 days ago | Passed | 402 | 117 ms | $0.003 |