---
title: "Get the caller's shared list link"
---

> 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 the caller's shared list link

Path: Nicer API › favorites

`GET /favorites/share`

URL: `https://api.nicer.travel/favorites/share`

Returns the link id of the caller's shared list and the photo it greets with, or nulls when they are not sharing it.

## 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.favorites.share.list();
```

### Nicer CLI

```bash
nicer favorites share list
```

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "avatarUrl": "string",
  "shareId": "string"
}
```

- `avatarUrl` (`favorites.share.list.response.200.avatarUrl`; any of, required)
  - any of the following: `string`, `null`
- `shareId` (`favorites.share.list.response.200.shareId`; any of, required)
  - any of the following: `string`, `null`

### 400

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

#### Example

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

- `errorCode` (`favorites.share.list.response.400.errorCode`; string, required)
- `errorMessage` (`favorites.share.list.response.400.errorMessage`; string, required)

### 401

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

#### Example

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

- `errorCode` (`favorites.share.list.response.401.errorCode`; string, required)
- `errorMessage` (`favorites.share.list.response.401.errorMessage`; string, required)

### 403

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

#### Example

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

- `errorCode` (`favorites.share.list.response.403.errorCode`; string, required)
- `errorMessage` (`favorites.share.list.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/favorites/favorites.share.list/index.md
