HENSTRUCT · Beginner · Overview
Overview
Beginner start guide for the HENSTRUCT API — what it is, first steps, and hello examples.
HENSTRUCT is the cloud API for early skin, bay, and plate structure screens before full airframe FEA. You send HTTPS JSON to https://henstruct.hendoi.com with a product key that starts with hstk_.
Who this is for
- Structures engineers screening load paths before heavy fea nights.
- Developers who want the same workflow the browser app uses, but from scripts or CI.
- Beginners who want one clear first call before reading every endpoint page.
What you need
- A HENDOI account (sign in at hendoi.com/login).
- A live HENSTRUCT API key starting with
hstk_(Settings → Generate API key for HENSTRUCT). - The product host:
https://henstruct.hendoi.com(local API while developing:http://localhost:8004). - Optional: Python (
pip install henstruct) or JavaScript (npm install @hendoi/henstruct).
First five steps
- Create a key. Open HENDOI Settings and generate an API key for HENSTRUCT. Copy it once. Store it in an environment variable named
HENSTRUCT_API_KEY. - Prove the key. Call
GET https://henstruct.hendoi.com/api/v1/usagewith headerAuthorization: Bearer hstk_…. Expect HTTP200. - Read remaining meters. The usage JSON tells you how many automation calls you still have this month.
- Try the SDK hello (below) or stay on raw HTTPS — both talk to the same API.
- Open one analysis page in the sidebar — start with Create or list projects after Auth and Limits make sense.
Hello in Python
pip install henstruct
set HENSTRUCT_API_KEY=hstk_your_live_key_here
from henstruct import Client
print(Client().usage())
Hello in JavaScript
npm install @hendoi/henstruct
# set HENSTRUCT_API_KEY=hstk_your_live_key_here
import { Client } from "@hendoi/henstruct";
const usage = await new Client().usage();
console.log(usage);
Hello with cURL
curl -sS "https://henstruct.hendoi.com/api/v1/usage" ^
-H "Authorization: Bearer hstk_demo_4c91e2ab8d07"
Replace the demo key with your live key. On Unix shells use \ instead of ^ for line breaks.
What success and failure look like
200— request accepted; read the JSON fields named in the docs (sample numbers are shapes only).401— key missing, wrong product, or deactivated. Generate a new HENSTRUCT key.403— key recognized but a meter is empty (oftenQUOTA_EXCEEDED). See Limits and errors.202— long job queued; poll Jobs until it finishes.
What this product cannot claim
It is not Nastran certification FEA. Use it to catch bad assumptions early, then escalate to your authority tools.
Where to go next
- Authentication — create and prove your key.
- Limits and errors — read status codes before overnight batches.
- Python SDK · JavaScript / TypeScript SDK — shared install patterns (use the HENSTRUCT package names above).
- Official examples on GitHub.
- Create or list projects — first real analysis page.
Docs UI: https://api.hendoi.com (local http://localhost:3006). Docs JSON: local http://localhost:8006.
