API Reference
Overview of the Codimir REST API, authentication, status codes, and core resources.
API Reference
The Codimir REST API provides comprehensive access to project management, ticket tracking, and user management functionality.
Base URL
Production: https://codimir.com/api
Development: http://localhost:3000/api
Authentication
All API endpoints require authentication via session. Include session cookies or authorization headers with your requests.
// Example: client-side fetch in Next.js
const response = await fetch('/api/user/profile')
Response Format
{
"data": {"...": "..."},
"pagination": {"page": 1, "limit": 20, "total": 150, "totalPages": 8},
"meta": {"timestamp": "2024-01-01T00:00:00Z", "requestId": "req_123"}
}
HTTP Status Codes
- 200 Success
- 201 Created
- 400 Bad Request
- 401 Unauthorized
- 403 Forbidden
- 404 Not Found
- 422 Validation Error
- 500 Internal Server Error