Comprehensive API documentation for Living Building System.
REST API using JSON for requests and responses.
https://api.living-building-system.com/v1
Current version: v1.0.0
Include API key in request header:
Authorization: Bearer YOUR_API_KEY
GET /user/profile
Response:
{
"id": "user_123",
"username": "johndoe",
"email": "john@example.com",
"created_at": "2024-01-15T10:30:00Z"
}
PUT /user/profile
GET /items?page=1&limit=20
Query Parameters:
page (integer): Page number (default: 1)limit (integer): Items per page (default: 20, max: 100)sort (string): Sort fieldorder (string): Sort order (asc/desc)POST /items
Request Body:
{
"name": "New Item",
"description": "Item description",
"category": "general"
}
PUT /items/:id
DELETE /items/:id
{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message"
}
}
| Code | Status | Description |
|---|---|---|
| UNAUTHORIZED | 401 | Invalid authentication |
| FORBIDDEN | 403 | Insufficient permissions |
| NOT_FOUND | 404 | Resource not found |
| VALIDATION_ERROR | 422 | Invalid request data |
| RATE_LIMIT_EXCEEDED | 429 | Too many requests |
| INTERNAL_ERROR | 500 | Server error |
Rate limit headers:
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1640995200
import requests
API_KEY = "your_api_key"
BASE_URL = "https://api.living-building-system.com/v1"
headers = {
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json"
}
# Get user profile
response = requests.get(f"{BASE_URL}/user/profile", headers=headers)
user = response.json()
const API_KEY = 'your_api_key';
const BASE_URL = 'https://api.living-building-system.com/v1';
fetch(`${BASE_URL}/user/profile`, {
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json'
}
})
.then(response => response.json())
.then(user => console.log(user));
For API support:
Last updated: 2024-01-15