# Atlys — 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.

> Discover visa requirements and pricing for destinations worldwide by browsing available countries and viewing detailed information including visa types, validity periods, government fees, and required documents. Plan your international travel with transparent cost breakdowns and all necessary documentation details in one place.

**Category:** Travel | **Website:** [atlys.com/](https://atlys.com/) | **Docs:** [parse.bot/marketplace/b7463269-7695-4802-a617-3bf51850b3e6/atlys-com-api](https://parse.bot/marketplace/b7463269-7695-4802-a617-3bf51850b3e6/atlys-com-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/atlys/`
**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 country visa details

Get detailed visa information for a specific destination country including pricing breakdown, visa type, process type, validity, length of stay, and required documents. The country_code must be one returned by list_visa_countries. Returns stale_input if the country is not found for the given citizenship/residence combination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `citizenship` | string | No | ISO 3166-1 alpha-2 country code for the traveler's citizenship (e.g. 'IN', 'US'). |
| `country_code` | string | Yes | ISO 3166-1 alpha-2 destination country code (e.g. 'KE', 'VN', 'TH'). |
| `residence` | string | No | ISO 3166-1 alpha-2 country code for the traveler's country of residence (e.g. 'IN', 'US'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/atlys/get-country-visa-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"citizenship":"<string>","country_code":"<string>","residence":"<string>"}'
```

### List visa countries

List all countries Atlys offers visa services for, with pricing breakdown showing total price, government fee, and Atlys service fee. Returns both supported (active) and unsupported (coming soon) destinations. Each country includes visa type, validity period, length of stay, and entry type when available. Paginated as a single page containing all results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `citizenship` | string | No | ISO 3166-1 alpha-2 country code for the traveler's citizenship (e.g. 'IN', 'US'). |
| `residence` | string | No | ISO 3166-1 alpha-2 country code for the traveler's country of residence (e.g. 'IN', 'US'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/atlys/list-visa-countries \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"citizenship":"<string>","residence":"<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.