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

> Track India Post shipments, money orders, and complaints in real-time using a consignment number, booking reference, or complaint ID. Retrieve delivery status, tracking events, and progress updates for postal items.

**Category:** Government & Public Data | **Website:** [www.indiapost.gov.in/](https://www.indiapost.gov.in/) | **Docs:** [parse.bot/marketplace/0360549a-eb61-40b0-b719-ba47f1aaddab/indiapost-gov-in-api](https://parse.bot/marketplace/0360549a-eb61-40b0-b719-ba47f1aaddab/indiapost-gov-in-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/indiapost/`
**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

### Track by reference

Track consignments by a booking reference number. Returns a list of article numbers associated with the reference. An empty articles array indicates no articles are linked to the given reference.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `reference_number` | string | Yes | Booking reference number (alphanumeric including / and -, up to 23 characters) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/indiapost/track-by-reference \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"reference_number":"<string>"}'
```

### Track complaint

Track a complaint by its complaint ID. Returns complaint tracking data from India Post's system.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `complaint_id` | string | Yes | India Post complaint ID |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/indiapost/track-complaint \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"complaint_id":"<string>"}'
```

### Track consignment

Track a consignment/article by its tracking number. Returns booking details (origin, destination, weight, tariff), delivery status, and a timeline of tracking events from India Post's system. Accepts standard India Post article numbers in XX123456789XX format. The response always contains the structural envelope; fields within booking_details may be null for numbers not yet in the system.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `consignment_number` | string | Yes | India Post consignment/article number in format XX123456789XX (2 uppercase letters + 9 digits + 2 uppercase letters, e.g. EE123456789IN) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/indiapost/track-consignment \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"consignment_number":"<string>"}'
```

### Track money order

Track a money order by its number. Returns booking details (PNR, booking location, dates) and a timeline of tracking events. The response always contains the structural envelope; fields may be null for numbers not yet in the system.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `money_order_number` | string | Yes | Money order number, must be exactly 10 or 18 digits |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/indiapost/track-money-order \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"money_order_number":"<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.