Welcome to our comprehensive API documentation
Fast & Reliable
High-performance API with low latency
Secure
Enterprise-grade security and encryption
Comprehensive
Complete set of endpoints for all needs
Base URL
https://devsouqhub.com/api/v1
Complete reference for all API endpoints and features
Welcome to our comprehensive API documentation
High-performance API with low latency
Enterprise-grade security and encryption
Complete set of endpoints for all needs
https://devsouqhub.com/api/v1
How to authenticate with our API
Authenticate using your API key
GET /api/v1/courses?api_key=YOUR_API_KEY
Bearer token description
Authorization: Bearer YOUR_TOKEN
Rate limiting description
Plan | Rate Limit | Burst |
---|---|---|
Free | 60 Requests per hour | 10 Requests per minute |
Basic | 500 Requests per hour | 30 Requests per minute |
Premium | 2000 Requests per hour | 60 Requests per minute |
Enterprise | custom | custom |
Rate limit headers description
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 56
X-RateLimit-Reset: 1623456789
Authentication endpoints description
/api/v1/auth/login
API login description
Name | Type | This field is required | Description |
---|---|---|---|
string | User's email address | ||
password | string | User Password |
{
"success": true,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": {
"id": 1,
"username": "johndoe",
"email": "john@example.com"
}
}
Error handling description
Status Code | Error Code | Description |
---|---|---|
400 | invalid_request | Error: Invalid Request |
401 | unauthorized | Error: Unauthorized |
403 | forbidden | Error: Forbidden |
404 | not_found | Error: Not Found |
422 | validation_error | Error: Validation |
429 | rate_limit_exceeded | Error: Rate Limit Exceeded |
500 | server_error | Error: Server Error |
503 | service_unavailable | Error: Service Unavailable |
{
"success": false,
"error": {
"code": "validation_error",
"message": "The given data was invalid.",
"details": {
"email": ["The email field is required."],
"password": ["The password must be at least 8 characters."]
}
}
}