---
title: "List baseline targets with their latest version"
method: GET
path: "/api/v1/baselines"
tags: ["Baselines"]
---

# List baseline targets with their latest version

`GET /api/v1/baselines`

## Request

- Base URL: `https://dungbeetle.dev`
- URL: `https://dungbeetle.dev/api/v1/baselines`
- Auth: one of:
  - HTTP basic
  - HTTP bearer

Requires the `baselines:read` scope on agent tokens.

## Response `200`

Targets and their latest versions.

- object
  - `targets` BaselineTargetSummary[], required
    - `target` string, required
    - `kind` string, required
    - `latestVersion` integer, required
    - `digest` string, required
    - `updatedAt` string, required

## Other responses

- `401`: Missing/malformed Authorization header (`code: unauthorized`), bad Basic credentials (`code: invalid_credentials`), or an invalid, expired, or revoked agent token (`code: invalid_agent_token`).
- `403`: Agent token outside its granted scopes (`code: missing_scope`, with a `scope` field naming the required scope) or a route that is not agent-accessible at all (`code: agent_forbidden`). Basic-auth requests never see this.
- `429`: Too many failed attempts or uploads from this client (`code: rate_limited`). Honor the `Retry-After` header; successful authenticated requests never count toward the limit.

---

[API](https://skmtc.dev/dungbeetle/apis/dungbeetle-cloud-api.md) · [All operations](https://skmtc.dev/dungbeetle/apis/dungbeetle-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dungbeetle/apis/dungbeetle-cloud-api/revisions/74778b90420a?raw)
