---
title: "Search the agency's advisors"
---

> 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.

# Search the agency's advisors

Path: Nicer API › identity

`GET /identity/member/search`

URL: `https://api.nicer.travel/identity/member/search`

Searches the active agency's advisors and admins by part of their name, email, phone, username or id and returns their names and avatars, led by the agency's AI assistant user. Any signed-in caller with an active agency.

## Authentication

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

## Query parameters

- `limit` (`identity.member.search.list.query.limit`; string, optional)
- `text` (`identity.member.search.list.query.text`; string, optional)
  - maxLength: `100`

## 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.member.search.list();
```

### Nicer CLI

```bash
nicer identity member search list
```

### cURL

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

### TypeScript

```typescript
const url = 'https://api.nicer.travel/identity/member/search';
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/member/search"

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "members": [
    {
      "avatar": "string",
      "familyName": "string",
      "fullName": "string",
      "givenName": "string",
      "userId": "string"
    }
  ]
}
```

- `members` (`identity.member.search.list.response.200.members`; array of object, required)
  - `familyName` (`identity.member.search.list.response.200.members.familyName`; string, required)
  - `fullName` (`identity.member.search.list.response.200.members.fullName`; any of, required)
    - any of the following: `string`, `null`
  - `givenName` (`identity.member.search.list.response.200.members.givenName`; string, required)
  - `userId` (`identity.member.search.list.response.200.members.userId`; string, required)
  - `avatar` (`identity.member.search.list.response.200.members.avatar`; string, optional)

### 400

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

#### Example

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

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

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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