AuthSys API Reference & Integration Guide
AuthSys provides a full identity and access management API. All requests must be made over HTTPS and include a valid authentication token.
Content-Type: application/json
in your request headers.
/api/auth/register/api/auth/loginAuthorization: Bearer <token> on every requestAuthSys uses JWT (JSON Web Tokens) for authentication.
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/auth/register |
Create a new account |
| POST | /api/auth/login |
Login and receive JWT + refresh token |
| POST | /api/auth/logout |
Invalidate current token |
| POST | /api/auth/refresh-token |
Exchange refresh token for new JWT |
| GET | /api/auth/profile |
Get authenticated user profile |
API keys allow programmatic access to the AuthSys API without interactive login. Manage your keys from the API Keys dashboard.
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/oauth/clients |
List your OAuth client applications |
| POST | /api/oauth/clients |
Register a new client (returns client_id + client_secret once) |
| GET | /api/oauth/clients/:id |
Get client details |
| PUT | /api/oauth/clients/:id |
Update client settings |
| DELETE | /api/oauth/clients/:id |
Deactivate a client |
AuthSys supports OAuth 2.0 Authorization Code flow with PKCE for third-party app integration.
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/oauth/authorize |
Start authorization โ redirect user here |
| POST | /api/oauth/token |
Exchange authorization code for tokens |
| GET | /api/oauth/userinfo |
Get user info with access token |
| POST | /api/oauth/token/revoke |
Revoke an access or refresh token |
| POST | /api/oauth/token/introspect |
Inspect a token's validity and claims |
GET /api/auth/googleGET /api/auth/github| Method | Endpoint | Auth Required | Description |
|---|---|---|---|
| POST | /api/auth/forgot-password |
No | Request password reset email |
| POST | /api/auth/reset-password/:token |
No | Reset password with token |
| GET | /api/auth/sessions |
Yes | List active sessions |
| DELETE | /api/auth/sessions/:id |
Yes | Revoke a specific session |
| GET | /health |
No | Server health check |
| Status | Code | Description |
|---|---|---|
| 200 | OK | Request succeeded |
| 400 | Bad Request | Invalid parameters or missing fields |
| 401 | Unauthorized | Missing or invalid token |
| 403 | Forbidden | Insufficient permissions |
| 404 | Not Found | Resource does not exist |
| 423 | Locked | Account locked due to too many failed attempts |
| 429 | Too Many Requests | Rate limit exceeded |
| 500 | Server Error | Unexpected server-side error |
Rate limits are applied per IP address on sensitive endpoints.
| Endpoint Group | Limit | Window |
|---|---|---|
| Login / Register | 10 requests | 15 minutes |
| Password Reset | 5 requests | 1 hour |
| OAuth Token | 20 requests | 15 minutes |
| General API | 100 requests | 15 minutes |
Retry-After header indicating when to retry.
AuthSys implements the following security measures: