---
title: "Get my account"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.nicer.travel/llms.txt
> Use this file to discover all available pages before exploring further.

# Get my account

Path: Nicer API › identity

`GET /identity/user`

URL: `https://api.nicer.travel/identity/user`

Returns the signed-in person's own account profile: names, contact, avatar, biography, location, time zone, and the agency and role of their last switch.

## Authentication

- `bearerAuth`, http bearer, header `Authorization`, format `JWT`

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
});

await nicer.identity.user.list();
```

### Nicer CLI

```bash
nicer identity user list
```

### cURL

```bash
curl --request GET \
  --url https://api.nicer.travel/identity/user \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/identity/user';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/identity/user"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "avatar": "string",
  "biography": "string",
  "calendarUrl": "string",
  "companyName": "string",
  "deleted": true,
  "deletedAt": "string",
  "deletedBy": "string",
  "email": "string",
  "externalIntercomId": "string",
  "familyName": "string",
  "fullName": "string",
  "givenName": "string",
  "instagram": "string",
  "invitedAt": "string",
  "invitedBy": "string",
  "lastModifiedBy": "string",
  "location": {
    "address": "string",
    "city": "string",
    "country": "string",
    "countryCode": "string",
    "latitude": 0,
    "longitude": 0,
    "neighborhood": "string",
    "region": "string",
    "state": "string",
    "zipCode": "string"
  },
  "phoneNumber": "string",
  "registrationSource": "string",
  "role": "advisor",
  "searchKey": "string",
  "tenantOwner": true,
  "tourProgress": {
    "property1": {
      "completedAt": "string",
      "status": "completed"
    },
    "property2": {
      "completedAt": "string",
      "status": "completed"
    }
  },
  "username": "string",
  "zoneinfo": "string",
  "tenantId": "string",
  "userId": "string",
  "createdAt": "string",
  "type": "User",
  "updatedAt": "string"
}
```

- `familyName` (`identity.user.list.response.200.familyName`; string, required) — The person's last name.
- `fullName` (`identity.user.list.response.200.fullName`; any of, required) — givenName and familyName joined; null until the person has both.
  - any of the following: `string`, `null`
- `givenName` (`identity.user.list.response.200.givenName`; string, required) — The person's first name.
- `role` (`identity.user.list.response.200.role`; string, required) — The person's role in the agency they last switched into.
  - one of `"advisor"`, `"traveler"`, `"admin"`, `"superadmin"`
- `tenantId` (`identity.user.list.response.200.tenantId`; string, required) — The partition the account is stored in: the userId for every account opened today.
- `userId` (`identity.user.list.response.200.userId`; string, required) — The person's id, their sign-in subject.
- `createdAt` (`identity.user.list.response.200.createdAt`; string, required) — When the account was opened.
- `type` (`identity.user.list.response.200.type`; string, required)
- `updatedAt` (`identity.user.list.response.200.updatedAt`; string, required) — When the account last changed.
- `avatar` (`identity.user.list.response.200.avatar`; string, optional) — The person's photo: a URL, or the file's storage key in the answers of DELETE /identity/user/{userId} and of an admin's GET /identity/users.
- `biography` (`identity.user.list.response.200.biography`; any of, optional) — What the person writes about themself.
  - any of the following: `string`, `null`
- `calendarUrl` (`identity.user.list.response.200.calendarUrl`; any of, optional) — A link where people book time with the person.
  - any of the following: `string`, `null`
- `companyName` (`identity.user.list.response.200.companyName`; any of, optional) — The agency the person last switched into; null, empty or absent on some older accounts.
  - any of the following: `string`, `null`
- `deleted` (`identity.user.list.response.200.deleted`; boolean, optional) — True once the account is closed.
- `deletedAt` (`identity.user.list.response.200.deletedAt`; any of, optional) — When the account was closed.
  - any of the following: `string`, `null`
- `deletedBy` (`identity.user.list.response.200.deletedBy`; string, optional) — The user id of whoever closed the account.
- `email` (`identity.user.list.response.200.email`; any of, optional) — The email the person signs in with; absent, or null on some older accounts, for a person who signed up by phone.
  - any of the following: `string`, `null`
- `externalIntercomId` (`identity.user.list.response.200.externalIntercomId`; any of, optional) — A support-tool id some older accounts keep.
  - any of the following: `string`, `null`
- `instagram` (`identity.user.list.response.200.instagram`; any of, optional) — The person's Instagram handle.
  - any of the following: `string`, `null`
- `invitedAt` (`identity.user.list.response.200.invitedAt`; any of, optional) — When the person was invited, on some older accounts.
  - any of the following: `string`, `null`
- `invitedBy` (`identity.user.list.response.200.invitedBy`; any of, optional) — The user id of whoever invited or referred the person.
  - any of the following: `string`, `null`
- `lastModifiedBy` (`identity.user.list.response.200.lastModifiedBy`; string, optional) — The user id of whoever last changed the account.
- `location` (`identity.user.list.response.200.location`; object, optional) — Where the person says they are.
  - `address` (`identity.user.list.response.200.location.address`; string, optional)
  - `city` (`identity.user.list.response.200.location.city`; string, optional)
  - `country` (`identity.user.list.response.200.location.country`; string, optional)
  - `countryCode` (`identity.user.list.response.200.location.countryCode`; string, optional)
  - `latitude` (`identity.user.list.response.200.location.latitude`; number, optional)
  - `longitude` (`identity.user.list.response.200.location.longitude`; number, optional)
  - `neighborhood` (`identity.user.list.response.200.location.neighborhood`; string, optional)
  - `region` (`identity.user.list.response.200.location.region`; string, optional)
  - `state` (`identity.user.list.response.200.location.state`; string, optional)
  - `zipCode` (`identity.user.list.response.200.location.zipCode`; string, optional)
- `phoneNumber` (`identity.user.list.response.200.phoneNumber`; any of, optional) — The phone number the person signs in with; absent, or null on some older accounts, for a person who signed up by email.
  - any of the following: `string`, `null`
- `registrationSource` (`identity.user.list.response.200.registrationSource`; string, optional) — How the account was opened, such as INVITATION_REGISTRATION.
- `searchKey` (`identity.user.list.response.200.searchKey`; string, optional) — fullName in lowercase, which searches match.
- `tenantOwner` (`identity.user.list.response.200.tenantOwner`; boolean, optional) — Set on some older accounts.
- `tourProgress` (`identity.user.list.response.200.tourProgress`; map of object, optional) — The in-app product tours the person completed, skipped or dismissed, by tour id.
- `username` (`identity.user.list.response.200.username`; string, optional) — The person's handle, made from their name, for referral links.
- `zoneinfo` (`identity.user.list.response.200.zoneinfo`; any of, optional) — The person's time zone, an IANA name such as America/Bogota.
  - any of the following: `string`, `null`

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`identity.user.list.response.400.errorCode`; string, required)
- `errorMessage` (`identity.user.list.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`identity.user.list.response.401.errorCode`; string, required)
- `errorMessage` (`identity.user.list.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`identity.user.list.response.403.errorCode`; string, required)
- `errorMessage` (`identity.user.list.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/identity/identity.user.list/index.md
