# Traveler API

## Documentation

The Traveler REST API utilizes Swagger to autogenerate the specification. It can be found [here](https://traveler.dev.guestlogix.io/v1/swagger/index.html). The conventions around naming, data types etc. can be found in the [API Convention](/glossary/api-convention.md#api-convention) page.

## Device Information

Any request made to the Traveler API must include device specific information. This required headers are outlined below.

| Header             | Type   | Example Value                          | Purpose                                                                                                                                                                                  |
| ------------------ | ------ | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `x-device-id`      | String | `50565c00-6bba-4b7f-bfc2-593c50520e21` | A value representing a unique installation of the application on a user's device.                                                                                                        |
| `x-os-version`     | String | `iOS12.1`                              | The version of the operating system of the device making the request.                                                                                                                    |
| `x-language`       | String | `en`                                   | The [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) two letter language code of the user's device.                                                                    |
| `x-locale`         | String | `en-US`                                | The Locale as defined by [Apple guidelines](https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html). |
| `x-region`         | String | `CA`                                   | The [ISO-3166](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) two character country code from which the requesting device is from.                                        |
| `x-application-id` | String | `com.guestlogix.traveler`              | The Unique identifier of the application that is using the SDK or API.                                                                                                                   |
| `x-timezone`       | String | `UTC`                                  | The [timezone abbreviation](https://en.wikipedia.org/wiki/List_of_time_zone_abbreviations) that the device is displaying time in.                                                        |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.guestlogix.io/traveler/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
