Tru-Stock AI API

Tru-Stock AI API as documented publicly. Contract generated from the documentation by API Evangelist (2026-11-27); not the provider's own document.

GitHub OpenAPI

Operations 23

GET /api/ai/recommendations Get Top Recommendations #
GET /api/ai/reorder Get Reorder Suggestions #
GET /api/alerts Alerts #
PATCH /api/alerts Update Alerts #
GET /api/export Export Data #
DELETE /api/items Delete Product #
GET /api/items List Products #
PATCH /api/items Bulk Status Update #
PUT /api/items Update Product #
GET /api/items/{id} Get Product Detail #
GET /api/parts/companions Batch lookup kit relationships for one or more products. #
POST /api/parts/upload Upload a PRP Excel file to create or update kit part mappings. #
GET /api/sales-history Get Sales History #
PATCH /api/sales-history Exclude or Include a Sale #
GET /api/top-movers Top Movers #
GET /api/v1/health Public health check endpoint. No authentication required. #
GET /api/v1/inventory Returns inventory balances. #
DELETE /api/v1/keys Revoke an API key. #
GET /api/v1/keys List all API keys for your organization. #
POST /api/v1/keys Create a new API key. #
GET /api/v1/products GET /api/v1/products #
GET /api/v1/reorder Returns the reorder suggestions from your dashboard snapshot, based on demand and vendor lead times. #
GET /api/vendors Vendor Lead Times #

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/tru-stock-ai:tru-stock-ai-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

tru-stock-ai-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Tru-Stock AI API
  version: '2026-11-27'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-27: 23 operation(s) read from 7 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; Tru-Stock AI has published no machine-readable contract that
    the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 1
    documentation: 22
    pages-with-code: 3
    pages-read: 7
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-27'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://www.tru-stock.ai/api-docs/v1
  - https://www.tru-stock.ai/developers
  - https://www.tru-stock.ai/api-docs/products
  - https://www.tru-stock.ai/api-docs/order-plan
  - https://www.tru-stock.ai/api-docs/introduction
  - https://www.tru-stock.ai/api-docs/sales-orders
  - https://www.tru-stock.ai/api-docs/bill-of-materials
paths:
  /api/ai/recommendations:
    get:
      operationId: get_api_ai_recommendations
      tags:
      - Api
      summary: Get Top Recommendations
      x-source: https://www.tru-stock.ai/api-docs/order-plan
      parameters:
      - name: refresh
        in: query
        required: false
        schema:
          type: boolean
        description: Set to true to bypass cache.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiAiRecommendationsResponse'
      x-evidence:
        kind: documentation
  /api/ai/reorder:
    get:
      operationId: get_api_ai_reorder
      tags:
      - Api
      summary: Get Reorder Suggestions
      x-source: https://www.tru-stock.ai/api-docs/order-plan
      parameters:
      - name: refresh
        in: query
        required: false
        schema:
          type: boolean
        description: Set to true to bypass cache and recalculate.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiAiReorderResponse'
      x-evidence:
        kind: documentation
  /api/alerts:
    get:
      operationId: get_api_alerts
      tags:
      - Api
      summary: Alerts
      x-source: https://www.tru-stock.ai/api-docs/order-plan
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: 'Results per page (default: 20, max: 100).'
      - name: offset
        in: query
        required: false
        schema:
          type: integer
        description: 'Pagination offset (default: 0).'
      - name: unread
        in: query
        required: false
        schema:
          type: boolean
        description: Only return unread alerts.
      - name: severity
        in: query
        required: false
        schema:
          type: string
        description: 'Filter: critical, warning, or info.'
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiAlertsResponse'
      x-evidence:
        kind: documentation
    patch:
      operationId: patch_api_alerts
      tags:
      - Api
      summary: Update Alerts
      x-source: https://www.tru-stock.ai/api-docs/order-plan
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchApiAlertsRequest'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/export:
    get:
      operationId: get_api_export
      tags:
      - Api
      summary: Export Data
      x-source: https://www.tru-stock.ai/api-docs/order-plan
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiExportResponse'
      x-evidence:
        kind: documentation
  /api/items:
    delete:
      operationId: delete_api_items
      tags:
      - Api
      summary: Delete Product
      x-source: https://www.tru-stock.ai/api-docs/products
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    get:
      operationId: get_api_items
      tags:
      - Api
      summary: List Products
      x-source: https://www.tru-stock.ai/api-docs/products
      parameters:
      - name: q
        in: query
        required: false
        schema:
          type: string
        description: Search by SKU or product name.
      - name: page
        in: query
        required: false
        schema:
          type: integer
        description: 'Page number (default: 1).'
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: 'Results per page (default: 50, max: 100).'
      - name: status
        in: query
        required: false
        schema:
          type: string
        description: 'Filter by status: active or inactive.'
      - name: stock
        in: query
        required: false
        schema:
          type: string
        description: 'Stock filter: zero , low , high , or dead.'
      - name: activeOnly
        in: query
        required: false
        schema:
          type: boolean
        description: Only return products with recent sales activity.
      - name: location
        in: query
        required: false
        schema:
          type: string
        description: Filter by location ID.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiItemsResponse'
      x-evidence:
        kind: documentation
    patch:
      operationId: patch_api_items
      tags:
      - Api
      summary: Bulk Status Update
      x-source: https://www.tru-stock.ai/api-docs/products
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchApiItemsRequest'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    put:
      operationId: put_api_items
      tags:
      - Api
      summary: Update Product
      x-source: https://www.tru-stock.ai/api-docs/products
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutApiItemsRequest'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/items/{id}:
    get:
      operationId: get_api_items_id
      tags:
      - Api
      summary: Get Product Detail
      x-source: https://www.tru-stock.ai/api-docs/products
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiItemsIdResponse'
      x-evidence:
        kind: documentation
  /api/parts/companions:
    get:
      operationId: get_api_parts_companions
      tags:
      - Api
      summary: Batch lookup kit relationships for one or more products.
      x-source: https://www.tru-stock.ai/api-docs/bill-of-materials
      parameters:
      - name: productIds
        in: query
        required: true
        schema:
          type: string
        description: Comma-separated product UUIDs.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiPartsCompanionsResponse'
      x-evidence:
        kind: documentation
  /api/parts/upload:
    post:
      operationId: post_api_parts_upload
      tags:
      - Api
      summary: Upload a PRP Excel file to create or update kit part mappings.
      x-source: https://www.tru-stock.ai/api-docs/bill-of-materials
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiPartsUploadRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiPartsUploadResponse'
      x-evidence:
        kind: documentation
  /api/sales-history:
    get:
      operationId: get_api_sales_history
      tags:
      - Api
      summary: Get Sales History
      x-source: https://www.tru-stock.ai/api-docs/sales-orders
      parameters:
      - name: productId
        in: query
        required: true
        schema:
          type: string
        description: The product UUID to fetch sales for.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiSalesHistoryResponse'
      x-evidence:
        kind: documentation
    patch:
      operationId: patch_api_sales_history
      tags:
      - Api
      summary: Exclude or Include a Sale
      x-source: https://www.tru-stock.ai/api-docs/sales-orders
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchApiSalesHistoryRequest'
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatchApiSalesHistoryResponse'
      x-evidence:
        kind: documentation
  /api/top-movers:
    get:
      operationId: get_api_top_movers
      tags:
      - Api
      summary: Top Movers
      x-source: https://www.tru-stock.ai/api-docs/sales-orders
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiTopMoversResponse'
      x-evidence:
        kind: documentation
  /api/v1/health:
    get:
      operationId: get_api_v1_health
      tags:
      - Api
      summary: Public health check endpoint. No authentication required.
      x-source: https://www.tru-stock.ai/api-docs/v1
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1HealthResponse'
      x-evidence:
        kind: documentation
  /api/v1/inventory:
    get:
      operationId: get_api_v1_inventory
      tags:
      - Api
      summary: Returns inventory balances.
      x-source: https://www.tru-stock.ai/api-docs/v1
      parameters:
      - name: sku
        in: query
        required: false
        schema:
          type: string
        description: Exact SKU for single product lookup
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1InventoryResponse'
      x-evidence:
        kind: documentation
  /api/v1/keys:
    delete:
      operationId: delete_api_v1_keys
      tags:
      - Api
      summary: Revoke an API key.
      x-source: https://www.tru-stock.ai/api-docs/v1
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteApiV1KeysResponse'
      x-evidence:
        kind: documentation
    get:
      operationId: get_api_v1_keys
      tags:
      - Api
      summary: List all API keys for your organization.
      x-source: https://www.tru-stock.ai/api-docs/v1
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1KeysResponse'
      x-evidence:
        kind: documentation
    post:
      operationId: post_api_v1_keys
      tags:
      - Api
      summary: Create a new API key.
      x-source: https://www.tru-stock.ai/api-docs/v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1KeysRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1KeysResponse'
      x-evidence:
        kind: documentation
  /api/v1/products:
    get:
      operationId: get_api_v1_products
      tags:
      - Api
      summary: GET /api/v1/products
      x-source: https://www.tru-stock.ai/api-docs/v1
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1ProductsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -H "X-API-Key: tsk_your_api_key_here"  https://www.tru-stock.ai/api/v1/products Rate Limits 100 requests per minute per
          API key. Exceeding the limit returns 429 Too Many Requests with Retry-After header. Plans The plan is checked on every API-key request,
          and a trial follows the plan being trialed. A key belonging to an organization whose plan does not include the API returns 403 Forbidden
          wi'
  /api/v1/reorder:
    get:
      operationId: get_api_v1_reorder
      tags:
      - Api
      summary: Returns the reorder suggestions from your dashboard snapshot, based on demand and vendor lead times.
      x-source: https://www.tru-stock.ai/api-docs/v1
      parameters:
      - name: urgency
        in: query
        required: false
        schema:
          type: string
        description: 'Comma-separated urgency filter: "critical", "high", "medium", "low"'
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1ReorderResponse'
      x-evidence:
        kind: documentation
  /api/vendors:
    get:
      operationId: get_api_vendors
      tags:
      - Api
      summary: Vendor Lead Times
      x-source: https://www.tru-stock.ai/api-docs/order-plan
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiVendorsResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    GetApiAiRecommendationsResponse:
      type: object
      properties:
        suggestions:
          type: array
          description: Filtered subset of reorder suggestions.
        metadata:
          type: object
          description: Metadata about the response.
    GetApiAiReorderResponse:
      type: object
      properties:
        suggestions:
          type: array
          description: List of reorder suggestions.
        metadata:
          type: object
          description: Metadata about the response.
    GetApiAlertsResponse:
      type: object
      properties:
        alerts:
          type: array
          description: List of alert objects.
        unreadCount:
          type: integer
          description: Number of unread alerts.
    PatchApiAlertsRequest:
      type: object
      properties:
        ids:
          type: array
          description: Array of alert IDs to act on.
        action:
          type: string
          description: 'Action to perform: "read", "read_all", or "dismiss".'
      required:
      - action
    GetApiExportResponse:
      type: object
      properties:
        ? ''
        : type: string
          description: ZIP archive containing CSV files of the full dataset.
    GetApiItemsResponse:
      type: object
      properties:
        items:
          type: array
          description: List of product objects.
        total:
          type: integer
          description: Total number of products.
        page:
          type: integer
          description: Current page number.
        pages:
          type: integer
          description: Total pages available.
    PatchApiItemsRequest:
      type: object
      properties:
        ids:
          type: array
          description: Array of product IDs.
        status:
          type: string
          description: New status to apply.
      required:
      - ids
      - status
    PutApiItemsRequest:
      type: object
      properties:
        id:
          type: string
          description: Product identifier.
        sku:
          type: string
          description: Product SKU.
        name:
          type: string
          description: Product name.
        category:
          type: string
          description: Product category.
        unitCost:
          type: number
          description: Unit cost.
        status:
          type: string
          description: Product status.
      required:
      - id
      - sku
      - name
      - category
      - unitCost
      - status
    GetApiItemsIdResponse:
      type: object
      properties:
        recommendation:
          type: string
          description: AI recommendation text.
        product:
          type: object
          description: Basic product information.
        inventory:
          type: object
          description: Inventory details.
        vendor:
          type: object
          description: Vendor information.
        leadTime:
          type: object
          description: Lead time analytics.
        demand:
          type: object
          description: Demand analytics.
        reorder:
          type: object
          description: Reorder calculations.
        monthlySales:
          type: array
          description: Monthly sales history.
        forecast:
          type: object
          description: AI forecast details.
    GetApiPartsCompanionsResponse:
      type: object
      properties:
        product-uuid-1:
          type: object
          description: Keyed by product UUID, contains kits and companionOf arrays.
        kits:
          type: array
          description: List of kits the product belongs to.
        kits[].id:
          type: string
          description: Kit UUID.
        kits[].name:
          type: string
          description: Kit name.
        kits[].quantity:
          type: integer
          description: Quantity of the kit.
        kits[].isCompanion:
          type: boolean
          description: Whether the product is a companion in this kit.
        companionOf:
          type: array
          description: Kits where the product is a companion.
        companionOf[].kitId:
          type: string
          description: Kit UUID.
        companionOf[].kitName:
          type: string
          description: Kit name.
        companionOf[].quantity:
          type: integer
          description: Quantity required as companion.
    PostApiPartsUploadRequest:
      type: object
      properties:
        file:
          type: string
          description: Excel file containing kit part mappings.
      required:
      - file
    PostApiPartsUploadResponse:
      type: object
      properties:
        ok:
          type: boolean
          description: Indicates success.
        imported:
          type: integer
          description: Number of rows imported.
        matched:
          type: integer
          description: Number of rows matched to existing inventory.
        unmatched:
          type: integer
          description: Number of rows not matched.
    GetApiSalesHistoryResponse:
      type: object
      properties:
        sales:
          type: array
          description: List of sales transactions.
        totalQty:
          type: integer
          description: Total quantity sold.
        excludedQty:
          type: integer
          description: Quantity of excluded sales.
    PatchApiSalesHistoryRequest:
      type: object
      properties:
        id:
          type: string
          description: sale-uuid
        excluded:
          type: boolean
          description: 'true'
      required:
      - id
      - excluded
    PatchApiSalesHistoryResponse:
      type: object
      properties:
        ok:
          type: boolean
          description: 'true'
    GetApiTopMoversResponse:
      type: object
      properties:
        movers:
          type: array
          description: List of top 200 highest-velocity products.
    GetApiV1HealthResponse:
      type: object
      properties:
        ok:
          type: boolean
        status:
          type: string
        service:
          type: string
        version:
          type: string
        timestamp:
          type: string
        latency_ms:
          type: number
        checks:
          type: object
        active_orgs_24h:
          type: number
        commit:
          type: string
    GetApiV1InventoryResponse:
      type: object
      properties:
        data:
          type: array
          description: List of inventory balance objects
    DeleteApiV1KeysResponse:
      type: object
      properties:
        ok:
          type: boolean
    GetApiV1KeysResponse:
      type: object
      properties:
        data:
          type: array
          description: List of API key metadata objects
    PostApiV1KeysRequest:
      type: object
      properties:
        name:
          type: string
          description: Name for the new API key
      required:
      - name
    PostApiV1KeysResponse:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        key:
          type: string
        created_at:
          type: string
        note:
          type: string
    GetApiV1ProductsResponse:
      type: object
      properties:
        error:
          type: string
    GetApiV1ReorderResponse:
      type: object
      properties:
        data:
          type: array
          description: List of reorder suggestion objects
        total:
          type: number
          description: Total number of suggestions
    GetApiVendorsResponse:
      type: object
      properties:
        ? ''
        : type: array
          description: List of vendors with lead time calculations.
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
security:
- apiKey: []
tags:
- name: Api