Token API
**Endpoint:** `http://{{API_URL}}/external/api/token`
**Method:** `POST`
**Description:** This endpoint allows user to access GenAI using
token
**Request Body:**
```json
{
"username": "string", //Unique ID of the user [Mandatory]
"email": "user@hcl.com", //Email id of the user if different from username
[Mandatory]
"displayName": "DisplayName", //User display name for greeting the user
[Mandatory]
"access_token": "string" //access token for interactions [Mandatory]
}
```
Sample Response of Session Id
Using the generated Session Id:
Ex: http://{{API_URL}}/?SessionId=<Sessionid>
For running the chat-based use cases:
Ex: http://{{API_URL}}/?SessionId=<Sessionid>&number=<SNOWTicketNumber>