Welcome to Harbor Parking API
Our REST API enables developers to integrate parking spot sharing functionality into any application. Built with modern standards and developer experience in mind.Base URL
All API requests should be made to:Authentication
All endpoints require JWT authentication except where noted. Include your token in the Authorization header:Get Started with Authentication
Learn how to obtain and use JWT tokens for API access
Request/Response Format
Content Type
All requests and responses use JSON:Request Format
Response Format
HTTP Status Codes
The API uses standard HTTP status codes:2xx Success
2xx Success
- 200 OK - Request successful
- 201 Created - Resource created successfully
4xx Client Errors
4xx Client Errors
- 400 Bad Request - Invalid request data or validation errors
- 401 Unauthorized - Missing or invalid authentication token
- 403 Forbidden - Insufficient permissions or account not approved
- 404 Not Found - Resource not found
- 409 Conflict - Resource already exists or conflicts with existing data
5xx Server Errors
5xx Server Errors
- 500 Internal Server Error - Unexpected server error
Error Response Format
All errors follow a consistent format:The API uses standard HTTP status codes to indicate the success or failure of requests. See the error examples in each endpoint documentation for details.
Rate Limiting
API requests are rate limited to ensure fair usage:- 100 requests per minute per authenticated user
- 1000 requests per hour per authenticated user
- Rate limit headers included in responses:
API Endpoints Overview
Profile & Authentication
Manage user profiles and authenticationDashboard
Get comprehensive dashboard dataGet Dashboard
Retrieve user dashboard with stats, spots, and claims
Parking Spots
Manage parking spot registration and ownershipList Spots
Get parking spots with filtering
Create Spot
Register a new parking spot
Update Spot
Update parking spot details
Delete Spot
Remove a parking spot
Availabilities
Manage parking spot availability windowsList Availabilities
Get availability windows with filtering
Create Availability
Set spot availability window
Update Availability
Modify availability details
Delete Availability
Remove availability window
Claims
Manage parking spot reservationsList Claims
Get claims with filtering options
Create Claim
Claim an available parking spot
Update Claim
Update claim status or details
Delete Claim
Cancel a parking spot claim
OpenAPI Specification
OpenAPI Specification
Complete machine-readable API specification in OpenAPI 3.0 format
Interactive Playground
Try API endpoints directly in your browser with live data:The interactive playground requires a valid JWT token. Obtain one by logging into the Harbor Parking web application.
Webhooks (Coming Soon)
Real-time notifications for parking events:- New spot registrations
- Availability changes
- Claim submissions and updates
- Admin approvals