ThrustLab Airfoils API
The airfoils API from ThrustLab — 3 operation(s) for airfoils.
The airfoils API from ThrustLab — 3 operation(s) for airfoils.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/thrustlab-com:thrustlab-com-airfoils-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
description: Electric UAV powertrain simulation platform
title: ThrustLab Airfoils API
version: v1-beta
servers:
- description: Production
url: https://thrustlab.com
security:
- HTTPBearer: []
tags:
- name: airfoils
paths:
/v1/airfoils:
get:
description: 'Search the UIUC library (cached index) + the caller''s custom airfoils.
Query params:
* ``search`` — case-insensitive substring on the section name.
* ``family`` — exact family facet (naca / clark-y / eppler / selig /...).
* ``source`` — ``library`` (read-only UIUC) or ``mine`` (the caller''s imports).
* ``cursor`` / ``limit`` — offset-cursor pagination over the merged result.
Returns the standard list envelope (``object:"list"`` / ``data`` /
``has_more`` / ``next_cursor``). The library index is served from the
module-global cache — never enumerated per request.'
operationId: list_airfoils_v1_airfoils_get
parameters:
- in: query
name: search
required: false
schema:
anyOf:
- maxLength: 128
type: string
- type: 'null'
title: Search
- in: query
name: family
required: false
schema:
anyOf:
- maxLength: 64
type: string
- type: 'null'
title: Family
- in: query
name: source
required: false
schema:
anyOf:
- pattern: ^(library|mine)$
type: string
- type: 'null'
title: Source
- in: query
name: cursor
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Cursor
- in: query
name: limit
required: false
schema:
default: 25
maximum: 100
minimum: 1
title: Limit
type: integer
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AirfoilListResponse'
description: Successful Response
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: List Airfoils
tags:
- airfoils
/v1/airfoils/import:
post:
description: 'Import a Selig or Lednicer ``.dat`` as a user-owned custom airfoil.
multipart/form-data: ``file`` (the ``.dat``) + ``name`` (display name).
Pipeline: byte-cap (DoS bound, BEFORE parse) -> auto-detect & Kulfan-fit
(``airfoils_service.fit_dat``) -> persist a ``CustomAirfoil`` scoped to the
caller -> 201 with the ``afl_`` id.
Errors:
* Oversized upload -> 400 ``dat_too_large`` (bound BEFORE parse).
* Unparseable bytes -> 400 ``invalid_dat``.
* Unfittable section -> 422 ``airfoil_fit_failed``.'
operationId: import_airfoil_v1_airfoils_import_post
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_import_airfoil_v1_airfoils_import_post'
required: true
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/AirfoilResource'
description: Successful Response
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: Import Airfoil
tags:
- airfoils
/v1/airfoils/{airfoil_id}:
delete:
description: 'Delete one of the caller''s custom airfoils (IDOR-safe).
A foreign-owned or missing id returns the identical ``airfoil_not_found``
404. Props already using the section keep their copied ``section_airfoils``
(the solve source of truth) — there is no cascade.'
operationId: delete_airfoil_v1_airfoils__airfoil_id__delete
parameters:
- in: path
name: airfoil_id
required: true
schema:
title: Airfoil Id
type: string
responses:
'204':
description: Successful Response
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: Delete Airfoil
tags:
- airfoils
get:
description: 'Fetch one of the caller''s custom airfoils by ``afl_`` id.
Library sections are not addressed here (they''re listed, not fetched by id).
A foreign-owned or missing id returns the identical 404 (anti-enumeration).'
operationId: get_airfoil_v1_airfoils__airfoil_id__get
parameters:
- in: path
name: airfoil_id
required: true
schema:
title: Airfoil Id
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AirfoilResource'
description: Successful Response
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: Get Airfoil
tags:
- airfoils
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
title: Detail
type: array
title: HTTPValidationError
type: object
Body_import_airfoil_v1_airfoils_import_post:
properties:
file:
format: binary
title: File
type: string
name:
title: Name
type: string
required:
- file
- name
title: Body_import_airfoil_v1_airfoils_import_post
type: object
AirfoilResource:
properties:
camber:
anyOf:
- type: number
- type: 'null'
title: Camber
family:
anyOf:
- type: string
- type: 'null'
title: Family
id:
title: Id
type: string
max_thickness:
anyOf:
- type: number
- type: 'null'
title: Max Thickness
name:
title: Name
type: string
object:
default: airfoil
title: Object
type: string
source:
title: Source
type: string
required:
- id
- name
- source
title: AirfoilResource
type: object
AirfoilListResponse:
properties:
data:
items:
$ref: '#/components/schemas/AirfoilResource'
title: Data
type: array
has_more:
default: false
title: Has More
type: boolean
next_cursor:
anyOf:
- type: string
- type: 'null'
title: Next Cursor
object:
default: list
title: Object
type: string
required:
- data
title: AirfoilListResponse
type: object
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
title: Location
type: array
msg:
title: Message
type: string
type:
title: Error Type
type: string
required:
- loc
- msg
- type
title: ValidationError
type: object
securitySchemes:
HTTPBearer:
scheme: bearer
type: http