---
title: "Get archive order"
method: GET
path: "/api/v2/logs/config/archive-order"
tags: ["Logs Archives"]
---

# Get archive order

`GET /api/v2/logs/config/archive-order`

Get the current order of your archives.
This endpoint takes no JSON arguments.

## Response `200`

OK

- LogsArchiveOrder — A ordered list of archive IDs.
  - `data` LogsArchiveOrderDefinition — The definition of an archive order.
    - `attributes` LogsArchiveOrderAttributes, required — The attributes associated with the archive order.
      - `archive_ids` string[], required — An ordered array of `<ARCHIVE_ID>` strings, the order of archive IDs in the array define the overall archives order for Datadog.
    - `type` 'archive_order', required — Type of the archive order definition.

## Other responses

- `403` — Forbidden
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
