---
title: "Set Credential Value"
method: PUT
path: "/workflow/credentials/{credential_id}/value"
tags: ["workflow-credentials"]
---

# Set Credential Value

`PUT /workflow/credentials/{credential_id}/value`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/workflow/credentials/{credential_id}/value`
- Auth: HTTP bearer

Set a static credential's value. Write-only: there is no matching GET.

Only for a credential with no refresher — one whose material is typed in
rather than minted. The RPC enforces that too, so the 409 here is the
readable error rather than the guard.

## Path parameters

- `credential_id` string, uuid, required

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Request body

- CredentialValueWriteSchema: The value of a static credential — one with no refresher to mint it. An object rather than a bare string because `$credential('name')` is indexed by key everywhere else; a static credential holding {"api_key": "..."} reads identically to a refreshed one holding {"access_token": "..."}.
  - `value` object, required
  - `expires_at` string, date-time, nullable

## Response `204`

Successful Response

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/anyreach/apis/anyreach-api.md) - [All operations](https://skmtc.dev/anyreach/apis/anyreach-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anyreach/apis/anyreach-api/revisions/2eddf40c8c93?raw)
