Client reports
Read invoices by business and build a weekly report for each business.
Agent API
InvoiceScript exposes a small, read-only REST API for automation tools, reporting scripts, and private integrations. Bearer tokens. Scoped keys. JSON responses.
Current contract
The v1 API reads operational invoice data. It does not create invoices, edit businesses, upload assets, trigger jobs, collect payments, or sync external calendars.
Read API docs| Route | Scope | Reads |
|---|---|---|
| GET /businesses | businesses:read | Businesses and invoice templates |
| GET /invoices | invoices:read | Invoicings for one business |
| GET /services | services:read | Services for one business |
| GET /availability | availability:read | Available schedule rows |
| GET /schema | public | OpenAPI schema |
curl "https://your-domain.com/api/agent/v1/invoices?business_id=01HTENANT0000000000000000" \
-H "Authorization: Bearer vb_your_api_key" \
-H "Accept: application/json"
Authentication
Each authenticated route checks the API key scopes before returning data. Keys are stored as SHA-256 hashes with a short prefix for identification. Successful requests update the key usage time record.
Missing scopes return a JSON 403 response.
60 authenticated requests per minute per key.
Use cases
The Agent API is built for read access. Use it to pull invoice data into private dashboards, reporting jobs, backup checks, or operational scripts.
Read invoices by business and build a weekly report for each business.
Confirm business, service, and invoice data is reachable from monitoring scripts.
Feed invoice data into internal tools without exposing database credentials.
InvoiceScript runs on your server with full source code, MySQL data, and a small JSON API for the reads integrators need first.