Getting Started
Quick Start
Create a project and run your first wood beam calculation.
Prerequisites
- API key from Calcs.com (contact [email protected])
Step 1: Create a Project
All calculations belong to a project. Create one first:
Code
Response:
Code
Save the projectId - you'll need it for calculations.
Step 2: Run a Calculation
Calculate a floor joist using the single-call endpoint:
Code
Response:
Code
Done! The beam passes with 67% utilization.
Understanding the Results
| Field | Description |
|---|---|
passed | true if all checks pass |
utilizationRatio | Demand/capacity ratio (0-1). Lower is better. |
summaryCheck.failReasons | Empty array means no failures |
Common Issues
"projectId is required" - Create a project first using POST /v1/projects
"Invalid preset" - See the API Reference for valid preset codes
Results show passed: false - Check summaryCheck.failReasons for details
Results show NaN utilization - Check your loadsDist format. The correct format is:
Code
For joists: ["Floor Load", 0, "L", "spacing", "TW_s", {"D": [15], "L": [40]}]
For headers/beams: ["Wall Load", 0, "L", 1, "One", {"D": [100], "L": [200]}]
Next Steps
- Timber Beam Guide - Detailed beam documentation
- Snow Load Guide - Snow load calculations
- Generic Templates - Use any calculation template
- API Reference - Full interactive endpoint documentation
Last modified on