ThrustLab Users API

The users API from ThrustLab — 3 operation(s) for users.

GitHub OpenAPI

Operations 4

GET /v1/users/me Get Users Me #
GET /v1/users/me/compare-lists Get Compare Lists #
PUT /v1/users/me/compare-lists Put Compare Lists #
DELETE /v1/users/me/compare-lists/{component_type}/{component_id} Delete Compare List Entry #

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-users-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-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Electric UAV powertrain simulation platform
  title: ThrustLab Users API
  version: v1-beta
servers:
- description: Production
  url: https://thrustlab.com
security:
- HTTPBearer: []
tags:
- name: Users
paths:
  /v1/users/me:
    get:
      description: 'Return the authenticated user''s profile.


        Includes: id, email, email_verified, tier (free|beta_tester|hobbyist|pro),

        unit_system (metric|imperial display preference; storage stays metric),

        trial_start/trial_end (or null), trial_days_remaining, and created_at.


        `concurrency` reports the live occupancy of the account-wide execution

        budget — `limit` from the plan, `active` runs holding a slot right now, and

        `queued` runs waiting for one. That budget is shared by the dashboard and

        every API key, so submitting from two places at once starves whichever went

        second; these numbers are how a client sees that instead of inferring it.

        All three read null if the occupancy store is briefly unreachable.


        `recent_project_id` is where a run started from a catalog page is filed

        unless the caller names another project: the project of the account''s most

        recent simulation, falling back to the default project, and null when the

        account has neither. It is a READ — asking who you are never creates a

        project.


        The `id` is a stable `user_`; safe to store in your own systems

        as a long-term identifier.'
      operationId: get_users_me_v1_users_me_get
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResource'
          description: Successful Response
      summary: Get Users Me
      tags:
      - Users
  /v1/users/me/compare-lists:
    get:
      description: 'Return the account''s comparison shortlists, one per component type.


        Each entry is `{id, added_at}` — the public component id and the ISO-8601

        instant it was added — ordered newest first and capped at ten per type. All

        three types are always present; an account that has never compared anything

        reads three empty lists rather than a 404.


        The list a signed-out visitor builds lives on their device. This is where it

        goes once there is an account, so it follows them to another browser.'
      operationId: get_compare_lists_v1_users_me_compare_lists_get
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompareListsResource'
          description: Successful Response
      summary: Get Compare Lists
      tags:
      - Users
    put:
      description: 'Merge the caller''s lists into the account''s, and return the result.


        This is a MERGE, not a replace, and that is the whole contract:


        * entries are unioned by id, keeping the earlier `added_at` of the two —

        that is when the component was actually added; a later timestamp is only

        the other device noticing;

        * the union is ordered newest first, ties broken by id, and truncated to

        ten per type;

        * an id that does not resolve to a curated, public component is dropped

        silently, so a component retired from the catalog leaves the list instead

        of turning every later sync into an error;

        * a type you omit is left exactly as it was — saying nothing about motors

        is not the same as saying you have no motors.


        Union rather than replace is what makes this safe to send from a device that

        has been offline or is out of date: it can add, and it can reorder by

        supplying an earlier time, but it cannot delete what another device added.


        Sending the device''s list on sign-in and storing what comes back is the

        whole synchronisation: both sides end up holding the same ten.'
      operationId: put_compare_lists_v1_users_me_compare_lists_put
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompareListsBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompareListsResource'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: Put Compare Lists
      tags:
      - Users
  /v1/users/me/compare-lists/{component_type}/{component_id}:
    delete:
      description: 'Take one component off one shortlist.


        The PUT above is a MERGE and cannot express a removal — that is what makes

        it safe to send from a stale device, and it is why taking something off is

        its own call, addressed to one id.


        IDEMPOTENT: 204 whether or not the id was on the list. A tray removing a row

        it has already removed — a retry, a second tab — is a request the account is

        already in compliance with, not an error.


        `component_type` is one of `motor`, `propeller`, `battery`; anything else is

        a 400 `invalid_request` rather than a 404, because the word is wrong, not

        the resource missing.'
      operationId: delete_compare_list_entry_v1_users_me_compare_lists__component_type___component_id__delete
      parameters:
      - in: path
        name: component_type
        required: true
        schema:
          title: Component Type
          type: string
      - 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 Compare List Entry
      tags:
      - Users
components:
  schemas:
    CompareListsOut:
      description: Every type, always all three, newest first and at most ten each.
      properties:
        battery:
          items:
            $ref: '#/components/schemas/CompareEntry'
          title: Battery
          type: array
        motor:
          items:
            $ref: '#/components/schemas/CompareEntry'
          title: Motor
          type: array
        propeller:
          items:
            $ref: '#/components/schemas/CompareEntry'
          title: Propeller
          type: array
      required:
      - motor
      - propeller
      - battery
      title: CompareListsOut
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    CompareEntryIn:
      description: 'One offered entry. Deliberately lenient about the timestamp.


        An `added_at` that is missing or not ISO-8601 does not reject the request —

        the entry is kept and treated as the OLDEST thing in the list, so a client

        with a broken clock or an older storage format loses its ordering rather

        than its shortlist.'
      properties:
        added_at:
          anyOf:
          - maxLength: 64
            type: string
          - type: 'null'
          description: ISO-8601 UTC instant the component was added. Missing or unparseable sorts last.
          title: Added At
        id:
          description: Public component id (`comp_…`).
          maxLength: 64
          title: Id
          type: string
      required:
      - id
      title: CompareEntryIn
      type: object
    CompareListsResource:
      properties:
        lists:
          $ref: '#/components/schemas/CompareListsOut'
        object:
          default: compare_lists
          title: Object
          type: string
      required:
      - lists
      title: CompareListsResource
      type: object
    CompareListsIn:
      description: The lists a client offers. An omitted type says nothing about that type.
      properties:
        battery:
          anyOf:
          - items:
              $ref: '#/components/schemas/CompareEntryIn'
            maxItems: 50
            type: array
          - type: 'null'
          title: Battery
        motor:
          anyOf:
          - items:
              $ref: '#/components/schemas/CompareEntryIn'
            maxItems: 50
            type: array
          - type: 'null'
          title: Motor
        propeller:
          anyOf:
          - items:
              $ref: '#/components/schemas/CompareEntryIn'
            maxItems: 50
            type: array
          - type: 'null'
          title: Propeller
      title: CompareListsIn
      type: object
    CompareEntry:
      description: 'One component on a comparison shortlist, and when it was added.


        The time is part of the value, not decoration: the list is bounded at ten

        and ordered newest-first, and a device list meeting an account list can only

        be merged into "the ten most recently added" if each entry says when.'
      properties:
        added_at:
          description: ISO-8601 UTC instant the component was added to the list.
          title: Added At
          type: string
        id:
          description: Public component id (`comp_…`).
          title: Id
          type: string
      required:
      - id
      - added_at
      title: CompareEntry
      type: object
    ConcurrencyResource:
      description: 'What the account''s shared execution budget is doing right now.


        ``max_concurrent_runs`` is account-wide across the dashboard and every API

        key, so a client submitting from two places starves whichever went second

        with no way to see why. These three numbers make that visible:


        * ``limit``  — simultaneous runs this plan allows (the entitlement).

        * ``active`` — runs holding an execution slot at this instant.

        * ``queued`` — runs waiting for one.


        All three are ``null`` when the occupancy store cannot be read; a whoami

        call never fails because a metering read did.'
      properties:
        active:
          anyOf:
          - type: integer
          - type: 'null'
          description: Runs holding an execution slot now, or null if unavailable.
          title: Active
        limit:
          anyOf:
          - type: integer
          - type: 'null'
          description: Simultaneous runs this plan allows, or null if unavailable.
          title: Limit
        queued:
          anyOf:
          - type: integer
          - type: 'null'
          description: Runs waiting for a slot, or null if unavailable.
          title: Queued
      required:
      - limit
      - active
      - queued
      title: ConcurrencyResource
      type: object
    UserResource:
      properties:
        concurrency:
          $ref: '#/components/schemas/ConcurrencyResource'
          description: Live occupancy of the account-wide execution budget shared by the dashboard and every API key.
        created_at:
          format: date-time
          title: Created At
          type: string
        default_project_id:
          anyOf:
          - type: string
          - type: 'null'
          description: Public id (proj_…) of the account's default project, or null when it has not been created yet.
          title: Default Project Id
        email:
          format: email
          title: Email
          type: string
        email_verified:
          title: Email Verified
          type: boolean
        entitlements:
          $ref: '#/components/schemas/EntitlementsResource'
        first_name:
          title: First Name
          type: string
        full_model_used_today:
          default: 0
          description: Full-model runs started by this account in the last 24 hours. A run is one job — a single point or a sweep.
          title: Full Model Used Today
          type: integer
        gate_required_tiers:
          additionalProperties:
            type: string
          title: Gate Required Tiers
          type: object
        id:
          title: Id
          type: string
        last_name:
          title: Last Name
          type: string
        object:
          default: user
          title: Object
          type: string
        recent_project_id:
          anyOf:
          - type: string
          - type: 'null'
          description: Public id (proj_…) of the project the account's most recent simulation was filed in, falling back to the default project. Null when the account has neither. This is where a run started from a catalog page is saved unless the caller names another project.
          title: Recent Project Id
        tier:
          title: Tier
          type: string
        trial_days_remaining:
          anyOf:
          - type: integer
          - type: 'null'
          readOnly: true
          title: Trial Days Remaining
        trial_end:
          anyOf:
          - format: date-time
            type: string
          - type: 'null'
          title: Trial End
        trial_start:
          anyOf:
          - format: date-time
            type: string
          - type: 'null'
          title: Trial Start
        unit_system:
          enum:
          - metric
          - imperial
          title: Unit System
          type: string
      required:
      - id
      - email
      - first_name
      - last_name
      - email_verified
      - tier
      - entitlements
      - gate_required_tiers
      - unit_system
      - trial_start
      - trial_end
      - created_at
      - trial_days_remaining
      title: UserResource
      type: object
    CompareListsBody:
      properties:
        lists:
          $ref: '#/components/schemas/CompareListsIn'
      required:
      - lists
      title: CompareListsBody
      type: object
    EntitlementsResource:
      description: 'The tier -> capability bundle serialized onto /v1/users/me.


        Sourced from ``entitlement_for(user.tier)`` (default-down), so the

        frontend has ONE authoritative entitlement source and never re-hardcodes

        tier sets. A plain declared model (NOT a ``@computed_field``) so it appears

        in the OpenAPI schema that codegen consumes.'
      properties:
        api_access:
          title: Api Access
          type: boolean
        cad_export:
          title: Cad Export
          type: boolean
        component_specs:
          default: true
          description: DEPRECATED — always true since 2026-09-17. Every catalog row and every datasheet field is readable on every tier; the field is kept for one SDK major so a pinned client's model still validates.
          title: Component Specs
          type: boolean
        creator_edit:
          title: Creator Edit
          type: boolean
        daily_cap:
          anyOf:
          - type: integer
          - type: 'null'
          description: DEPRECATED — always null since 2026-09-17. The free daily simulation cap was replaced by full_model_daily; read that instead.
          title: Daily Cap
        db_access:
          title: Db Access
          type: string
        fmi_export:
          title: Fmi Export
          type: boolean
        full_model_daily:
          anyOf:
          - type: integer
          - type: 'null'
          description: Full-model runs allowed per rolling 24 hours, or null when unlimited. A run is one job — a single point or a sweep. Fast-model runs are unlimited on every tier and never count against this.
          title: Full Model Daily
        max_concurrent_runs:
          description: Account-wide simulations that may execute simultaneously across dashboard sessions and every API key. Additional work stays queued.
          title: Max Concurrent Runs
          type: integer
        sim_types:
          items:
            type: string
          title: Sim Types
          type: array
        weekly_cap:
          anyOf:
          - type: integer
          - type: 'null'
          description: Compatibility field for a rolling weekly usage cap; null for current tiers.
          title: Weekly Cap
      required:
      - sim_types
      - db_access
      - cad_export
      - creator_edit
      - api_access
      - fmi_export
      - max_concurrent_runs
      - daily_cap
      - weekly_cap
      title: EntitlementsResource
      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