---
updatedAt: 2026-05-27T20:00:17.000Z
agentTools:
  projectIndex: https://replicated-vendor-api.readme.io/llms.txt
---

# List CMX usage history.

List CMX usage history for both VMs and clusters.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "Create, List, and Fetch apps",
    "title": "Vendor API V3",
    "contact": {
      "name": "Replicated, Inc.",
      "url": "http://www.replicated.com/",
      "email": "info@replicated.com"
    },
    "version": "3.0.0"
  },
  "paths": {
    "/cmx/history": {
      "get": {
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "List CMX usage history for both VMs and clusters.",
        "tags": [
          "cmx"
        ],
        "summary": "List CMX usage history.",
        "operationId": "listCMXHistory",
        "parameters": [
          {
            "x-go-name": "PageSize",
            "description": "Page size",
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 20
            }
          },
          {
            "x-go-name": "CurrentPage",
            "description": "Current page",
            "name": "currentPage",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "x-go-name": "SortColumn",
            "description": "Sort column",
            "name": "sortColumn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "x-go-name": "SortDesc",
            "description": "Sort descending",
            "name": "sortDesc",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "x-go-name": "StartTimeStr",
            "description": "Specify a start time in the format \"YYYY-MM-DDTHH:MM:SSZ\".",
            "name": "start-time",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "x-go-name": "EndTimeStr",
            "description": "Specify an end time in the format \"YYYY-MM-DDTHH:MM:SSZ\".",
            "name": "end-time",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "x-go-name": "ActorFilter",
            "description": "Filter history by actor type or name, e.g. \"user\" or \"Replicated CLI\".",
            "name": "actor-filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "x-go-name": "TagFilter",
            "description": "Filter history by tag, e.g. \"tag1=value1\".",
            "name": "tag-filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "x-go-name": "TagSortKey",
            "description": "Sort history by a specific key, e.g. \"terminated_at\" would sort by\ntermination time.",
            "name": "tag-sort-key",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "x-go-name": "DistributionType",
            "description": "Filter by distribution type",
            "name": "distribution-type",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "kubernetes",
                "vm"
              ]
            }
          },
          {
            "x-go-name": "TotalOnly",
            "description": "Only return the total count of items.  Supports filtering using other parameters.",
            "name": "count-only",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/listCMXHistoryResponse"
          },
          "400": {
            "$ref": "#/components/responses/responseErrBadRequest"
          },
          "401": {
            "$ref": "#/components/responses/responseErrUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/responseErrForbidden"
          },
          "404": {
            "$ref": "#/components/responses/responseErrNotFound"
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.replicated.com/vendor/v3"
    }
  ],
  "components": {
    "responses": {
      "listCMXHistoryResponse": {
        "description": "ListCMXHistoryResponse contains the response to listing CMX history",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "history": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CMXHistory"
                  },
                  "x-go-name": "History"
                },
                "total": {
                  "type": "integer",
                  "format": "int64",
                  "x-go-name": "Total"
                }
              }
            }
          }
        }
      },
      "responseErrBadRequest": {
        "description": "Returned on bad input",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error_code": {
                  "description": "Error code if available",
                  "type": "string",
                  "x-go-name": "ErrorCode"
                },
                "message": {
                  "description": "Error message text if available",
                  "type": "string",
                  "x-go-name": "Message"
                }
              }
            }
          }
        }
      },
      "responseErrForbidden": {
        "description": "Returned if the caller does not have the needed permission",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "x-go-name": "Message"
                    },
                    "messageCode": {
                      "type": "string",
                      "x-go-name": "MessageCode"
                    }
                  },
                  "x-go-name": "Error"
                }
              }
            }
          }
        }
      },
      "responseErrNotFound": {
        "description": "Returned on resource not found",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "x-go-name": "Message"
                }
              }
            }
          }
        }
      },
      "responseErrUnauthorized": {
        "description": "Return if the caller is not authorized",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "x-go-name": "Message"
                }
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    },
    "schemas": {
      "Actor": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "x-go-name": "Description"
          },
          "id": {
            "type": "string",
            "x-go-name": "ID"
          },
          "link": {
            "type": "string",
            "x-go-name": "Link"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "x-go-name": "Timestamp"
          },
          "type": {
            "type": "string",
            "x-go-name": "Type"
          }
        },
        "x-go-package": "github.com/replicatedhq/vandoor/pkg/models/types"
      },
      "CMXHistory": {
        "description": "Any non-historical fields have been omitted.",
        "type": "object",
        "title": "CMXHistory represents shared fields of history for various DistributionTypes.",
        "properties": {
          "actor": {
            "$ref": "#/components/schemas/Actor"
          },
          "assigned_at": {
            "type": "string",
            "format": "date-time",
            "x-go-name": "AssignedAt"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "x-go-name": "CreatedAt"
          },
          "credits_per_hour": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "CreditsPerHour"
          },
          "disk_gib": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "DiskGiB"
          },
          "distribution": {
            "type": "string",
            "x-go-name": "Distribution"
          },
          "distribution_type": {
            "$ref": "#/components/schemas/DistributionType"
          },
          "duration": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "Duration"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "x-go-name": "ExpiresAt"
          },
          "flat_fee": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "FlatFee"
          },
          "guid": {
            "type": "string",
            "x-go-name": "GUID"
          },
          "has_network_report": {
            "type": "boolean",
            "x-go-name": "HasNetworkReport"
          },
          "id": {
            "type": "string",
            "x-go-name": "ShortID"
          },
          "instance_type": {
            "type": "string",
            "x-go-name": "InstanceType"
          },
          "minutes_billed": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "MinutesBilled"
          },
          "name": {
            "type": "string",
            "x-go-name": "Name"
          },
          "network_id": {
            "type": "string",
            "x-go-name": "NetworkID"
          },
          "node_groups": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "NodeGroupCount"
          },
          "nodes": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "ClusterNodeCount"
          },
          "running_at": {
            "type": "string",
            "format": "date-time",
            "x-go-name": "RunningAt"
          },
          "status": {
            "type": "string",
            "x-go-name": "Status"
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tag"
            },
            "x-go-name": "Tags"
          },
          "team_id": {
            "type": "string",
            "x-go-name": "TeamID"
          },
          "terminated_at": {
            "type": "string",
            "format": "date-time",
            "x-go-name": "TerminatedAt"
          },
          "total_credits": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "TotalCredits"
          },
          "ttl": {
            "type": "string",
            "x-go-name": "TTL"
          },
          "version": {
            "type": "string",
            "x-go-name": "Version"
          }
        },
        "x-go-package": "github.com/replicatedhq/vandoor/pkg/vendor-api/cmx/types"
      },
      "DistributionType": {
        "type": "string",
        "x-go-package": "github.com/replicatedhq/vandoor/pkg/vendor-api/cmx/types"
      },
      "Tag": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "x-go-name": "Key"
          },
          "value": {
            "type": "string",
            "x-go-name": "Value"
          }
        },
        "x-go-package": "github.com/replicatedhq/vandoor/pkg/vendor-api/cmx/types"
      }
    }
  }
}
```