API Overview
EstateHub exposes versioned Django REST Framework APIs for public, customer, seller, administrator, messaging, and upload integrations.
This reference targets EstateHub 1.0 and its canonical /api/v1 REST namespace.
Example Data
Examples use fictional US customers, sellers, businesses, and properties around Austin, Texas. Monetary examples explicitly use USD; addresses and coordinates illustrate the sample locations. Phone numbers use NANPA's reserved fictional 555-0100–555-0199 range, and email addresses use example.com.
Bank names, account numbers, routing numbers, and registration identifiers are illustrative placeholders. Replace them with your own valid details when integrating. These examples do not change API fields, supported values, or backend defaults.
Base URLs
| Purpose | Base URL or path |
|---|---|
| Versioned REST API | `http://localhost:8000/api/v1` |
| WebSocket API | `ws://localhost:8000/ws` |
| Health check | `http://localhost:8000/health/` |
| OpenAPI schema | `http://localhost:8000/api/schema/` |
| Swagger UI | `http://localhost:8000/api/docs/` |
| ReDoc | `http://localhost:8000/api/redoc/` |
Endpoint paths in this reference are relative to the REST base URL. Preserve trailing slashes because Django routes declare them explicitly.
Use Copy path to copy an endpoint, or Copy cURL to copy a Bash-compatible HTTP request with its documented headers and request body. Replace path identifiers and {{access_token}} with your own values before running the command. WebSocket connections retain their path-copy control.
API Areas
Authentication
Protected endpoints use Simple JWT bearer authentication.
Authorization: Bearer <access-token>
Accept: application/json
Content-Type: application/jsonRefresh tokens through the matching customer, seller, or administrator namespace. Role permissions, participant membership, and object ownership are enforced independently of token validity.
Request Conventions
- Send JSON unless an endpoint documents another representation.
- Use the exact query parameter and request-field names shown in the endpoint reference.
- Managed files are uploaded through the upload lifecycle; owning APIs receive upload identifiers rather than file bytes or permanent URLs.
- Successful creation normally returns
201 Created; accepted asynchronous deletion may return202 Accepted. - List pagination varies by view. Follow the response shape documented for the endpoint.
Errors and Response Format
Common Success Format
{
"success": true,
"message": "Operation completed successfully.",
"data": {}
}The shared response helper converts falsy directly supplied data values to {}. Clients must not assume an empty list, zero, or null remains unchanged.
Common Error Format
{
"success": false,
"message": "Validation failed.",
"errors": {
"field_name": [
"This field is required."
]
}
}400 Bad Requestindicates validation, malformed input, or an invalid state transition.401 Unauthorizedindicates missing, invalid, or expired authentication.403 Forbiddenindicates insufficient role, participant, ownership, or verification permission.404 Not Foundindicates a missing or inaccessible scoped resource.405 Method Not Allowedindicates an unsupported HTTP method.
Errors containing DRF's detail field become the top-level message with an empty errors object. Serializer field and non-field errors remain inside errors.
Schema Status
Use the generated OpenAPI schema alongside the detailed endpoint reference for request fields, authentication, response examples, and business rules.