HENFOIL · Beginner · Overview
Overview
Beginner start guide for the HENFOIL API — what it is, first steps, and hello examples.
HENFOIL is the cloud API for airfoil and section screening before wing or aircraft work. You send HTTPS JSON to https://henfoil.hendoi.com with a product key that starts with hfk_.
Who this is for
- Aerodynamicists, uav/evtol teams, and students who need honest section polars before they trust a shape.
- 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 HENFOIL API key starting with
hfk_(Settings → Generate API key for HENFOIL). - The product host:
https://henfoil.hendoi.com(local API while developing:http://localhost:8001). - Optional: Python (
pip install henfoil) or JavaScript (npm install @hendoi/henfoil).
First five steps
- Create a key. Open HENDOI Settings and generate an API key for HENFOIL. Copy it once. Store it in an environment variable named
HENFOIL_API_KEY. - Prove the key. Call
GET https://henfoil.hendoi.com/api/v1/usagewith headerAuthorization: Bearer hfk_…. 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 Run a polar after Auth and Limits make sense.
Hello in Python
pip install henfoil
set HENFOIL_API_KEY=hfk_your_live_key_here
from henfoil import Client
print(Client().usage())
Hello in JavaScript
npm install @hendoi/henfoil
# set HENFOIL_API_KEY=hfk_your_live_key_here
import { Client } from "@hendoi/henfoil";
const usage = await new Client().usage();
console.log(usage);
Hello with cURL
curl -sS "https://henfoil.hendoi.com/api/v1/usage" ^
-H "Authorization: Bearer hfk_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 HENFOIL 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 Fluent, XFOIL-as-certification, or a flight-test substitute. Results are screening aids — not certificates.
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 HENFOIL package names above).
- Official examples on GitHub.
- Run a polar — first real analysis page.
Docs UI: https://api.hendoi.com (local http://localhost:3006). Docs JSON: local http://localhost:8006.
