# Username

## Retrieve

`client.alias.username.retrieve(stringusername, RequestOptionsoptions?): User`

**get** `/v1/alias/{username}`

Get basic details about a user, given their username

### Parameters

- **username:** `string`

### Returns

- `User`

### Example

```node
import ValTown from '@valtown/sdk';

const client = new ValTown();

const user = await client.alias.username.retrieve('username');

console.log(user.id);
```
