External API Reference
API dành cho đối tác OTA và bên thứ ba, xác thực bằng X-API-Key header.
Interactive Docs
Khi server đang chạy, truy cập Swagger UI tại:
- Swagger UI (staging):
https://v2-staging.api.cohost.ai/external-docs - OpenAPI Schema (staging):
https://v2-staging.api.cohost.ai/external-openapi.json
Swagger UI embed ngay trong trang này
Swagger UI dưới đây load trực tiếp External OpenAPI spec từ staging:
Generate API Docs
# Export spec từ FastAPI
python scripts/export_openapi.py
# Generate docs
cd docs-site && npm run gen-api-docs
Các endpoint sẽ được tự động tạo trong thư mục này.