API Documentation
Complete reference for Pillow’s REST API, including endpoints, authentication, and examples.
Overview
Section titled “Overview”The Pillow API provides:
- Property search and filtering
- User authentication and management
- Data harvesting configuration
- Analytics and reporting
- System administration
Base URL
Section titled “Base URL”Production: https://api.garagejs.comFor local development:
http://localhost:4000All API endpoints are prefixed with /api/v1:
Production: https://api.garagejs.com/api/v1Local: http://localhost:4000/api/v1Authentication
Section titled “Authentication”All API requests require authentication using either:
Service Tokens
Section titled “Service Tokens”curl -H "Authorization: Bearer your-service-token" \ https://api.garagejs.com/api/v1/propertiesService tokens are created via the admin endpoint:
curl -X POST https://api.garagejs.com/admin/tokens/service \ -H "Content-Type: application/json" \ -d '{ "service_name": "my-service", "source": "my-source", "roles": ["harvester"] }'Quick Start
Section titled “Quick Start”Get your first API response:
# Create a service tokencurl -X POST http://localhost:4000/admin/tokens/service \ -H "Content-Type: application/json" \ -d '{ "service_name": "test-service", "source": "test-source", "roles": ["harvester"] }'
# Search for properties (public endpoint, no auth required)curl "http://localhost:4000/api/v1/properties?limit=5"
# Search with filterscurl "http://localhost:4000/api/v1/properties?city=San%20Francisco&limit=5"
# With authentication (for protected endpoints)curl -H "Authorization: Bearer your-token" \ "http://localhost:4000/api/v1/properties?city=San%20Francisco&limit=5"Next Steps
Section titled “Next Steps”- Mill API Documentation - Complete API reference with examples
- Getting Started - Setup and configuration
- Architecture - System design and components
Additional Resources
Section titled “Additional Resources”- OpenAPI Documentation: http://localhost:4000/docs (local) or https://api.garagejs.com/docs (production)
- Health Check: http://localhost:4000/health
- Property Endpoints: See Mill API documentation for detailed endpoint documentation