---
title: "Get a cruise booking sign-on 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 a cruise booking sign-on link

Path: Nicer API › Cruises

`POST /cruises/sso-url`

URL: `https://api.nicer.travel/cruises/sso-url`

Signs in to the cruise booking partner with Nicer's own credentials and answers a single sign-on link that opens its booking tool as the caller. Any signed-in person may call it. The body is accepted but ignored: the program is fixed and userId is never read. When the partner fails, the answer is a 500 error.

## 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.cruises.ssoUrl();
```

### Nicer CLI

```bash
nicer cruises sso-url
```

### cURL

```bash
curl --request POST \
  --url https://api.nicer.travel/cruises/sso-url \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/cruises/sso-url';
const options = {method: 'POST', 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/cruises/sso-url"

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "data": "string",
  "message": "string",
  "successful": true
}
```

- `data` (`cruises.ssoUrl.response.200.data`; string, required) — The sign-on link into the cruise booking tool, for the advisor's browser to open: whoever holds it is signed in as the advisor.
- `message` (`cruises.ssoUrl.response.200.message`; string, required) — A note on the outcome, for people.
- `successful` (`cruises.ssoUrl.response.200.successful`; boolean, required)

### 400

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

#### Example

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

- `errorCode` (`cruises.ssoUrl.response.400.errorCode`; string, required)
- `errorMessage` (`cruises.ssoUrl.response.400.errorMessage`; string, required)

### 401

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

#### Example

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

- `errorCode` (`cruises.ssoUrl.response.401.errorCode`; string, required)
- `errorMessage` (`cruises.ssoUrl.response.401.errorMessage`; string, required)

### 403

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

#### Example

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

- `errorCode` (`cruises.ssoUrl.response.403.errorCode`; string, required)
- `errorMessage` (`cruises.ssoUrl.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Cruises/cruises.ssoUrl/index.md
