# List an agent's config versions

> Returns the agent's archived configurations, newest first.

Returns the agent's archived configurations, newest first. A version is written on create and on every subsequent write that changes the config — through the REST API or a formation apply alike. See [Versioning and Staged Rollout](/docs/modules/agents#versioning-and-staged-rollout).

  Request

<ParamsDetails
  {...require("./list-agent-versions.ParamsDetails.json")}
>

<RequestSchema
  {...require("./list-agent-versions.RequestSchema.json")}
>

<StatusCodes
  {...require("./list-agent-versions.StatusCodes.json")}
>
