Create client token
Create a new client token for browser-to-API communication. Returns the plain token value once.
Authentication
Request
Legacy widget-version mode: ‘latest’ or ‘published’. It has never selected an agent version and still does not. An agent version id (agentver_…) is rejected on create; use targetVersionId to pin a version or targetAlias to follow a release alias. An update may echo back the value already stored.
Release alias this token follows. Re-resolved on every admission, so a deploy at that alias changes what the token runs. Mutually exclusive with targetVersionId.
Exact agent version this token runs. Never re-resolved. Mutually exclusive with targetAlias, and the token must carry exactly one agent id.