API Reference
Dimebia provides a RESTful API for all operations. This section contains the complete API reference.
Base URL
https://api.dimebia.com/api
For local development:
http://localhost:8080/api
Authentication
All API requests require authentication unless marked as public.
JWT Bearer Token
Authorization: Bearer <access_token>
API Key
Authorization: ApiKey <secret_key>
Response Format
All responses follow a standard format:
{
"code": 200,
"message": "Success",
"data": { ... }
}
| Field | Type | Description |
|---|---|---|
code | Integer | HTTP status code |
message | String | Human-readable message |
data | Any | Response payload |
Error Codes
| Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Missing or invalid token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Resource not found |
| 409 | Conflict - Resource already exists |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error |