---
title: "Get a person's profile"
---

> 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 a person's profile

Path: Nicer API › identity

`GET /identity/user/{id}`

URL: `https://api.nicer.travel/identity/user/{id}`

Returns a person's profile by user id. Anyone, signed in or not, gets their name, avatar, biography and Instagram, as a shared itinerary shows the advisor behind it. Their email, phone, agency and role go only to the person themself, to Nicer staff, and to the advisors and admins of an agency the person is an active member of.

## Authentication

Requires one of the following:

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

## Path parameters

- `id` (`identity.user.get.path.id`; string, required)

## 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.get({
  "id": "string"
});
```

### Nicer CLI

```bash
nicer identity user get --id 'string'
```

### cURL

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

### TypeScript

```typescript
const url = 'https://api.nicer.travel/identity/user/<id>';
const options = {method: 'GET'};

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/<id>"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "avatar": "string",
  "biography": "string",
  "companyName": "string",
  "email": "string",
  "familyName": "string",
  "fullName": "string",
  "givenName": "string",
  "instagram": "string",
  "phoneNumber": "string",
  "role": "advisor",
  "type": "User",
  "userId": "string"
}
```

- `type` (`identity.user.get.response.200.type`; string, required)
- `userId` (`identity.user.get.response.200.userId`; string, required) — The person's id, their sign-in subject.
- `avatar` (`identity.user.get.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.get.response.200.biography`; any of, optional) — What the person writes about themself.
  - any of the following: `string`, `null`
- `companyName` (`identity.user.get.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`
- `email` (`identity.user.get.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`
- `familyName` (`identity.user.get.response.200.familyName`; string, optional) — The person's last name.
- `fullName` (`identity.user.get.response.200.fullName`; any of, optional) — givenName and familyName joined; null until the person has both.
  - any of the following: `string`, `null`
- `givenName` (`identity.user.get.response.200.givenName`; string, optional) — The person's first name.
- `instagram` (`identity.user.get.response.200.instagram`; any of, optional) — The person's Instagram handle.
  - any of the following: `string`, `null`
- `phoneNumber` (`identity.user.get.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`
- `role` (`identity.user.get.response.200.role`; string, optional) — The person's role in the agency they last switched into.
  - one of `"advisor"`, `"traveler"`, `"admin"`, `"superadmin"`

### 400

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

#### Example

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

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

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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