Obtaining an access token
In order to initiate a conversation session with a Digital Human, your application must first acquire a one time use access token to be used by your website and the uneeq-js SDK to authenticate to the UneeQ Platform.
Check out this example Node application which returns a single use token as generated by the UneeQ API server.
Customer JWT token
The process to acquire a one time use token requires JWT encryption (on the client side), and JWT decryption (on the UneeQ server). To achieve this, a shared JWT secret must be possessed by both sides. This JWT secret can be retrieved from the Deploy > Build your own area of UneeQ Creator. Otherwise, our Customer Success team can provide you with this token. Clients may not provide their own.
The token value can then be used by the uneeq-js SDK to instantiate a conversation session with a digital human via initWithToken() method. SDK Methods
Request Body Details
This payload should be encrypted using the customerUneeqSecret:
A value defined by you, to help you identify this conversation session in your own platform. Can be a blank string.
Optional. Any ad-hoc values you wish to be sent in any subsequent from the Platform. Must be stringified JSON.
The workspaceId is the ID which identifies the Persona that you wish to start a conversation with. You can find your personaId within the Personas area of the . Otherwise, our Customer Success team can provide you with this ID.