Getting Started
Welcome to the Daakey API documentation. This guide covers integration with our car sharing platform.
Base URLs
| Environment | URL |
|---|---|
| Production | https://api.daakey.com |
| Staging | https://staging-api.daakey.com |
API Versions
All endpoints are versioned:
| API | Path |
|---|---|
| Client API | /api/v1/client/* |
| Dashboard API | /api/v1/dashboard/* |
Response Format
All responses follow this structure:
json
{
"success": true,
"message": "Operation completed successfully",
"data": { ... },
"meta": {
"agency_id": 123,
"agency_code": "AGENCY123"
},
"request_id": "uuid-string",
"timestamp": "2024-01-01T00:00:00.000Z"
}Error Format
json
{
"success": false,
"message": "Validation failed",
"errors": {
"email": ["The email field is required."]
},
"data": null,
"request_id": "uuid-string",
"timestamp": "2024-01-01T00:00:00.000Z"
}HTTP Status Codes
| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 422 | Validation Error |
| 500 | Server Error |
Next Steps
- Authentication - Learn about auth methods
- Agency Signature - Required for Client API
- Client API - Mobile app endpoints
- Dashboard API - Dashboard endpoints