Skip to main content
GET
/
analytics
/
inventory
Inventory turnover and material usage
curl --request GET \
  --url https://api.autoprintfarm.com/public/v1/analytics/inventory \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "date_range": {
      "from": "<string>",
      "to": "<string>"
    },
    "summary": {
      "low_stock_skus": 123,
      "low_filament_spools": 123,
      "total_material_types": 123
    },
    "low_stock_items": [
      {
        "id": "<string>",
        "sku": "<string>",
        "color": "<string>",
        "stock_level": 123,
        "low_stock_threshold": 123,
        "product_name": "<string>"
      }
    ],
    "filament_inventory": [
      {
        "type": "<string>",
        "color": "<string>",
        "status": "<string>",
        "remaining_grams": 123,
        "low_threshold": 123
      }
    ],
    "material_usage": [
      {
        "material_type": "<string>",
        "total_usage": 123
      }
    ],
    "usage_trend": [
      {
        "date": "<string>",
        "usage": 123
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API keys are minted in the AutoPrintFarm web app under Settings → API Keys. Send as Authorization: Bearer apf_live_.... Keys are shown exactly once at creation and can be revoked at any time.

Query Parameters

from
string

Start of the reporting window (ISO date, e.g. 2026-01-01). Defaults to 30 days ago.

to
string

End of the reporting window (ISO date). Defaults to today.

Response

Inventory analytics report

success
enum<boolean>
required
Available options:
true
data
object
required