{
  "opencollection": "1.0.0",
  "info": {
    "name": "LangSmith access_policies fleet usage API",
    "version": "0.1.0"
  },
  "items": [
    {
      "info": {
        "name": "fleet usage",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List fleet agents with usage",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "/v1/platform/fleet/usage/agents",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Max results (max 100)"
              },
              {
                "name": "start_time",
                "value": "",
                "type": "query",
                "description": "Start of cost window (ISO8601)"
              },
              {
                "name": "end_time",
                "value": "",
                "type": "query",
                "description": "End of cost window (ISO8601)"
              },
              {
                "name": "sort_by",
                "value": "",
                "type": "query",
                "description": "Sort field (cost, runs, last_used, first_used)"
              },
              {
                "name": "sort_order",
                "value": "",
                "type": "query",
                "description": "Sort direction (asc, desc)"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-API-Key",
              "value": "{{X-API-Key}}",
              "placement": "header"
            }
          },
          "docs": "Returns the top agents in the workspace with cost data for the given time window. Defaults to sorting by cost descending; pass sort_by and sort_order to change. Data is sourced entirely from ClickHouse run metadata."
        },
        {
          "info": {
            "name": "List fleet models with usage",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "/v1/platform/fleet/usage/models",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Max results (max 100)"
              },
              {
                "name": "start_time",
                "value": "",
                "type": "query",
                "description": "Start of window (ISO8601)"
              },
              {
                "name": "end_time",
                "value": "",
                "type": "query",
                "description": "End of window (ISO8601)"
              },
              {
                "name": "sort_by",
                "value": "",
                "type": "query",
                "description": "Sort field (cost, runs, last_used)"
              },
              {
                "name": "sort_order",
                "value": "",
                "type": "query",
                "description": "Sort direction (asc, desc)"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-API-Key",
              "value": "{{X-API-Key}}",
              "placement": "header"
            }
          },
          "docs": "Returns the top models used in the workspace with aggregated cost and distinct run counts for the given time window. Defaults to sorting by cost descending; pass sort_by and sort_order to change."
        },
        {
          "info": {
            "name": "List fleet tools with usage",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "/v1/platform/fleet/usage/tools",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Max results (max 100)"
              },
              {
                "name": "start_time",
                "value": "",
                "type": "query",
                "description": "Start of window (ISO8601)"
              },
              {
                "name": "end_time",
                "value": "",
                "type": "query",
                "description": "End of window (ISO8601)"
              },
              {
                "name": "sort_by",
                "value": "",
                "type": "query",
                "description": "Sort field (runs, avg_latency_ms, agent_count, last_used)"
              },
              {
                "name": "sort_order",
                "value": "",
                "type": "query",
                "description": "Sort direction (asc, desc)"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-API-Key",
              "value": "{{X-API-Key}}",
              "placement": "header"
            }
          },
          "docs": "Returns the top tools in the workspace with run counts, latency, and agent counts for the given time window. Defaults to sorting by runs descending; pass sort_by and sort_order to change."
        },
        {
          "info": {
            "name": "List fleet users with usage",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "/v1/platform/fleet/usage/users",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Max results (max 100)"
              },
              {
                "name": "start_time",
                "value": "",
                "type": "query",
                "description": "Start of cost window (ISO8601)"
              },
              {
                "name": "end_time",
                "value": "",
                "type": "query",
                "description": "End of cost window (ISO8601)"
              },
              {
                "name": "sort_by",
                "value": "",
                "type": "query",
                "description": "Sort field (cost, runs, agent_count, last_used, first_used)"
              },
              {
                "name": "sort_order",
                "value": "",
                "type": "query",
                "description": "Sort direction (asc, desc)"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-API-Key",
              "value": "{{X-API-Key}}",
              "placement": "header"
            }
          },
          "docs": "Returns the top users with aggregated cost data for the given time window. Defaults to sorting by cost descending; pass sort_by and sort_order to change."
        }
      ]
    }
  ],
  "bundled": true
}