---
title: "List credentials"
method: GET
path: "/credentials"
tags: ["Credentials"]
---

# List credentials

`GET /credentials`

Lists all credentials, optionally filtered by user_id or type

## Query parameters

- `user_id` string
- `type` string

## Headers

- `X-Auth-Token` string, required

## Response `200`

Credentials listed successfully

- CredentialsResponse
  - `credentials` Credential[], required
    - `id` string, required
    - `user_id` string, required
    - `project_id` string
    - `type` string, required
    - `blob` string, required
    - `links` Links
      - `self` string, required
      - `previous` string, nullable
      - `next` string, nullable
  - `links` Links, required
    - `self` string, required
    - `previous` string, nullable
    - `next` string, nullable

## Other responses

- `400` — Bad Request
- `401` — Missing or invalid JWT token.
- `403` — Token does not have permission for this operation.

---

[API](https://skmtc.net/platform9/apis/cluster-blueprint-api.md) · [All operations](https://skmtc.net/platform9/apis/cluster-blueprint-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/platform9/cluster-blueprint-api/revisions/708ad90fe444/schema)
