---
title: "Set the calling member's LLM provider credential"
method: PUT
path: "/v1/llm-providers/{llmProviderId}/my-credential"
tags: ["LLM Providers"]
---

# Set the calling member's LLM provider credential

`PUT /v1/llm-providers/{llmProviderId}/my-credential`

Stores a write-only credential for the calling member on a granted per-member provider.

## Path parameters

- `llmProviderId` string, typeid, required

## Request body

- object
  - `apiKey` string
  - `apiKeys` object

## Response `200`

Member credential stored.

- LlmProviderMemberCredentialSummary
  - `state` 'active' | 'blocked' | 'stale' | 'error', required
  - `version` integer, required
  - `updatedAt` string, date-time, required

## Other responses

- `400` — The provider is not per-member or the credential is invalid.
- `401` — The caller must be signed in.
- `403` — The caller has not been granted this provider.
- `404` — The provider could not be found.
- `409` — The credential is blocked and only an admin can replace it.

## Changes

- **2026-09-04** `d3984673ccd1` — 1 info
  - added the optional property `anyOf[#/components/schemas/InvalidRequestError]/capability` to the response with the `400` status
- **2026-08-27** `3f52e8fe4c1b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/llm-providers/:llmProviderId/my-credential/put.md)

---

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