Create anonymous visitor
Mints the anonymous identity a widget visitor presents as X-Visitor-Id on /v2/agent_aliases/{alias_key}/end_user_sessions requests, naming a connector in the session create body. No credential is required. The X-Customer-Id header carries the customer_id served by the public connector view; the minted id is scoped to that customer and authenticates the same visitor on any of the customer's widgets that admit anonymous visitors.
Call this only when the client holds no visitor id. The id never expires — store it durably; it is the only proof of ownership of the sessions it creates, and a repeat call mints a fresh identity that owns none of the previous identity's sessions.
Returns 404 when the customer does not exist, is disabled, or has no enabled widget connector that admits anonymous visitors — one indistinguishable refusal, so the endpoint confirms nothing about which customer ids exist.
Headers
The platform makes a best effort to complete the request in the specified seconds, or it times out.
The platform makes a best effort to complete the request in the specified milliseconds, or it times out.
The unique identifier of the customer to mint a visitor identity for, as served by the public connector view.
Response
The minted anonymous visitor identity.
Example response
{
"visitor_id": "vis_lZzE1YTgtNDA1Ni00MmU3LWI5YzMtZTQ4ZDQxN2I5ZTcw"
}