π API Reference Overview
Architecture, base URLs, authentication tokens, rate limits, and response standards for the MudraHQ REST API.
Loading documentationβ¦
The MudraHQ REST API provides programmatic access to your business invoicing, products, customer ledgers, and tax compliance data.
| Environment | Base URL | Purpose |
|---|---|---|
| Production | https://mudrahq.tech/api | Live production cloud cluster |
| Local Development | http://localhost:3000/api | Local development environment |
All private endpoints require a JSON Web Token (JWT) transmitted via the standard Authorization HTTP header:
Tokens are obtained by authenticating against POST /api/auth/login or POST /api/auth/google. Tokens are valid for 7 days.
To protect against credential stuffing and brute force attempts:
/api/auth/login is guarded by a sliding-window rate limiter allowing up to 5 failed attempts per IP per 15-minute window.HTTP 413 Payload Too Large on violation).*.mudrahq.tech).Successful requests return standard JSON envelopes:
Errors return clear HTTP status codes and diagnostic error messages: