Update Agent Secret
PATCHhttps://a.klaviyo.com/api/agent-secrets/{id}
Renames the secret and/or rotates its value.
Rotating the value re-encrypts the secret at rest; every tool that references this secret picks up the new value automatically without per-tool reconfiguration.
- Revision header
revision: 2026-07-15.prerequired- Scopes
agents:write- Rate limits
- Burst:
10/sSteady:150/m
Path parameters
Query parameters
For more information please visit API overview
Headers
API endpoint revision (format: YYYY-MM-DD[.suffix])
2026-07-15.pre
Request body
Content type: application/vnd.api+jsonrequired
Show 3 fields
Agent Secret identifier.
Show 2 fields
Display name for the secret. Leading and trailing whitespace is stripped before validation; the resulting name must be non-empty.
Plaintext secret value. Setting this field rotates the secret; all tools referencing it pick up the new value automatically.
Responses
200Success
Content type: application/vnd.api+json
Show 5 fields
Agent Secret identifier.
Show 4 fields
Display name for the secret.
Last 3 characters of the plaintext value, for visual disambiguation. The plaintext itself is never returned.
Date and time when the secret was created.
Date and time when the secret was last updated.
Show 1 field
4XXClient Error
Content type: application/vnd.api+json
5XXServer Error
Content type: application/vnd.api+json