---
title: "Create a trip"
---

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

# Create a trip

Path: Nicer API › Trips

`POST /travelers-trip`

URL: `https://api.nicer.travel/travelers-trip`

Opens a trip: the container every itinerary, proposal, message and order hangs off. Send at least a title, the travel dates and one destination. The trip is created together with its itinerary and its conversation, so a single call is enough to start planning. Dates accept any parseable date string and are stored as `YYYY-MM-DD`; the start date cannot be in the past and the end date must come after it. Any signed-in person may call it.

## Authentication

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

## Request body

_Required._

- `destinations` (`travelersTrip.create.destinations`; array of object, required)
  - `address` (`travelersTrip.create.destinations.address`; any of, optional)
    - any of the following: `string`, `null`
  - `amenities` (`travelersTrip.create.destinations.amenities`; array of string, optional)
  - `city` (`travelersTrip.create.destinations.city`; any of, optional)
    - any of the following: `string`, `null`
  - `country` (`travelersTrip.create.destinations.country`; string, optional)
  - `countryCode` (`travelersTrip.create.destinations.countryCode`; string, optional)
  - `description` (`travelersTrip.create.destinations.description`; string, optional)
  - `distanceFromSearch` (`travelersTrip.create.destinations.distanceFromSearch`; object, optional)
    - `unit` (`travelersTrip.create.destinations.distanceFromSearch.unit`; string, required)
      - one of `"km"`, `"mi"`
    - `value` (`travelersTrip.create.destinations.distanceFromSearch.value`; number, required)
  - `features` (`travelersTrip.create.destinations.features`; array of string, optional)
  - `fullAddress` (`travelersTrip.create.destinations.fullAddress`; string, optional)
  - `gate` (`travelersTrip.create.destinations.gate`; any of, optional)
    - any of the following: `string`, `null`
  - `iataCode` (`travelersTrip.create.destinations.iataCode`; any of, optional)
    - any of the following: `string`, `null`
  - `internovaId` (`travelersTrip.create.destinations.internovaId`; string, optional)
  - `latitude` (`travelersTrip.create.destinations.latitude`; number, optional)
  - `longitude` (`travelersTrip.create.destinations.longitude`; number, optional)
  - `name` (`travelersTrip.create.destinations.name`; string, optional)
  - `photos` (`travelersTrip.create.destinations.photos`; array of object, optional)
    - `name` (`travelersTrip.create.destinations.photos.name`; string, required)
    - `key` (`travelersTrip.create.destinations.photos.key`; string, optional)
    - `url` (`travelersTrip.create.destinations.photos.url`; string, optional)
  - `placeId` (`travelersTrip.create.destinations.placeId`; string, optional)
  - `region` (`travelersTrip.create.destinations.region`; string, optional)
  - `source` (`travelersTrip.create.destinations.source`; string, optional)
  - `state` (`travelersTrip.create.destinations.state`; any of, optional)
    - any of the following: `string`, `null`
  - `terminal` (`travelersTrip.create.destinations.terminal`; any of, optional)
    - any of the following: `string`, `null`
  - `timeZone` (`travelersTrip.create.destinations.timeZone`; string, optional)
  - `zipCode` (`travelersTrip.create.destinations.zipCode`; any of, optional)
    - any of the following: `string`, `null`
  - `endDateTime` (`travelersTrip.create.destinations.endDateTime`; string, optional)
    - pattern: `^\d{4}-\d{2}-\d{2}$`
  - `startDateTime` (`travelersTrip.create.destinations.startDateTime`; string, optional)
    - pattern: `^\d{4}-\d{2}-\d{2}$`
- `hasFlexibleDates` (`travelersTrip.create.hasFlexibleDates`; boolean, required)
- `tripEndDate` (`travelersTrip.create.tripEndDate`; string, required)
- `tripStartDate` (`travelersTrip.create.tripStartDate`; string, required)
- `tripTitle` (`travelersTrip.create.tripTitle`; string, required)
- `assignedAdvisorUserId` (`travelersTrip.create.assignedAdvisorUserId`; any of, optional)
  - any of the following: `string`, `null`
- `availableDate` (`travelersTrip.create.availableDate`; any of, optional)
  - any of the following:
    - `string`
    - `object`
      - `from` (`travelersTrip.create.availableDate.2.from`; string, required)
      - `to` (`travelersTrip.create.availableDate.2.to`; string, required)
- `budgetCurrency` (`travelersTrip.create.budgetCurrency`; any of, optional)
  - any of the following: `string`, `null`
- `createdReason` (`travelersTrip.create.createdReason`; string, optional)
  - one of `"CREATED_BY_TRAVELER"`, `"CREATED_BY_ADVISOR"`, `"CREATED_BY_MATCHING_ADVISOR"`, `"CREATED_BY_BOOKING"`
- `isAllPricesHidden` (`travelersTrip.create.isAllPricesHidden`; boolean, optional)
  - default: `false`
- `isItineraryVisible` (`travelersTrip.create.isItineraryVisible`; boolean, optional)
  - default: `true`
- `isSummaryHidden` (`travelersTrip.create.isSummaryHidden`; boolean, optional)
  - default: `false`
- `primaryTravelerUserId` (`travelersTrip.create.primaryTravelerUserId`; string, optional)
- `specialRequests` (`travelersTrip.create.specialRequests`; any of, optional)
  - any of the following: `string`, `null`
- `suggestionsEnabled` (`travelersTrip.create.suggestionsEnabled`; boolean, optional)
- `travelers` (`travelersTrip.create.travelers`; object, optional)
  - `adults` (`travelersTrip.create.travelers.adults`; number, optional)
  - `children` (`travelersTrip.create.travelers.children`; number, optional)
- `amount` (`travelersTrip.create.amount`; number, optional)
- `budget` (`travelersTrip.create.budget`; any of, optional)
  - any of the following: `string`, `string`
- `purpose` (`travelersTrip.create.purpose`; any of, optional)
  - any of the following: `string`, `string`, `string`, `string`
- `who` (`travelersTrip.create.who`; any of, optional)
  - any of the following: `string`, `string`, `string`, `string`
- `advisorId` (`travelersTrip.create.advisorId`; string, optional)
- `companyName` (`travelersTrip.create.companyName`; string, optional)

## Example request

```json
{
  "assignedAdvisorUserId": "string",
  "availableDate": "string",
  "budgetCurrency": "string",
  "createdReason": "CREATED_BY_TRAVELER",
  "destinations": [
    {
      "address": "string",
      "amenities": [
        "string"
      ],
      "city": "string",
      "country": "string",
      "countryCode": "string",
      "description": "string",
      "distanceFromSearch": {
        "unit": "km",
        "value": 0
      },
      "features": [
        "string"
      ],
      "fullAddress": "string",
      "gate": "string",
      "iataCode": "string",
      "internovaId": "string",
      "latitude": 0,
      "longitude": 0,
      "name": "string",
      "photos": [
        {
          "key": "string",
          "name": "string",
          "url": "string"
        }
      ],
      "placeId": "string",
      "region": "string",
      "source": "string",
      "state": "string",
      "terminal": "string",
      "timeZone": "string",
      "zipCode": "string",
      "endDateTime": "string",
      "startDateTime": "string"
    }
  ],
  "hasFlexibleDates": true,
  "isAllPricesHidden": false,
  "isItineraryVisible": true,
  "isSummaryHidden": false,
  "primaryTravelerUserId": "string",
  "specialRequests": "string",
  "suggestionsEnabled": true,
  "travelers": {
    "adults": 0,
    "children": 0
  },
  "tripEndDate": "string",
  "tripStartDate": "string",
  "tripTitle": "string",
  "amount": 0,
  "budget": "goodValue",
  "purpose": "holidays",
  "who": "solo",
  "advisorId": "string",
  "companyName": "string"
}
```

## 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.travelersTrip.create({
  "destinations": [
    {}
  ],
  "hasFlexibleDates": true,
  "tripEndDate": "string",
  "tripStartDate": "string",
  "tripTitle": "string"
});
```

### Nicer CLI

```bash
nicer travelers-trip create --input - <<'JSON'
{
  "destinations": [
    {}
  ],
  "hasFlexibleDates": true,
  "tripEndDate": "string",
  "tripStartDate": "string",
  "tripTitle": "string"
}
JSON
```

### cURL

```bash
curl --request POST \
  --url https://api.nicer.travel/travelers-trip \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "assignedAdvisorUserId": "string",
  "availableDate": "string",
  "budgetCurrency": "string",
  "createdReason": "CREATED_BY_TRAVELER",
  "destinations": [
    {
      "address": "string",
      "amenities": [
        "string"
      ],
      "city": "string",
      "country": "string",
      "countryCode": "string",
      "description": "string",
      "distanceFromSearch": {
        "unit": "km",
        "value": 0
      },
      "features": [
        "string"
      ],
      "fullAddress": "string",
      "gate": "string",
      "iataCode": "string",
      "internovaId": "string",
      "latitude": 0,
      "longitude": 0,
      "name": "string",
      "photos": [
        {
          "key": "string",
          "name": "string",
          "url": "string"
        }
      ],
      "placeId": "string",
      "region": "string",
      "source": "string",
      "state": "string",
      "terminal": "string",
      "timeZone": "string",
      "zipCode": "string",
      "endDateTime": "string",
      "startDateTime": "string"
    }
  ],
  "hasFlexibleDates": true,
  "isAllPricesHidden": false,
  "isItineraryVisible": true,
  "isSummaryHidden": false,
  "primaryTravelerUserId": "string",
  "specialRequests": "string",
  "suggestionsEnabled": true,
  "travelers": {
    "adults": 0,
    "children": 0
  },
  "tripEndDate": "string",
  "tripStartDate": "string",
  "tripTitle": "string",
  "amount": 0,
  "budget": "goodValue",
  "purpose": "holidays",
  "who": "solo",
  "advisorId": "string",
  "companyName": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/travelers-trip';
const options = {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: 'Bearer <token>'
  },
  body: JSON.stringify({
    assignedAdvisorUserId: 'string',
    availableDate: 'string',
    budgetCurrency: 'string',
    createdReason: 'CREATED_BY_TRAVELER',
    destinations: [
      {
        address: 'string',
        amenities: ['string'],
        city: 'string',
        country: 'string',
        countryCode: 'string',
        description: 'string',
        distanceFromSearch: {unit: 'km', value: 0},
        features: ['string'],
        fullAddress: 'string',
        gate: 'string',
        iataCode: 'string',
        internovaId: 'string',
        latitude: 0,
        longitude: 0,
        name: 'string',
        photos: [{key: 'string', name: 'string', url: 'string'}],
        placeId: 'string',
        region: 'string',
        source: 'string',
        state: 'string',
        terminal: 'string',
        timeZone: 'string',
        zipCode: 'string',
        endDateTime: 'string',
        startDateTime: 'string'
      }
    ],
    hasFlexibleDates: true,
    isAllPricesHidden: false,
    isItineraryVisible: true,
    isSummaryHidden: false,
    primaryTravelerUserId: 'string',
    specialRequests: 'string',
    suggestionsEnabled: true,
    travelers: {adults: 0, children: 0},
    tripEndDate: 'string',
    tripStartDate: 'string',
    tripTitle: 'string',
    amount: 0,
    budget: 'goodValue',
    purpose: 'holidays',
    who: 'solo',
    advisorId: 'string',
    companyName: 'string'
  })
};

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/travelers-trip"

payload = {
    "assignedAdvisorUserId": "string",
    "availableDate": "string",
    "budgetCurrency": "string",
    "createdReason": "CREATED_BY_TRAVELER",
    "destinations": [
        {
            "address": "string",
            "amenities": ["string"],
            "city": "string",
            "country": "string",
            "countryCode": "string",
            "description": "string",
            "distanceFromSearch": {
                "unit": "km",
                "value": 0
            },
            "features": ["string"],
            "fullAddress": "string",
            "gate": "string",
            "iataCode": "string",
            "internovaId": "string",
            "latitude": 0,
            "longitude": 0,
            "name": "string",
            "photos": [
                {
                    "key": "string",
                    "name": "string",
                    "url": "string"
                }
            ],
            "placeId": "string",
            "region": "string",
            "source": "string",
            "state": "string",
            "terminal": "string",
            "timeZone": "string",
            "zipCode": "string",
            "endDateTime": "string",
            "startDateTime": "string"
        }
    ],
    "hasFlexibleDates": True,
    "isAllPricesHidden": False,
    "isItineraryVisible": True,
    "isSummaryHidden": False,
    "primaryTravelerUserId": "string",
    "specialRequests": "string",
    "suggestionsEnabled": True,
    "travelers": {
        "adults": 0,
        "children": 0
    },
    "tripEndDate": "string",
    "tripStartDate": "string",
    "tripTitle": "string",
    "amount": 0,
    "budget": "goodValue",
    "purpose": "holidays",
    "who": "solo",
    "advisorId": "string",
    "companyName": "string"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "assignedAdvisorUserId": "string",
  "associatedChatId": "string",
  "associatedTripItineraryId": "string",
  "associatedUserIds": [
    "string"
  ],
  "availableDate": "string",
  "budgetCurrency": "string",
  "companyName": "string",
  "conciergeMessageSentAt": "string",
  "createdBy": "string",
  "createdReason": "CREATED_BY_TRAVELER",
  "deleted": true,
  "deletedAt": "string",
  "deletedBy": "string",
  "destinations": [
    {
      "address": "string",
      "amenities": [
        "string"
      ],
      "city": "string",
      "country": "string",
      "countryCode": "string",
      "description": "string",
      "distanceFromSearch": {
        "unit": "km",
        "value": 0
      },
      "features": [
        "string"
      ],
      "fullAddress": "string",
      "gate": "string",
      "iataCode": "string",
      "internovaId": "string",
      "latitude": 0,
      "longitude": 0,
      "name": "string",
      "photos": [
        {
          "key": "string",
          "name": "string",
          "url": "string"
        }
      ],
      "placeId": "string",
      "region": "string",
      "source": "string",
      "state": "string",
      "terminal": "string",
      "timeZone": "string",
      "zipCode": "string",
      "endDateTime": "string",
      "headerImageUrl": "string",
      "startDateTime": "string"
    }
  ],
  "hasActivity": true,
  "hasFlexibleDates": true,
  "isAllPricesHidden": false,
  "isItineraryVisible": true,
  "isSummaryHidden": false,
  "lastMessageTimestamp": "string",
  "lastModifiedBy": "string",
  "primaryTravelerUserId": "string",
  "specialRequests": "string",
  "suggestionsEnabled": true,
  "travelers": {
    "adults": 0,
    "children": 0
  },
  "tripEndDate": "string",
  "tripStartDate": "string",
  "tripTitle": "string",
  "amount": 0,
  "budget": "goodValue",
  "purpose": "holidays",
  "who": "solo",
  "travelersTripId": "string",
  "createdAt": "string",
  "updatedAt": "string",
  "type": "TravelersTrip"
}
```

- `associatedUserIds` (`travelersTrip.create.response.200.associatedUserIds`; array of string, required)
- `companyName` (`travelersTrip.create.response.200.companyName`; string, required)
- `createdBy` (`travelersTrip.create.response.200.createdBy`; string, required)
- `destinations` (`travelersTrip.create.response.200.destinations`; array of object, required)
  - `endDateTime` (`travelersTrip.create.response.200.destinations.endDateTime`; string, required)
    - pattern: `^\d{4}-\d{2}-\d{2}$`
  - `startDateTime` (`travelersTrip.create.response.200.destinations.startDateTime`; string, required)
    - pattern: `^\d{4}-\d{2}-\d{2}$`
  - `address` (`travelersTrip.create.response.200.destinations.address`; any of, optional)
    - any of the following: `string`, `null`
  - `amenities` (`travelersTrip.create.response.200.destinations.amenities`; array of string, optional)
  - `city` (`travelersTrip.create.response.200.destinations.city`; any of, optional)
    - any of the following: `string`, `null`
  - `country` (`travelersTrip.create.response.200.destinations.country`; string, optional)
  - `countryCode` (`travelersTrip.create.response.200.destinations.countryCode`; string, optional)
  - `description` (`travelersTrip.create.response.200.destinations.description`; string, optional)
  - `distanceFromSearch` (`travelersTrip.create.response.200.destinations.distanceFromSearch`; object, optional)
    - `unit` (`travelersTrip.create.response.200.destinations.distanceFromSearch.unit`; string, required)
      - one of `"km"`, `"mi"`
    - `value` (`travelersTrip.create.response.200.destinations.distanceFromSearch.value`; number, required)
  - `features` (`travelersTrip.create.response.200.destinations.features`; array of string, optional)
  - `fullAddress` (`travelersTrip.create.response.200.destinations.fullAddress`; string, optional)
  - `gate` (`travelersTrip.create.response.200.destinations.gate`; any of, optional)
    - any of the following: `string`, `null`
  - `iataCode` (`travelersTrip.create.response.200.destinations.iataCode`; any of, optional)
    - any of the following: `string`, `null`
  - `internovaId` (`travelersTrip.create.response.200.destinations.internovaId`; string, optional)
  - `latitude` (`travelersTrip.create.response.200.destinations.latitude`; number, optional)
  - `longitude` (`travelersTrip.create.response.200.destinations.longitude`; number, optional)
  - `name` (`travelersTrip.create.response.200.destinations.name`; string, optional)
  - `photos` (`travelersTrip.create.response.200.destinations.photos`; array of object, optional)
    - `name` (`travelersTrip.create.response.200.destinations.photos.name`; string, required)
    - `key` (`travelersTrip.create.response.200.destinations.photos.key`; string, optional)
    - `url` (`travelersTrip.create.response.200.destinations.photos.url`; string, optional)
  - `placeId` (`travelersTrip.create.response.200.destinations.placeId`; string, optional)
  - `region` (`travelersTrip.create.response.200.destinations.region`; string, optional)
  - `source` (`travelersTrip.create.response.200.destinations.source`; string, optional)
  - `state` (`travelersTrip.create.response.200.destinations.state`; any of, optional)
    - any of the following: `string`, `null`
  - `terminal` (`travelersTrip.create.response.200.destinations.terminal`; any of, optional)
    - any of the following: `string`, `null`
  - `timeZone` (`travelersTrip.create.response.200.destinations.timeZone`; string, optional)
  - `zipCode` (`travelersTrip.create.response.200.destinations.zipCode`; any of, optional)
    - any of the following: `string`, `null`
  - `headerImageUrl` (`travelersTrip.create.response.200.destinations.headerImageUrl`; string, optional)
- `hasFlexibleDates` (`travelersTrip.create.response.200.hasFlexibleDates`; boolean, required)
- `isAllPricesHidden` (`travelersTrip.create.response.200.isAllPricesHidden`; boolean, required)
  - default: `false`
- `isItineraryVisible` (`travelersTrip.create.response.200.isItineraryVisible`; boolean, required)
  - default: `true`
- `isSummaryHidden` (`travelersTrip.create.response.200.isSummaryHidden`; boolean, required)
  - default: `false`
- `lastModifiedBy` (`travelersTrip.create.response.200.lastModifiedBy`; string, required)
- `primaryTravelerUserId` (`travelersTrip.create.response.200.primaryTravelerUserId`; string, required)
- `tripEndDate` (`travelersTrip.create.response.200.tripEndDate`; string, required)
- `tripStartDate` (`travelersTrip.create.response.200.tripStartDate`; string, required)
- `tripTitle` (`travelersTrip.create.response.200.tripTitle`; string, required)
- `travelersTripId` (`travelersTrip.create.response.200.travelersTripId`; string, required)
- `createdAt` (`travelersTrip.create.response.200.createdAt`; string, required)
- `updatedAt` (`travelersTrip.create.response.200.updatedAt`; string, required)
- `type` (`travelersTrip.create.response.200.type`; string, required)
- `assignedAdvisorUserId` (`travelersTrip.create.response.200.assignedAdvisorUserId`; any of, optional)
  - any of the following: `string`, `null`
- `associatedChatId` (`travelersTrip.create.response.200.associatedChatId`; any of, optional)
  - any of the following: `string`, `null`
- `associatedTripItineraryId` (`travelersTrip.create.response.200.associatedTripItineraryId`; any of, optional)
  - any of the following: `string`, `null`
- `availableDate` (`travelersTrip.create.response.200.availableDate`; any of, optional)
  - any of the following:
    - `string`
    - `object`
      - `from` (`travelersTrip.create.response.200.availableDate.2.from`; string, required)
      - `to` (`travelersTrip.create.response.200.availableDate.2.to`; string, required)
- `budgetCurrency` (`travelersTrip.create.response.200.budgetCurrency`; any of, optional)
  - any of the following: `string`, `null`
- `conciergeMessageSentAt` (`travelersTrip.create.response.200.conciergeMessageSentAt`; any of, optional)
  - any of the following: `string`, `null`
- `createdReason` (`travelersTrip.create.response.200.createdReason`; string, optional)
  - one of `"CREATED_BY_TRAVELER"`, `"CREATED_BY_ADVISOR"`, `"CREATED_BY_MATCHING_ADVISOR"`, `"CREATED_BY_BOOKING"`
- `deleted` (`travelersTrip.create.response.200.deleted`; boolean, optional)
- `deletedAt` (`travelersTrip.create.response.200.deletedAt`; any of, optional)
  - any of the following: `string`, `null`
- `deletedBy` (`travelersTrip.create.response.200.deletedBy`; string, optional)
- `hasActivity` (`travelersTrip.create.response.200.hasActivity`; boolean, optional)
- `lastMessageTimestamp` (`travelersTrip.create.response.200.lastMessageTimestamp`; any of, optional)
  - any of the following: `string`, `null`
- `specialRequests` (`travelersTrip.create.response.200.specialRequests`; any of, optional)
  - any of the following: `string`, `null`
- `suggestionsEnabled` (`travelersTrip.create.response.200.suggestionsEnabled`; boolean, optional)
- `travelers` (`travelersTrip.create.response.200.travelers`; object, optional)
  - `adults` (`travelersTrip.create.response.200.travelers.adults`; number, optional)
  - `children` (`travelersTrip.create.response.200.travelers.children`; number, optional)
- `amount` (`travelersTrip.create.response.200.amount`; number, optional)
- `budget` (`travelersTrip.create.response.200.budget`; any of, optional)
  - any of the following: `string`, `string`
- `purpose` (`travelersTrip.create.response.200.purpose`; any of, optional)
  - any of the following: `string`, `string`, `string`, `string`
- `who` (`travelersTrip.create.response.200.who`; any of, optional)
  - any of the following: `string`, `string`, `string`, `string`

### 400

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

#### Example

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

- `errorCode` (`travelersTrip.create.response.400.errorCode`; string, required)
- `errorMessage` (`travelersTrip.create.response.400.errorMessage`; string, required)

### 401

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

#### Example

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

- `errorCode` (`travelersTrip.create.response.401.errorCode`; string, required)
- `errorMessage` (`travelersTrip.create.response.401.errorMessage`; string, required)

### 403

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

#### Example

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

- `errorCode` (`travelersTrip.create.response.403.errorCode`; string, required)
- `errorMessage` (`travelersTrip.create.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Trips/travelersTrip.create/index.md
