Let an agent prepare invoices. Keep the owner in control.
An AI agent can create the first invoice draft immediately. It receives a private preview link and a one-time authorization link for the business owner. The owner verifies with FIL and grants revocable invoice access before the agent can create or edit more invoices.
Store the returned access_token as a secret. It is shown once. A pending token can check authorization status but cannot edit invoices.
After approval
Create, list, read and update invoice drafts.
curl https://freeinvoicelove.com/api/agent \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $FIL_AGENT_ACCESS_TOKEN" \
-H "Idempotency-Key: invoice-42-update-1" \
-d '{
"action": "update_invoice",
"record_id": 42,
"invoice": {"notes": "Thank you for your business."}
}'
Every create or update requires an Idempotency-Key. The token is scoped to invoice reads and writes in the owner-approved FIL workspace. Use revoke to disable it.