Base URL
The API is available at the following base URLs:Response Format
All API responses are returned in JSON format with the following structure:Success Response
Error Response
HTTP Status Codes
The API uses standard HTTP status codes:| Status Code | Description |
|---|---|
200 | OK - Request succeeded |
400 | Bad Request - Invalid parameters or validation failed |
401 | Unauthorized - Authentication required or token invalid |
404 | Not Found - Resource does not exist |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error - Server-side error |
Rate Limiting
To prevent abuse, the API implements rate limiting on certain endpoints:Login Endpoint
5 requests per 15 minutesApplies to
/api/auth/loginContact Endpoint
5 requests per hourApplies to
/api/contactRequest Format
All POST and PUT requests must include theContent-Type: application/json header and send data as JSON in the request body.
Security
- All write operations (POST, PUT, DELETE) require JWT authentication
- Passwords are never stored in plain text
- Email inputs are validated and sanitized to prevent XSS attacks
- Rate limiting prevents brute force attacks
Next Steps
Authentication
Learn how to authenticate and get a JWT token
Projects API
Manage portfolio projects via CRUD operations
Contact API
Send messages through the contact form
