---
title: "API Overview & Architecture"
description: "AuthSetu REST API architecture, base URLs, versioning, and rate limits."
order: 1
category: "Backend API"
updated: "2026-10-13"
---

# 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:

```json
{
  "data": {
    "id": "usr_01J9...",
    "email": "developer@example.com"
  },
  "error": null,
  "requestId": "req_01J9XYZ..."
}
```
