---
title: "Get my Sabre agent"
---

> 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 my Sabre agent

Path: Nicer API › Booking

`GET /booking/sabre/me`

URL: `https://api.nicer.travel/booking/sabre/me`

Tells the signed-in advisor or admin whether the agency they act in (x-nicer-company) books through Sabre, which products it sells there, and whose DK their own searches and bookings carry: their own agent, the agency's default agent, or none. When the agency has no Sabre connection or it is off, it answers 200 with `enabled: false`, never an error. It never returns another person's DK, a PCC or anything about the credential. Errors: 400 ERROR_COMPANY_REQUIRED, 403 ERROR_UNAUTHORIZED for a traveler.

## Authentication

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

## Header parameters

- `x-nicer-company` (`booking.sabre.me.list.header.x-nicer-company`; string, required) — Company context. Authentication and tenant membership are validated by the API.

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
  headers: { "x-nicer-company": process.env.NICER_COMPANY },
});

await nicer.booking.sabre.me.list();
```

### Nicer CLI

```bash
nicer booking sabre me list --company "$NICER_COMPANY"
```

### cURL

```bash
curl --request GET \
  --url https://api.nicer.travel/booking/sabre/me \
  --header 'Authorization: Bearer <token>' \
  --header 'x-nicer-company: string'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/booking/sabre/me';
const options = {
  method: 'GET',
  headers: {'x-nicer-company': 'string', 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/booking/sabre/me"

headers = {
    "x-nicer-company": "string",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "agent": {
    "activatedAt": "2026-11-10T15:04:05.000Z",
    "dkNumber": "7TZ123",
    "isDefault": false
  },
  "bookingAs": "OWN_AGENT",
  "enabled": true,
  "products": [
    "CAR_RENTAL",
    "FLIGHT",
    "HOTEL"
  ]
}
```

- `agent` (`booking.sabre.me.list.response.200.agent`; any of, required)
  - any of the following:
    - `object`
      - `activatedAt` (`booking.sabre.me.list.response.200.agent.1.activatedAt`; string, required)
        - 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))$`
      - `dkNumber` (`booking.sabre.me.list.response.200.agent.1.dkNumber`; string, required) — The customer number (DK) Sabre stamps on a booking to say which agent of the agency made it: 1 to 10 letters and digits, stored upper-case.
        - pattern: `^[A-Z0-9]{1,10}$`
      - `isDefault` (`booking.sabre.me.list.response.200.agent.1.isDefault`; boolean, required)
    - `null`
- `bookingAs` (`booking.sabre.me.list.response.200.bookingAs`; string, required) — Whose DK the caller's Sabre searches and bookings carry: `OWN_AGENT` their own; `AGENCY_AGENT` the agency's default agent, because they have none; `NO_AGENT` neither exists, so Sabre returns nothing for them until they activate one.
  - one of `"OWN_AGENT"`, `"AGENCY_AGENT"`, `"NO_AGENT"`
- `enabled` (`booking.sabre.me.list.response.200.enabled`; boolean, required)
- `products` (`booking.sabre.me.list.response.200.products`; array of string, required)
  - one of `"CAR_RENTAL"`, `"FLIGHT"`, `"HOTEL"`, `"INSURANCE"`

### 400

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

#### Example

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

- `errorCode` (`booking.sabre.me.list.response.400.errorCode`; string, required)
- `errorMessage` (`booking.sabre.me.list.response.400.errorMessage`; string, required)

### 401

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

#### Example

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

- `errorCode` (`booking.sabre.me.list.response.401.errorCode`; string, required)
- `errorMessage` (`booking.sabre.me.list.response.401.errorMessage`; string, required)

### 403

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

#### Example

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

- `errorCode` (`booking.sabre.me.list.response.403.errorCode`; string, required)
- `errorMessage` (`booking.sabre.me.list.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Booking/booking.sabre.me.list/index.md
