Documentation
Comprehensive guides and technical documentation to help you integrate Casa LHI into your applications.
Quick Start Guides
SDK Documentation
Learn how to use our official SDKs for different programming languages.
View SDKs →Documentation Sections
API Reference
Complete reference for all Casa LHI API endpoints, parameters, and responses.
- • Authentication
- • Endpoints
- • Request/Response formats
- • Error codes
SDKs & Libraries
Official SDKs for popular programming languages and frameworks.
- • JavaScript/Node.js
- • Python
- • PHP
- • React components
Webhooks
Set up webhooks to receive real-time notifications about your API usage.
- • Webhook setup
- • Event types
- • Security
- • Testing
Integration Guides
Step-by-step guides for integrating Casa LHI into popular platforms.
- • WordPress plugins
- • React applications
- • Mobile apps
- • Real estate platforms
Rate Limits & Quotas
Understand rate limits, quotas, and how to optimize your API usage.
- • Rate limit policies
- • Quota management
- • Best practices
- • Upgrading plans
Troubleshooting
Common issues and solutions when integrating with Casa LHI.
- • Common errors
- • Debugging tips
- • Performance optimization
- • Support resources
Code Examples
Basic API Request
const response = await fetch('https://ourcasa.ai/api/ai-chat', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
prompt: 'Why is my siding warping?',
location: {
lat: 40.7128,
lng: -74.0060
}
})
});
const data = await response.json();
console.log(data.response);
Python SDK Example
from casa_lhi import CasaLHI
client = CasaLHI(api_key='YOUR_API_KEY')
response = client.ask(
prompt="Why is my siding warping?",
location={
'lat': 40.7128,
'lng': -74.0060
}
)
print(response.insight)
print(response.recommendations)
Official SDKs
JavaScript SDK
Official SDK for JavaScript and Node.js applications.
Python SDK
Official SDK for Python applications and data science.
PHP SDK
Official SDK for PHP applications and WordPress.
Need More Help?
Can't find what you're looking for? Our developer support team is here to help.