# Get a traveler

> One passenger, with every field the Travelers drawer shows, `missing`, `paxType` and app `access`.

`GET /v1/travelers/{travelerId}`

One passenger, with every field the Travelers drawer shows, `missing`, `paxType` and app `access`. Send its `updatedAt` as `expectedUpdatedAt` on a PATCH or DELETE to refuse a stale write. Personal data: audited.

**Permissions:** `travelers:read` · **Kind:** read · **Cost:** 1 unit



## Path parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `travelerId` | uuid | yes |  |

## Query parameters

_None._

## Response `200`

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "traveler" | yes |  |
| `id` | uuid | yes |  |
| `tripId` | uuid | yes |  |
| `position` | integer | yes |  |
| `title` | "mr" \| "mrs" \| "ms" \| "mstr" \| "miss" \| null | yes |  |
| `firstName` | string \| null | yes |  |
| `lastName1` | string \| null | yes |  |
| `lastName2` | string \| null | yes |  |
| `birthDate` | string \| null | yes |  |
| `sex` | "m" \| "f" \| null | yes |  |
| `nationality` | string \| null | yes |  |
| `docType` | "dni" \| "nie" \| "passport" \| "other" \| null | yes |  |
| `docNumber` | string \| null | yes |  |
| `docExpiry` | string \| null | yes |  |
| `docCountry` | string \| null | yes |  |
| `email` | string \| null | yes |  |
| `phone` | string \| null | yes |  |
| `address` | object \| null | yes |  |
| `address.line1` | string \| null | yes |  |
| `address.line2` | string \| null | yes |  |
| `address.postalCode` | string \| null | yes |  |
| `address.city` | string \| null | yes |  |
| `address.region` | string \| null | yes |  |
| `address.country` | string \| null | yes |  |
| `taxId` | string \| null | yes |  |
| `paxType` | "adult" \| "child" \| "infant" \| "unknown" | yes |  |
| `missing` | string[] | yes |  |
| `access` | "invited" \| "queued" \| "failed" \| "no_email" \| "not_yet" \| null | yes |  |
| `source` | string | yes |  |
| `consentAt` | string \| null | yes |  |
| `docsPurgedAt` | string \| null | yes |  |
| `createdAt` | string | yes |  |
| `updatedAt` | string | yes |  |

## Errors

Errors are [problem details](https://api.bymundi.com/docs/guides/errors.md). Besides the refusals described above, any call like this one can return:

- [`invalid_request`](https://api.bymundi.com/problems/invalid_request.md) — Invalid request
- [`unauthorized`](https://api.bymundi.com/problems/unauthorized.md) — Missing or invalid API key
- [`insufficient_scope`](https://api.bymundi.com/problems/insufficient_scope.md) — Missing permission
- [`rate_limited`](https://api.bymundi.com/problems/rate_limited.md) — Rate limit reached
- [`not_found`](https://api.bymundi.com/problems/not_found.md) — Not found

## Examples

#### curl

```bash
curl https://api.bymundi.com/v1/travelers/$TRAVELER_ID \
  -H "Authorization: Bearer $BYMUNDI_KEY"
```

#### JavaScript

```javascript
const res = await fetch(`https://api.bymundi.com/v1/travelers/${travelerId}`, {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.BYMUNDI_KEY}`,
  },
});
if (!res.ok) throw new Error((await res.json()).detail);
const data = await res.json();
```

#### Python

```python
import os, uuid, requests

res = requests.get(
    f"https://api.bymundi.com/v1/travelers/{travelerId}",
    headers={"Authorization": f"Bearer {os.environ['BYMUNDI_KEY']}"},
)
res.raise_for_status()
data = res.json()
```
