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

# Get Credential By Model

`GET /credentials/by_model/{model_id}`

[BETA] endpoint. This might change unexpectedly.

## Path parameters

- `model_id` string, required — The model ID to look up credentials for

## 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.net/flock/apis/litellm-api.md) · [All operations](https://skmtc.net/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flock/litellm-api/revisions/8fbaab4fc7c5/schema)
