# Jetsmart — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search JetSMART flights across available routes and airports, check real-time schedules and flight status, and discover low fares with an interactive calendar. Plan your trips efficiently by browsing all airport and route options without needing authentication.

**Category:** Travel | **Website:** [jetsmart.com/](https://jetsmart.com/) | **Docs:** [parse.bot/marketplace/0209d374-9d8d-4298-8dee-c03fdbe415a0/jetsmart-com-api](https://parse.bot/marketplace/0209d374-9d8d-4298-8dee-c03fdbe415a0/jetsmart-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/jetsmart/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get available airports

Retrieve all airports in JetSMART's network. Each airport includes IATA code, name, country, coordinates, and a list of destination codes reachable from it. The full network is returned in a single page; no parameters needed.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/jetsmart/get-available-airports \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get available routes

List every origin-destination pair in JetSMART's network, grouped by country. Returns all routes in a single page. Useful for discovering valid route pairs before searching flights.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/jetsmart/get-available-routes \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get flight status

Check the schedule and availability of flights on a specific route and date. Optionally filter by flight number to get details for a single flight. Returns the same flight structure as search_flights but scoped to one date and route.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | Yes | Flight date in YYYY-MM-DD format. |
| `destination` | string | Yes | Destination airport IATA code. |
| `flight_number` | string | No | Flight number to filter results (e.g. 731). |
| `origin` | string | Yes | Origin airport IATA code. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/jetsmart/get-flight-status \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"date":"<string>","destination":"<string>","flight_number":"<string>","origin":"<string>"}'
```

### Get low fare calendar

Retrieve the lowest available fare for a specific route across all future dates with availability. Returns a calendar sorted by date with the minimum CLP price per date. Useful for finding the cheapest travel dates on a given route.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `destination` | string | Yes | Destination airport IATA code. |
| `origin` | string | Yes | Origin airport IATA code. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/jetsmart/get-low-fare-calendar \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"destination":"<string>","origin":"<string>"}'
```

### Search flights

Search available flights from a given origin, optionally filtered by destination and date. Returns flight schedules with multi-currency pricing (ARS, BRL, CLP, COP, PEN, USD), seat availability, and fare information. Without a date, returns flights across all available future dates. Without a destination, returns flights to all reachable airports from the origin.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | No | Travel date in YYYY-MM-DD format. If omitted, searches all available future dates. |
| `destination` | string | No | Destination airport IATA code. If omitted, returns flights to all destinations from origin. |
| `origin` | string | Yes | Origin airport IATA code. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/jetsmart/search-flights \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"date":"<string>","destination":"<string>","origin":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.