# Skywings — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://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 for flights across Skywings.co.uk by specifying your route, travel dates, cabin class, and trip type to instantly access available options with detailed pricing, flight segments, and baggage allowances. Find and compare multiple flight choices tailored to your travel needs in seconds.

**Category:** Travel | **Website:** [skywings.co.uk/](https://skywings.co.uk/) | **Docs:** [parse.bot/marketplace/98f3f917-14eb-45bc-9011-2ed4807ba26a/skywings-co-uk-api](https://parse.bot/marketplace/98f3f917-14eb-45bc-9011-2ed4807ba26a/skywings-co-uk-api)

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

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/skywings/`
**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

### Search flights

Search for available flights between two airports. Returns all matching flight options with pricing, segment details (carrier, times, stops, baggage), and search parameters. Each flight result includes outbound and (for round trips) inbound segments with per-leg detail. The upstream API returns all matching results in a single response; there is no pagination. A search with no matching flights returns an empty flights array with total_results=0.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `adults` | string | No | Number of adult passengers (1-9). |
| `cabin_class` | string | No | Cabin class for the flight. |
| `children` | string | No | Number of child passengers (0-9). |
| `departure_date` | string | Yes | Departure date in ISO format YYYY-MM-DD. |
| `destination` | string | Yes | Destination airport or city IATA code (3 letters, e.g. DXB for Dubai International, JFK for New York JFK). |
| `direct_only` | boolean | No | When true, only return direct (non-stop) flights. |
| `infants` | string | No | Number of infant passengers (0-9). |
| `origin` | string | Yes | Origin airport or city IATA code (3 letters, e.g. LON for all London airports, LHR for Heathrow, JFK for New York JFK). |
| `return_date` | string | No | Return date in ISO format YYYY-MM-DD. Required when trip_type is round_trip. |
| `trip_type` | string | No | Type of trip. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/skywings/search-flights \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"adults":"<string>","cabin_class":"<string>","children":"<string>","departure_date":"<string>","destination":"<string>","direct_only":"<boolean>","infants":"<string>","origin":"<string>","return_date":"<string>","trip_type":"<string>"}'
```

## Next steps

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