# The taClient.getBotTokensForUser() method
This documents the `taClient.getBotTokensForUser()` method.
info
Async: This is a method you would want to use await with
This method has input parameters. The function could easily be defined as:
```ts
async function getBotTokensForUser(userId: string): Promise {
// backend logic
}
```
## Parameters:
- **userId** (string): The GUID of the user whose bot tokens should be retrieved
## General usage:
```ts
const response: Response = taClient.getBotTokensForUser(userGuid);
```
- For `Response` please find documentation at [Models -> Response](/documentation#Models/4-Response)
If you have not yet, please read [Client -> Introduction to the Client](/documentation#Client/3-client-intro)
## Standard Response:
```js
{
details: {
getBotTokensForUser: Response_GetBotTokensForUser,
oneofKind: 'getBotTokensForUser'
},
respondingToPacketId: 'packet-guid-uuidv4',
type: Response_ResponseType
}
```
- For `Response_GetBotTokensForUser` please find documentation at [Models -> Response_GetBotTokensForUser](/documentation#Models/4-Response_GetBotTokensForUser).
info
Note: This method retrieves the bot token metadata for a user but does not return the JWT itself. To view the actual JWT, you would need to use the response from `generateBotToken()`.