---
title: "Get hosts using a credential"
method: GET
path: "/credentials/{id}/hosts"
tags: ["Credentials"]
---

# Get hosts using a credential

`GET /credentials/{id}/hosts`

Retrieves a list of hosts that are using a specific credential.

## Path parameters

- `id` integer, required

## Response `200`

A list of hosts.

## Other responses

- `400` — Invalid request.
- `500` — Failed to fetch hosts using credential.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
