Introduction
Billing infrastructure for usage-based pricing
Afternoon is a billing platform that helps you meter usage, manage customers and subscriptions, and generate invoices. The Afternoon API gives you programmatic access to every part of the billing lifecycle.
Core concepts
How it works
Send usage events
Instrument your application to send billable events to the /v1/events/ingest endpoint whenever metered activity occurs (API calls, compute time, storage, etc.).
API design
The Afternoon API follows these conventions:
- Base URL —
https://api.afternoon.co - Authentication — Bearer token via API key (see Authentication)
- Content type — All request and response bodies are
application/json - Pagination — List endpoints use cursor-based pagination with
limitandcursorquery parameters - Error format — Errors return
{ success: false, error: { code, message }, request_id } - Rate limiting — 1,000 requests per minute per company. Rate limit headers (
X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset) are included on every response.
