---
title: "Retrieve location and metadata of log archives"
method: GET
path: "/v1/logs/archives"
tags: ["logs"]
---

# Retrieve location and metadata of log archives

`GET /v1/logs/archives`

Retrieves a list of log archives within a time period.

## Query parameters

- `startTime` string, required
- `endTime` string, required
- `pageSize` integer
- `skipToken` string

## Response `200`

The request has succeeded.

- object
  - `logArchives` LogsArchive[], required — Array of log archives.
    - `id` string, required — The unique identifier of the log archive
    - `name` string, required — The name of the log archive
    - `downloadUrl` string, required — The download URL of the log archive
    - `archivedTimestamp` string, required — The timestamp of when the log archive was created in epoch time
    - `archiveSize` number, float, required — The size of the archive
  - `pageInfo` CommonPageInfo, required
    - `prevPage` string, required — Token for the previous page, or empty string if on the first page.
    - `nextPage` string, required — Token for the next page, or empty string if on the last page.

## Other responses

- `400` — The server could not understand the request due to invalid syntax.
- `401` — Access is unauthorized.
- `500` — Server error

---

[API](https://skmtc.net/solarwinds/apis/solarwinds-observability.md) · [All operations](https://skmtc.net/solarwinds/apis/solarwinds-observability/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/solarwinds/solarwinds-observability/versions/994e5ca64961/schema)
