API Overview & Architecture
The AuthSetu REST API is organized around predictable REST standards. All requests and responses communicate using JSON.
Base URLs
| Environment | Base URL |
|---|---|
| Production | `https://api.authsetu.com/v1` |
| Sandbox | `https://api.authsetu.com/v1` (with `sk_test_...` key) |
| Localhost | `http://localhost:8080/v1` |
Response Envelope
All API responses follow a uniform structure:
{
"data": {
"id": "usr_01J9...",
"email": "developer@example.com"
},
"error": null,
"requestId": "req_01J9XYZ..."
}