Docs / API reference
Billing details API
The lines that appear under “Bill to” on your invoices sit on the account, and you read and write them through two routes under https://api.pentestllm.ai/v1. Because each invoice PDF is drawn from the values current at download time, enter them before you pull one.
Read your billing details
GET /v1/account/billing-details returns data holding every field below as the invoices currently print it, each null or empty until saved. Anyone signed in to the console on the account may read it; a request carrying neither a sign-in nor a key answers 401 unauthorized.
Save your billing details
PATCH /v1/account/billing-details records them. An API key will not reach either route; whatever its tier, admin keys among them, it draws a 403, as read and write alike expect a console session, which you use on the console Account page beneath International invoice. A field you omit is untouched; null, an empty string, or [] for address_lines, wipes it. A signed-in member without the owner or billing role gets 403 forbidden, and a malformed body 400 invalid_request.
| Field | Type | Notes |
|---|---|---|
company | string or null | The customer name printed; the account's own name when null. |
address_lines | array | Up to 4 lines, 120 characters each. |
country | string or null | The billing country. |
tax_id | string or null | A VAT, GST, EIN or any tax number, printed as entered. |
email | string or null | Printed on the invoice; the account's email when null. |
Example
On the console Account page, under International invoice, this is the PATCH /v1/account/billing-details body it submits:
{"company": "Initech Security Ltd", "address_lines": ["7 Harbour Rd", "Dublin"], "country": "IE", "tax_id": "IE1234567X"}Pull an invoice next and those entries sit under “Bill to”. The route takes no API key; one is answered with 403.
Questions
Who may edit these?
Both the read and the save run under a console sign-in, and an API key of any level is refused with 403. Once signed in, the owner or the billing role edits them, from the International invoice part of the Account page.
I set a field by mistake, how do I clear it?
Pass null or an empty string as that field’s value, or an empty array to clear address_lines. Whatever you leave out keeps its present value, so the request changes only the fields it carries.
Where do the values land?
Inside the "Bill to" block on each invoice PDF, built from whatever is on file at the instant you download. Set them ahead of time, and the tax id is carried through verbatim.
Read next
- MCP servers
- Log export
- Invoices
- Statement signing key
- Keys and scopes
- Usage and signed receipts
- Spend limits and balance
- Redaction and guardrails
- Sessions
- Embeddings, rerank and moderation
- Batch files
- Batches
- Status and proof feeds
- Count tokens
- Usage by app
- App sign-in keys
- Webhook deliveries
- Docs: connect in two minutes
- Pricing