Create or update a stored secret reference for the signed-in user.
Create or update a stored secret reference for the signed-in user. Use this for API keys, PATs, webhook HMAC secrets, and other static credentials already available inside trusted execution. Do not persist OAuth access or refresh tokens here — /connect/oauth and createAuthenticatedFetch / integrationTokenRefresh write those on the connection. Optional expires_at is a UTC ISO timestamp or YYYY-MM-DD; null clears expiry. Updates that only change description or expiry may omit value. Use /connect/secret-set for user-provided API key, PAT, and credential entry or rotation. Host use is authorized through secret policy approvals. Saved secrets are consumed in outbound fetch calls by placeholder, e.g. {{secret:name}}, resolved only for approved hosts.
Org permission: secret:write.
Request
- Base URL: https://api.kody.codes
- URL: https://api.kody.codes/v1/secrets/{scope}/{name}
- Auth: HTTP bearer
Path parameters
Storage scope that owns the secret.
Secret name to create or update.
Request body
Response
Success.
Changes
No recorded changes to this operation across all 2 revisions of this API.