---
title: "Get Credential"
method: GET
path: "/credentials/by_model/{model_id}"
tags: ["credential management"]
---

# Get Credential

`GET /credentials/by_model/{model_id}`

[BETA] endpoint. This might change unexpectedly.

## Path parameters

- `credential_name` string, required — The credential name, percent-decoded; may contain slashes
- `model_id` string, nullable, required

## Response `200`

Successful Response

- CredentialItem
  - `credential_name` string, required
  - `credential_info` object, required
  - `credential_values` object, required

## Other responses

- `422` — Validation Error

---

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