API · Online

Invoice API for AI agents

Send structured invoice data, get a finished PDF back. This service is built to be used by AI agents together with the invoice-generator skill, which turns a plain text file of invoice details into the right API call.

How it works with the skill

  1. You keep your invoice details in any text file, however messy.
  2. The agent reads the skill, organizes the information and asks you for anything missing.
  3. It calls this API and downloads your PDF invoice.

Install the skill from github.com/hasinhayder/invoice-generator-skill.

Templates

classicTraditional serif layout with a fully bordered table. Black and white.
modernClean sans-serif with a blue accent bar, zebra-striped rows.
minimalAiry and quiet: lots of white space, hairline rules, no fills.
boldHeavy dark header block, strong typography and a big total callout.
elegantCentered, serif and refined with muted gold rules.
compactDense small-type layout that fits long item lists on fewer pages.

Endpoints

GET/healthService status
GET/templatesAvailable templates
POST/invoicesMultipart: data (JSON) and optional logo (PNG/JPEG, up to 2 MB). Returns a PDF.
POST/invoices/jsonJSON body without a logo. Returns a PDF.

Example

curl -fS -o invoice.pdf \
  -F 'data=<invoice.json' \
  -F '[email protected]' \
  https://invoice-api.tyrolabs.dev/invoices