---
title: "Open a profile form"
---

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

# Open a profile form

Path: Nicer API › Notes and tasks

`GET /crm/profile-forms/{token}`

URL: `https://api.nicer.travel/crm/profile-forms/{token}`

Opens the traveler a profile form link was sent for, without an account, with the name the agency presents itself with. The token is the link's secret. Errors: 404 ERROR_ITEM_NOT_FOUND for an unknown or expired link.

## Path parameters

- `token` (`crm.profileForms.get.path.token`; string, required)

## Header parameters

- `X-Nicer-CRM-Contract` (`crm.profileForms.get.header.X-Nicer-CRM-Contract`; string, required)
  - one of `"resource"` · example: `"resource"`

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

### Nicer CLI

```bash
nicer crm profile-forms get --token 'string'
```

### cURL

```bash
curl --request GET \
  --url 'https://api.nicer.travel/crm/profile-forms/<token>' \
  --header 'X-Nicer-CRM-Contract: resource'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/crm/profile-forms/<token>';
const options = {method: 'GET', headers: {'X-Nicer-CRM-Contract': 'resource'}};

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/crm/profile-forms/<token>"

headers = {"X-Nicer-CRM-Contract": "resource"}

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "companyDisplayName": "string",
  "companyName": "string",
  "expiresAt": "2019-08-24T14:15:22Z",
  "traveler": {
    "address": {
      "address1": "Av. Reforma 222",
      "city": "Mexico City",
      "countryCode": "MX",
      "postalCode": "06600",
      "stateCode": "CMX"
    },
    "birthDate": "2019-08-24",
    "companyName": "string",
    "contact": {
      "email": "ana@example.com",
      "phone": "+525512345678"
    },
    "documents": [
      {
        "citizenshipCountry": "string",
        "expirationDate": "2019-08-24",
        "issueDate": "2019-08-24",
        "issuingCountryCode": "string",
        "kind": "DRIVER_LICENSE",
        "number": "string",
        "placeOfBirth": "string",
        "placeOfIssue": "string",
        "documentId": "string",
        "label": "string"
      }
    ],
    "frequentFlyerPrograms": [
      {
        "airlineIataCode": "AM",
        "memberNumber": "123456789"
      }
    ],
    "importantDates": [
      {
        "date": "2019-08-24",
        "dateId": "string",
        "kind": "ANNIVERSARY",
        "label": "string"
      }
    ],
    "marketingConsent": {
      "email": true,
      "sms": true,
      "whatsapp": true
    },
    "name": {
      "familyName": "Pérez",
      "givenName": "Ana",
      "middleName": null
    },
    "nationalityCountryCode": "string",
    "preferredChannel": "EMAIL",
    "preferredLanguage": "string",
    "preferredName": "string",
    "profile": {
      "accessibility": {
        "medicalNotes": "string",
        "mobility": "NONE"
      },
      "air": {
        "cabinClass": "BUSINESS",
        "mealCode": "string",
        "notes": "string",
        "preferredAirlineCodes": [
          "string"
        ],
        "preferredAirportCodes": [
          "string"
        ],
        "seat": "AISLE"
      },
      "dietary": {
        "codes": [
          "DIABETIC"
        ],
        "notes": "string"
      },
      "emergencyContacts": [
        {
          "name": "string",
          "phone": "+14155550123",
          "relationship": "string",
          "travelerId": "string"
        }
      ],
      "hotel": {
        "bed": "ANY",
        "floor": "ANY",
        "notes": "string",
        "preferredBrands": [
          "string"
        ],
        "roomType": "string"
      },
      "interests": {
        "bucketList": "string",
        "budgetNotes": "string",
        "interests": [
          "string"
        ],
        "travelStyles": [
          "string"
        ]
      },
      "loyaltyPrograms": [
        {
          "number": "987654321",
          "supplierCode": "MC",
          "tier": "Gold",
          "type": "HOTEL"
        }
      ],
      "pets": [
        {
          "name": "string",
          "notes": "string",
          "species": "string",
          "weightKg": 200
        }
      ]
    },
    "residenceCountryCode": "string",
    "revision": 1,
    "sex": "F",
    "travelerId": "string"
  }
}
```

- `companyDisplayName` (`crm.profileForms.get.response.200.companyDisplayName`; any of, required) — The name the agency presents itself with; null when it has none on file.
  - any of the following: `string`, `null`
- `companyName` (`crm.profileForms.get.response.200.companyName`; string, required) — The agency the traveler belongs to.
- `expiresAt` (`crm.profileForms.get.response.200.expiresAt`; string, required) — When the link stops working, ISO 8601 in UTC: 14 days after the advisor sent it.
  - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
- `traveler` (`crm.profileForms.get.response.200.traveler`; object, required) — The traveler the link was sent for, as the person fills it.
  - `address` (`crm.profileForms.get.response.200.traveler.address`; any of, required) — The traveler's postal address; null when nobody gave one.
    - any of the following:
      - `PersonAddress`
        - `address1` (`PersonAddress.address1`; string, required)
          - maxLength: `200` · minLength: `1`
        - `city` (`PersonAddress.city`; string, required)
          - maxLength: `100` · minLength: `1`
        - `countryCode` (`PersonAddress.countryCode`; string, required)
          - pattern: `^[A-Z]{2}$`
        - `postalCode` (`PersonAddress.postalCode`; string, required)
          - maxLength: `20` · minLength: `1`
        - `stateCode` (`PersonAddress.stateCode`; string, required)
          - maxLength: `100` · minLength: `1`
      - `null`
  - `birthDate` (`crm.profileForms.get.response.200.traveler.birthDate`; any of, required) — Date of birth, YYYY-MM-DD; null when unknown.
    - any of the following: `string`, `null`
  - `companyName` (`crm.profileForms.get.response.200.traveler.companyName`; string, required) — The agency the traveler belongs to.
  - `contact` (`crm.profileForms.get.response.200.traveler.contact`; object, required) — The traveler's email and phone, the phone in E.164; each is null when unknown.
    - `email` (`crm.profileForms.get.response.200.traveler.contact.email`; any of, required)
      - any of the following: `string`, `null`
    - `phone` (`crm.profileForms.get.response.200.traveler.contact.phone`; any of, required)
      - any of the following: `E164Phone`, `null`
  - `documents` (`crm.profileForms.get.response.200.traveler.documents`; array of object, required) — The traveler's travel documents with their full numbers, oldest first.
    - `expirationDate` (`crm.profileForms.get.response.200.traveler.documents.expirationDate`; any of, required) — The day the document expires, YYYY-MM-DD; null for one that does not.
      - any of the following: `string`, `null`
    - `issuingCountryCode` (`crm.profileForms.get.response.200.traveler.documents.issuingCountryCode`; any of, required) — The country that issued the document, as an ISO 3166-1 alpha-2 country code; null when unknown.
      - any of the following: `CountryCode`, `null`
    - `kind` (`crm.profileForms.get.response.200.traveler.documents.kind`; string, required) — What the document is.
      - one of `"DRIVER_LICENSE"`, `"KNOWN_TRAVELER_NUMBER"`, `"NATIONAL_ID"`, `"PASSPORT"`, `"REDRESS_NUMBER"`, `"RESIDENCE_PERMIT"`, `"VISA"`
    - `number` (`crm.profileForms.get.response.200.traveler.documents.number`; string, required) — The document's number, in full, 1 to 100 characters.
      - maxLength: `100` · minLength: `1`
    - `documentId` (`crm.profileForms.get.response.200.traveler.documents.documentId`; string, required) — The document's id: send it back in an update to keep or replace this document.
      - minLength: `1`
    - `label` (`crm.profileForms.get.response.200.traveler.documents.label`; any of, required) — What the document is to people, e.g. "ESTA" or "Schengen", 1 to 60 characters; null when it has none.
      - any of the following: `string`, `null`
    - `citizenshipCountry` (`crm.profileForms.get.response.200.traveler.documents.citizenshipCountry`; any of, optional) — The citizenship stated on this document, as an ISO 3166-1 alpha-2 country code; it is not always the person's nationality. Null or absent when the document states none.
      - any of the following: `CountryCode`, `null`
    - `issueDate` (`crm.profileForms.get.response.200.traveler.documents.issueDate`; any of, optional) — The day the document was issued, YYYY-MM-DD; null or absent when unknown.
      - any of the following: `string`, `null`
    - `placeOfBirth` (`crm.profileForms.get.response.200.traveler.documents.placeOfBirth`; any of, optional) — The place of birth printed on the document; null or absent when unknown.
      - any of the following: `string`, `null`
    - `placeOfIssue` (`crm.profileForms.get.response.200.traveler.documents.placeOfIssue`; any of, optional) — Where the document was issued; null or absent when unknown.
      - any of the following: `string`, `null`
  - `frequentFlyerPrograms` (`crm.profileForms.get.response.200.traveler.frequentFlyerPrograms`; array of object, required) — Airline loyalty memberships, as a flight reservation carries them.
    - `airlineIataCode` (`crm.profileForms.get.response.200.traveler.frequentFlyerPrograms.airlineIataCode`; string, required)
      - pattern: `^[A-Z0-9]{2,3}$`
    - `memberNumber` (`crm.profileForms.get.response.200.traveler.frequentFlyerPrograms.memberNumber`; string, required)
      - maxLength: `100` · minLength: `1`
  - `importantDates` (`crm.profileForms.get.response.200.traveler.importantDates`; array of object, required) — The dates the agency remembers every year; the birthday is birthDate, not one of these.
    - `date` (`crm.profileForms.get.response.200.traveler.importantDates.date`; string, required) — The date, YYYY-MM-DD. Its month and day come back every year; the year is the first one.
      - format: `date` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$`
    - `dateId` (`crm.profileForms.get.response.200.traveler.importantDates.dateId`; string, required) — The date's id: send it back in an update to keep or replace this date.
      - minLength: `1`
    - `kind` (`crm.profileForms.get.response.200.traveler.importantDates.kind`; string, required) — What kind of date it is.
      - one of `"ANNIVERSARY"`, `"OTHER"`
    - `label` (`crm.profileForms.get.response.200.traveler.importantDates.label`; any of, required) — What the date is to people, e.g. Wedding anniversary, 1 to 80 characters; null when the kind says enough.
      - any of the following: `string`, `null`
  - `marketingConsent` (`crm.profileForms.get.response.200.traveler.marketingConsent`; object, required) — Whether the traveler agreed to marketing messages, per channel.
    - `email` (`crm.profileForms.get.response.200.traveler.marketingConsent.email`; boolean, required) — Whether the traveler agreed to marketing by email.
    - `sms` (`crm.profileForms.get.response.200.traveler.marketingConsent.sms`; boolean, required) — Whether the traveler agreed to marketing by SMS.
    - `whatsapp` (`crm.profileForms.get.response.200.traveler.marketingConsent.whatsapp`; boolean, required) — Whether the traveler agreed to marketing on WhatsApp.
  - `name` (`crm.profileForms.get.response.200.traveler.name`; object, required) — The legal name, as printed on the travel document.
    - `familyName` (`crm.profileForms.get.response.200.traveler.name.familyName`; string, required)
      - maxLength: `100` · minLength: `1`
    - `givenName` (`crm.profileForms.get.response.200.traveler.name.givenName`; string, required)
      - maxLength: `100` · minLength: `1`
    - `middleName` (`crm.profileForms.get.response.200.traveler.name.middleName`; any of, required)
      - any of the following: `string`, `null`
  - `nationalityCountryCode` (`crm.profileForms.get.response.200.traveler.nationalityCountryCode`; any of, required) — Nationality, as an ISO 3166-1 alpha-2 country code; null when unknown.
    - any of the following: `CountryCode`, `null`
  - `preferredChannel` (`crm.profileForms.get.response.200.traveler.preferredChannel`; any of, required) — How the traveler prefers to be contacted; null when they have not said.
    - any of the following: `PreferredChannel`, `null`
  - `preferredLanguage` (`crm.profileForms.get.response.200.traveler.preferredLanguage`; any of, required) — The language to write to the traveler in, e.g. es or en-US; null when unknown.
    - any of the following: `LanguageTag`, `null`
  - `preferredName` (`crm.profileForms.get.response.200.traveler.preferredName`; any of, required) — The name the traveler goes by when it is not their given name; null otherwise.
    - any of the following: `string`, `null`
  - `profile` (`crm.profileForms.get.response.200.traveler.profile`; object, required) — The travel profile: air and hotel preferences, dietary and accessibility needs, loyalty programs, emergency contacts, interests and pets.
    - `accessibility` (`crm.profileForms.get.response.200.traveler.profile.accessibility`; any of, required)
      - any of the following:
        - `Accessibility`
          - `medicalNotes` (`Accessibility.medicalNotes`; any of, required)
            - any of the following: `string`, `null`
          - `mobility` (`Accessibility.mobility`; any of, required)
            - any of the following:
              - `string`: one of `"NONE"`, `"REDUCED_MOBILITY"`, `"WHEELCHAIR_ASSISTANCE"`, `"WHEELCHAIR_OWN"`
              - `null`
        - `null`
    - `air` (`crm.profileForms.get.response.200.traveler.profile.air`; any of, required)
      - any of the following:
        - `AirPreferences`
          - `cabinClass` (`AirPreferences.cabinClass`; any of, required)
            - any of the following:
              - `string`: one of `"BUSINESS"`, `"ECONOMY"`, `"FIRST"`, `"PREMIUM_ECONOMY"`
              - `null`
          - `mealCode` (`AirPreferences.mealCode`; any of, required)
            - any of the following: `string`, `null`
          - `notes` (`AirPreferences.notes`; any of, required)
            - any of the following: `string`, `null`
          - `preferredAirlineCodes` (`AirPreferences.preferredAirlineCodes`; array of string, required)
            - pattern: `^[A-Z0-9]{2,3}$`
          - `preferredAirportCodes` (`AirPreferences.preferredAirportCodes`; array of string, required)
            - pattern: `^[A-Z]{3}$`
          - `seat` (`AirPreferences.seat`; any of, required)
            - any of the following:
              - `string`: one of `"AISLE"`, `"ANY"`, `"WINDOW"`
              - `null`
        - `null`
    - `dietary` (`crm.profileForms.get.response.200.traveler.profile.dietary`; any of, required)
      - any of the following:
        - `Dietary`
          - `codes` (`Dietary.codes`; array of string, required)
            - one of `"DIABETIC"`, `"GLUTEN_FREE"`, `"HALAL"`, `"KOSHER"`, `"LACTOSE_FREE"`, `"LOW_SODIUM"`, `"NUT_ALLERGY"`, `"OTHER"`, `"SHELLFISH_ALLERGY"`, `"VEGAN"`, `"VEGETARIAN"`
          - `notes` (`Dietary.notes`; any of, required)
            - any of the following: `string`, `null`
        - `null`
    - `emergencyContacts` (`crm.profileForms.get.response.200.traveler.profile.emergencyContacts`; array of object, required)
      - `name` (`crm.profileForms.get.response.200.traveler.profile.emergencyContacts.name`; string, required)
        - maxLength: `200` · minLength: `1`
      - `phone` (`crm.profileForms.get.response.200.traveler.profile.emergencyContacts.phone`; any of, required)
        - any of the following: `E164Phone`, `null`
      - `relationship` (`crm.profileForms.get.response.200.traveler.profile.emergencyContacts.relationship`; any of, required)
        - any of the following: `string`, `null`
      - `travelerId` (`crm.profileForms.get.response.200.traveler.profile.emergencyContacts.travelerId`; any of, required)
        - any of the following: `string`, `null`
    - `hotel` (`crm.profileForms.get.response.200.traveler.profile.hotel`; any of, required)
      - any of the following:
        - `HotelPreferences`
          - `bed` (`HotelPreferences.bed`; any of, required)
            - any of the following:
              - `string`: one of `"ANY"`, `"KING"`, `"QUEEN"`, `"TWIN"`
              - `null`
          - `floor` (`HotelPreferences.floor`; any of, required)
            - any of the following:
              - `string`: one of `"ANY"`, `"HIGH"`, `"LOW"`
              - `null`
          - `notes` (`HotelPreferences.notes`; any of, required)
            - any of the following: `string`, `null`
          - `preferredBrands` (`HotelPreferences.preferredBrands`; array of string, required)
            - maxLength: `80` · minLength: `1`
          - `roomType` (`HotelPreferences.roomType`; any of, required)
            - any of the following: `string`, `null`
        - `null`
    - `interests` (`crm.profileForms.get.response.200.traveler.profile.interests`; any of, required)
      - any of the following:
        - `Interests`
          - `bucketList` (`Interests.bucketList`; any of, required)
            - any of the following: `string`, `null`
          - `budgetNotes` (`Interests.budgetNotes`; any of, required)
            - any of the following: `string`, `null`
          - `interests` (`Interests.interests`; array of string, required)
            - maxLength: `60` · minLength: `1`
          - `travelStyles` (`Interests.travelStyles`; array of string, required)
            - maxLength: `60` · minLength: `1`
        - `null`
    - `loyaltyPrograms` (`crm.profileForms.get.response.200.traveler.profile.loyaltyPrograms`; array of object, required)
      - `number` (`crm.profileForms.get.response.200.traveler.profile.loyaltyPrograms.number`; string, required)
        - maxLength: `255` · minLength: `1`
      - `receiverCode` (`crm.profileForms.get.response.200.traveler.profile.loyaltyPrograms.receiverCode`; string, optional)
        - maxLength: `255` · minLength: `1`
      - `supplierCode` (`crm.profileForms.get.response.200.traveler.profile.loyaltyPrograms.supplierCode`; string, optional)
        - maxLength: `255` · minLength: `1`
      - `tier` (`crm.profileForms.get.response.200.traveler.profile.loyaltyPrograms.tier`; string, optional)
        - maxLength: `255` · minLength: `1`
      - `type` (`crm.profileForms.get.response.200.traveler.profile.loyaltyPrograms.type`; string, optional)
        - maxLength: `255` · minLength: `1`
    - `pets` (`crm.profileForms.get.response.200.traveler.profile.pets`; array of object, required)
      - `name` (`crm.profileForms.get.response.200.traveler.profile.pets.name`; string, required)
        - maxLength: `80` · minLength: `1`
      - `notes` (`crm.profileForms.get.response.200.traveler.profile.pets.notes`; any of, required)
        - any of the following: `string`, `null`
      - `species` (`crm.profileForms.get.response.200.traveler.profile.pets.species`; string, required)
        - maxLength: `60` · minLength: `1`
      - `weightKg` (`crm.profileForms.get.response.200.traveler.profile.pets.weightKg`; any of, required)
        - any of the following: `number`, `null`
  - `residenceCountryCode` (`crm.profileForms.get.response.200.traveler.residenceCountryCode`; any of, required) — Country of residence, as an ISO 3166-1 alpha-2 country code; null when unknown.
    - any of the following: `CountryCode`, `null`
  - `revision` (`crm.profileForms.get.response.200.traveler.revision`; integer, required) — Goes up by one on every change. Send it back with an update, so a change made meanwhile is never overwritten.
    - maximum: `9007199254740991` · minimum: `1`
  - `sex` (`crm.profileForms.get.response.200.traveler.sex`; any of, required) — The sex marker on the travel document; null when unknown.
    - any of the following: `ParticipantSex`, `null`
  - `travelerId` (`crm.profileForms.get.response.200.traveler.travelerId`; string, required) — The traveler's id.
    - maxLength: `64` · minLength: `1`

### 400

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

#### Example

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

- `errorCode` (`crm.profileForms.get.response.400.errorCode`; string, required)
- `errorMessage` (`crm.profileForms.get.response.400.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Notes-and-tasks/crm.profileForms.get/index.md
