Update client token
Update fields on an existing client token.
Authentication
AuthorizationBearer
API key or Clerk session token
Path parameters
id
Request
This endpoint expects an object.
agentIds
allowedOrigins
Allowed request origins for this token. Each entry is an exact origin (https://app.example.com), a wildcard subdomain (https://*.example.com), '*' for all origins, or the literal 'native' — a sentinel that admits requests carrying NO Origin header (native mobile apps). A token with 'native' has effectively no origin protection and relies on its capability scope.
config
defaultFlowId
flowIds
isActive
maxMessagesPerSession
name
pinToVersion
Legacy widget-version mode: ‘latest’ or ‘published’. A NEW agent version id (agentver_…) is rejected; echoing back the value already stored is accepted and ignored, so a read-modify-write client can save unrelated fields. Use targetVersionId to pin a version.
rateLimitPerHour
rateLimitPerMinute
sessionIdleTimeoutMinutes
targetAlias
targetVersionId
Response
Updated client token
clientToken
warnings
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error