ThrustLab Components API

The components API from ThrustLab — 4 operation(s) for components.

GitHub OpenAPI

Operations 7

GET /v1/components List Components #
POST /v1/components Create Component #
GET /v1/components/brands List Component Brands #
DELETE /v1/components/{component_id} Delete Component #
GET /v1/components/{component_id} Get Component #
PATCH /v1/components/{component_id} Patch Component #
GET /v1/components/{component_id}/specs Get Component Specs #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/thrustlab-com:thrustlab-com-components-api"
All apis
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.

Get an API 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 Specification

thrustlab-com-components-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Electric UAV powertrain simulation platform
  title: ThrustLab Components API
  version: v1-beta
servers:
- description: Production
  url: https://thrustlab.com
security:
- HTTPBearer: []
tags:
- name: Components
paths:
  /v1/components:
    get:
      description: 'Return a paginated list spanning the public catalog and caller''s customs.


        Query parameters: `type` (optional; motor|battery|propeller — when omitted

        returns all three types ordered by name/created_at only),

        `visibility` (optional; public/private; default: union),

        `limit` (1-100, default 25), `cursor` (pagination token),

        `search` (name substring match; `q` is an accepted alias — `search` wins

        if both are supplied, and `q` is length-capped identically),

        `sort_by` (name, brand, kv, etc.), `sort_order` (asc/desc).


        The cursor is a sort-aware composite keyset: it carries the active

        `sort_by`/`sort_order`, so a cursor issued for one sort cannot be reused

        with a different sort (400 `invalid_cursor`).


        Numeric spec_json fields are filterable via bracket syntax:

        ?kv[gte]=900&kv[lt]=1100. Discrete fields accept [in]:

        ?blades[in]=2,3. Per-type filters and per-type sort keys require ``type``

        to be set; without ``type`` only the generic ``name`` and ``created_at``

        sort keys are accepted.


        Every range field answers to two names — the documented one and the raw

        spec key — on BOTH surfaces: ``resistance[lte]`` and ``R[lte]`` filter

        identically, and ``sort_by=resistance`` and ``sort_by=R`` sort identically.

        A bracket filter naming a field this type does not have is rejected with

        400 ``unknown_filter`` listing the fields it does have, so a typo can no

        longer return the whole catalog in silence. The bounds the server applied

        come back in ``filters``, keyed by the documented name.


        Results are cursor-paginated in the requested sort order.


        Readable WITHOUT a credential: an anonymous caller lists the curated public

        catalog only — never a private row and never a user-submitted one — and is

        metered per client IP on the same bucket as ``/v1/public/*``. A credential

        adds the caller''s own components and their raw specs. ``visibility=private``

        is not an error without a credential, it simply matches nothing.'
      operationId: list_components_v1_components_get
      parameters:
      - in: query
        name: type
        required: false
        schema:
          anyOf:
          - pattern: ^(motor|battery|propeller)$
            type: string
          - type: 'null'
          title: Type
      - in: query
        name: visibility
        required: false
        schema:
          anyOf:
          - pattern: ^(public|private)$
            type: string
          - type: 'null'
          title: Visibility
      - 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
      - in: query
        name: search
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Search
      - description: Alias for `search` (name substring match). If both are supplied, `search` wins. Length-capped identically to `search`.
        in: query
        name: q
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Alias for `search` (name substring match). If both are supplied, `search` wins. Length-capped identically to `search`.
          title: Q
      - description: 'Sort key. Without `type` only `name` and `created_at` are accepted. With `type` set, additionally — motor: R (or resistance), iq_max (or current_max), kv, n (or poles), power_max, weight, weight_g; battery: c_rating, energy_density, series_cells, total_capacity_mAh (or capacity), weight_g (or weight); propeller: diameter, inertia, maxRPM (or max_rpm), num_blades, pd_ratio, pitch, weight. Either spelling of a field works, here and in the bracket filters. The pagination cursor is bound to the sort: a cursor issued for one `sort_by`/`sort_order` cannot be replayed against another (400 `invalid_cursor`), so finish a scan before changing the ordering.'
        in: query
        name: sort_by
        required: false
        schema:
          default: name
          description: 'Sort key. Without `type` only `name` and `created_at` are accepted. With `type` set, additionally — motor: R (or resistance), iq_max (or current_max), kv, n (or poles), power_max, weight, weight_g; battery: c_rating, energy_density, series_cells, total_capacity_mAh (or capacity), weight_g (or weight); propeller: diameter, inertia, maxRPM (or max_rpm), num_blades, pd_ratio, pitch, weight. Either spelling of a field works, here and in the bracket filters. The pagination cursor is bound to the sort: a cursor issued for one `sort_by`/`sort_order` cannot be replayed against another (400 `invalid_cursor`), so finish a scan before changing the ordering.'
          title: Sort By
          type: string
      - in: query
        name: sort_order
        required: false
        schema:
          default: asc
          title: Sort Order
          type: string
      - description: When true, return ALL matching component ids in the requested sort order (bounded, NOT cursor-paginated) for Select-all. Response is {object,data:[ids],total,truncated}; cursor/limit are ignored. At most 5000 ids are returned; beyond that the first ids in sort order come back with truncated=true.
        in: query
        name: ids_only
        required: false
        schema:
          default: false
          description: When true, return ALL matching component ids in the requested sort order (bounded, NOT cursor-paginated) for Select-all. Response is {object,data:[ids],total,truncated}; cursor/limit are ignored. At most 5000 ids are returned; beyond that the first ids in sort order come back with truncated=true.
          title: Ids Only
          type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/app__v1__serializers_components__ComponentListResponse'
                - $ref: '#/components/schemas/ComponentIdsResponse'
                title: Response List Components V1 Components Get
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: List Components
      tags:
      - Components
    post:
      description: 'Create a custom component scoped to the authenticated user.


        Body fields: `type` (required; motor|battery|propeller), `name` (required,

        1-255 chars), `spec_json` (required; type-specific map).


        Every type''s product-required spec_json fields are enforced at this

        boundary (2026-07-16); a missing field is a 400 naming the field, its

        meaning, and its units. Motors need kv, n, R, weight, diameter, length,

        u_nominal, iq_nominal, and one of iq_max/power_max. Propellers need

        diameter, pitch, weight, rotation, and parallel radius/chord/twist

        station arrays. Batteries need a known chemistry plus, for a

        physical pack, bounding-box dimensions, cell layout, capacity, mass, and

        one internal-resistance figure (form_factor is derived from chemistry

        when omitted and stored); a source needs series_cells and source_voltage.


        Returns the new component resource (201) with source="user",

        visibility="private", and user_id set to the caller. The response may

        carry a non-blocking `warnings` list when a spec value looks physically

        implausible (e.g. motor R far outside the expected range for its Kv,

        weight, and diameter — often a milliohm/ohm mix-up or a per-phase value

        where phase-to-phase is expected). A warning never rejects the write.


        A motor is rejected with HTTP 400 naming `spec_json.iq_nominal` when

        `iq_nominal` is 40% or more of `iq_max`. For a motor with only `power_max`,

        the same error applies when `u_nominal` times `iq_nominal` is 30% or more of

        `power_max`. This almost certainly means a rated or maximum current was

        entered as no-load current. It would make the simulator overstate the

        motor''s own losses, raising current and lowering efficiency.'
      operationId: create_component_v1_components_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ComponentCreateBody'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComponentWriteResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: Create Component
      tags:
      - Components
  /v1/components/brands:
    get:
      description: 'Public-catalog brand counts for a given component type, filter-aware.


        Applies spec-range and non-brand discrete filters from the query string

        (same bracket syntax as /v1/components LIST), plus optional ?search=name

        matching. The ``brand[in]`` filter is intentionally ignored on this

        endpoint so selecting brands does not shrink the brand list to itself.


        Brandless rows (NULL or empty ``spec_json.brand``) are excluded per

        feedback_brandless_custom_components.md. has_more is always false because

        the brand list is bounded.


        Readable WITHOUT a credential: an anonymous caller counts the curated public

        catalog only, metered per client IP.'
      operationId: list_component_brands_v1_components_brands_get
      parameters:
      - in: query
        name: type
        required: true
        schema:
          pattern: ^(motor|battery|propeller)$
          title: Type
          type: string
      - in: query
        name: search
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Search
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComponentBrandsResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: List Component Brands
      tags:
      - Components
  /v1/components/{component_id}:
    delete:
      description: 'Delete a user-owned custom component.


        Permissions: owner can delete their own private customs; cross-user

        or public-catalog access returns 403/404.


        Returns 204 No Content on success.'
      operationId: delete_component_v1_components__component_id__delete
      parameters:
      - in: path
        name: component_id
        required: true
        schema:
          title: Component Id
          type: string
      responses:
        '204':
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: Delete Component
      tags:
      - Components
    get:
      description: 'Retrieve a single component by prefixed id.


        Public catalog: readable by any authenticated user.

        Private custom: readable by the owner only; cross-user access returns

        404 component_not_found.


        Readable WITHOUT a credential for a CURATED public row; a private,

        user-submitted or never-existed id all return the same 404, so the open

        route is no more of an existence oracle than the open list is.


        Returns the component resource (200).'
      operationId: get_component_v1_components__component_id__get
      parameters:
      - in: path
        name: component_id
        required: true
        schema:
          title: Component Id
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComponentResource'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: Get Component
      tags:
      - Components
    patch:
      description: 'Update an editable field on a user-owned custom component.


        Body fields are optional: `name` (1-255 chars), `spec_json` (replaces

        entire spec_json on write, no deep merge).


        Type, source, visibility, user_id, and base_component_id are not

        editable through /v1/.


        Returns the updated component resource (200), with the same non-blocking

        `warnings` behavior as create (a physically implausible spec value is

        flagged, not rejected). A motor `spec_json` gets the same 400 as on create

        when its `iq_nominal` is too high to be a no-load current.


        Permissions: owner can modify their own private customs; cross-user

        or public-catalog access returns 403/404.'
      operationId: patch_component_v1_components__component_id__patch
      parameters:
      - in: path
        name: component_id
        required: true
        schema:
          title: Component Id
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ComponentPatch'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComponentWriteResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: Patch Component
      tags:
      - Components
  /v1/components/{component_id}/specs:
    get:
      description: 'One component''s full datasheet. No tier, no challenge, no budget (D5).


        This endpoint used to be the narrow, metered door to the catalog: free tier

        402, paid tiers a Turnstile challenge plus a per-account budget of DISTINCT

        components per hour and per day, on the reasoning that the datasheet values

        were the product and had to be defended from a scraper.


        That reasoning is reversed (2026-09-17). The database is the thing worth

        publishing, not the thing worth hoarding: a component catalog that anybody

        can read, cite and link to is how the product gets found, and the paid tiers

        now sell the geometry model, dynamic runs, batch, FMU and CAD instead. So the

        capability check, the challenge, the lease and the budget headers are all

        gone, and the projection is the same one the list and detail reads return.


        The caller''s own custom component still returns its raw ``spec_json`` — that

        is their data, not the catalog''s, and it may carry fields no catalog row has.'
      operationId: get_component_specs_v1_components__component_id__specs_get
      parameters:
      - in: path
        name: component_id
        required: true
        schema:
          title: Component Id
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComponentSpecsResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: Get Component Specs
      tags:
      - Components
components:
  schemas:
    ComponentWriteResponse:
      description: 'Create/patch response: the component resource plus optional warnings.


        ``warnings`` is omitted (null) when every spec value looks plausible.'
      properties:
        base_component_id:
          anyOf:
          - format: uuid
            type: string
          - type: 'null'
          title: Base Component Id
        created_at:
          format: date-time
          title: Created At
          type: string
        id:
          title: Id
          type: string
        name:
          title: Name
          type: string
        object:
          default: component
          title: Object
          type: string
        source:
          title: Source
          type: string
        spec_json:
          additionalProperties: true
          title: Spec Json
          type: object
        type:
          title: Type
          type: string
        updated_at:
          format: date-time
          title: Updated At
          type: string
        user_id:
          anyOf:
          - format: uuid
            type: string
          - type: 'null'
          title: User Id
        visibility:
          title: Visibility
          type: string
        warnings:
          anyOf:
          - items:
              $ref: '#/components/schemas/ComponentWriteWarning'
            type: array
          - type: 'null'
          title: Warnings
      required:
      - id
      - type
      - source
      - visibility
      - name
      - spec_json
      - user_id
      - base_component_id
      - created_at
      - updated_at
      title: ComponentWriteResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    app__v1__serializers_components__ComponentListResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/ComponentResource'
          title: Data
          type: array
        filters:
          additionalProperties:
            $ref: '#/components/schemas/ComponentFilterBounds'
          description: Range filters the server applied, keyed by the documented field name. Empty when no range filter was supplied or when `type` was omitted (per-type filters need a type).
          title: Filters
          type: object
        gated_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: Gated Count
        has_more:
          title: Has More
          type: boolean
        next_cursor:
          anyOf:
          - type: string
          - type: 'null'
          title: Next Cursor
        object:
          default: list
          title: Object
          type: string
      required:
      - data
      - has_more
      - next_cursor
      title: ComponentListResponse
      type: object
    ComponentPatch:
      properties:
        name:
          anyOf:
          - maxLength: 255
            minLength: 1
            type: string
          - type: 'null'
          title: Name
        spec_json:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Spec Json
      title: ComponentPatch
      type: object
    ComponentIdsResponse:
      description: 'The Select-all id list.


        Returns EVERY component id matching the current search + filters in the

        requested ``sort_by``/``sort_order`` (the SAME primary ordering the paginated

        list uses), bounded by a documented hard cap. This sidesteps the cursor-keyset

        bug — the cursor keyset is ``(created_at, public_id)`` and so cannot honor a

        non-default ``sort_by``; a single sorted ``.limit(cap)`` query can. ``total``

        is the count returned (== matches when not truncated); ``truncated`` is true

        when the matching set exceeded the cap (the first ``cap`` ids, in sort order,

        are returned).'
      properties:
        data:
          items:
            type: string
          title: Data
          type: array
        filters:
          additionalProperties:
            $ref: '#/components/schemas/ComponentFilterBounds'
          description: Range filters the server applied, keyed by the documented field name. Empty when no range filter was supplied or when `type` was omitted (per-type filters need a type).
          title: Filters
          type: object
        object:
          default: list
          title: Object
          type: string
        total:
          description: Number of ids returned — the number of matches unless truncated.
          title: Total
          type: integer
        truncated:
          description: True when more than 5000 components matched. The first 5000 ids in the requested sort order are returned; narrow the filters to get the rest.
          title: Truncated
          type: boolean
      required:
      - data
      - total
      - truncated
      title: ComponentIdsResponse
      type: object
    ComponentResource:
      properties:
        base_component_id:
          anyOf:
          - format: uuid
            type: string
          - type: 'null'
          title: Base Component Id
        created_at:
          format: date-time
          title: Created At
          type: string
        id:
          title: Id
          type: string
        name:
          title: Name
          type: string
        object:
          default: component
          title: Object
          type: string
        source:
          title: Source
          type: string
        spec_json:
          additionalProperties: true
          title: Spec Json
          type: object
        type:
          title: Type
          type: string
        updated_at:
          format: date-time
          title: Updated At
          type: string
        user_id:
          anyOf:
          - format: uuid
            type: string
          - type: 'null'
          title: User Id
        visibility:
          title: Visibility
          type: string
      required:
      - id
      - type
      - source
      - visibility
      - name
      - spec_json
      - user_id
      - base_component_id
      - created_at
      - updated_at
      title: ComponentResource
      type: object
    ComponentWriteWarning:
      description: 'Non-blocking plausibility warning attached to a create/patch response.


        2026-07-16 R audit Phase C: the write succeeded — a warning never blocks —

        but a spec value looks physically implausible (e.g. spec_json.R far outside

        the R(kv, weight) band, the signature of a mOhm/Ohm slip or a per-phase

        value entered where phase-to-phase is expected).'
      properties:
        code:
          title: Code
          type: string
        message:
          title: Message
          type: string
        object:
          default: warning
          title: Object
          type: string
        param:
          title: Param
          type: string
      required:
      - code
      - param
      - message
      title: ComponentWriteWarning
      type: object
    ComponentCreateBody:
      properties:
        name:
          maxLength: 255
          minLength: 1
          title: Name
          type: string
        spec_json:
          additionalProperties: true
          title: Spec Json
          type: object
        type:
          pattern: ^(motor|battery|propeller)$
          title: Type
          type: string
      required:
      - type
      - name
      - spec_json
      title: ComponentCreateBody
      type: object
    ComponentBrandsResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/ComponentBrand'
          title: Data
          type: array
        has_more:
          title: Has More
          type: boolean
        next_cursor:
          anyOf:
          - type: string
          - type: 'null'
          title: Next Cursor
        object:
          default: list
          title: Object
          type: string
      required:
      - data
      - has_more
      - next_cursor
      title: ComponentBrandsResponse
      type: object
    ComponentFilterBounds:
      description: 'The inclusive bounds the server applied for one range filter.


        ``gte``/``lte`` are the collapsed bounds: repeated or strict operators on

        the same field fold into one inclusive interval, and an open end is null.'
      properties:
        gte:
          anyOf:
          - type: number
          - type: 'null'
          description: Lower bound applied, or null when open.
          title: Gte
        lte:
          anyOf:
          - type: number
          - type: 'null'
          description: Upper bound applied, or null when open.
          title: Lte
      title: ComponentFilterBounds
      type: object
    ComponentBrand:
      properties:
        count:
          title: Count
          type: integer
        name:
          title: Name
          type: string
        object:
          default: component_brand
          title: Object
          type: string
      required:
      - name
      - count
      title: ComponentBrand
      type: object
    ComponentSpecsResponse:
      description: 'The Turnstile-leased datasheet readout (spec gating, 2026-08-30).


        ``spec_json`` is the DATASHEET projection (``_CATALOG_DATASHEET_KEYS``) for

        a catalog motor/battery, the headline projection for other catalog types,

        and the raw spec for the caller''s own custom row. Never carries a catalog

        row''s ``inertia`` / ``L`` / battery resistances — those are absent from

        every allowlist this response can be built from.'
      properties:
        id:
          title: Id
          type: string
        object:
          default: component_specs
          title: Object
          type: string
        spec_json:
          additionalProperties: true
          title: Spec Json
          type: object
        type:
          title: Type
          type: string
      required:
      - id
      - type
      - spec_json
      title: ComponentSpecsResponse
      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