AgentInvoiceAgentInvoice
API ReferenceGetting Started

Authentication

All requests to the AgentInvoice API must include an API key as a Bearer token in the `Authorization` header:

All requests to the AgentInvoice API must include an API key as a Bearer token in the Authorization header:

Authorization: Bearer <your-api-key>

Getting an API key

API keys are created and managed in your account settings. A key is displayed once at creation time — copy it immediately and store it securely (e.g. in a password manager or secrets vault). If you lose a key, revoke it and create a new one.

Revoking keys

Any key can be revoked at any time from account settings. Revocation is immediate — any request using that key will be rejected with 401 Unauthorized from that point forward.

Key scope

Each API key has full access to all resources belonging to your account. There is currently no per-key scope restriction.

Example request

curl https://app.agentinvoice.co/api/clients \
  -H "Authorization: Bearer agentinvoice_live_..."

On this page