# RedX Tracking API & MCP

URL: https://docs.lastscanned.com/carriers/redx

Query live **RedX** (`redx`) package status and scan history in a single synchronous `GET` request or MCP tool call.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `redx` |
| **Brand aliases** | REDX, Redx Bangladesh, RedX Courier |
| **Category** | Bangladeshi domestic courier |
| **Region** | Bangladesh |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=25A111XY22ABC1,...` |
| **MCP server (`https://mcp.lastscanned.com`)** | `track_package`, `track_packages`, `list_carriers` |
| **Authentication & pricing** | `Authorization: Bearer lsk_live_...` · 1 free keyless lookup/day per IP |

## Tracking Number Formats & Auto-Detection

| Pass | Rule / Regex | Check Digit | Examples |
|---|---|---|---|
| **Pass 1 (`matches`)** | none | none | none |
| **Pass 2 (`mayMatch`)** | none | none | none |

RedX ids are 14 letters and digits in more than one layout, so pass `?carrier=redx`.

## Synchronous `GET` Request & Normalized JSON Response

```bash
curl -s "https://api.lastscanned.com/v1/track/25A111XY22ABC1?carrier=redx" \
  -H "Authorization: Bearer $LASTSCANNED_API_KEY"
```

```json
{
  "carrier": "redx",
  "trackingNumber": "25A111XY22ABC1",
  "status": "delivered",
  "statusDescription": "Parcel is delivered successfully",
  "service": null,
  "deliveredAt": "2026-03-24T11:54:47Z",
  "deliveredAtLocal": "2026-03-24T11:54:47",
  "signedBy": null,
  "destination": {
    "city": null,
    "state": null,
    "country": "BD"
  },
  "events": [
    {
      "timestamp": "2026-03-24T11:54:47Z",
      "localTime": "2026-03-24T11:54:47",
      "status": "delivered",
      "description": "Parcel is delivered successfully",
      "location": null,
      "code": "agent-delivered"
    },
    {
      "timestamp": "2026-03-24T05:16:21Z",
      "localTime": "2026-03-24T05:16:21",
      "status": "out_for_delivery",
      "description": "Parcel is on the way to delivery by a delivery agent",
      "location": null,
      "code": "dispatched-to-agent"
    },
    {
      "timestamp": "2026-03-22T16:31:12Z",
      "localTime": "2026-03-22T16:31:12",
      "status": "label_created",
      "description": "Parcel is created successfully",
      "location": null,
      "code": "pickup-pending"
    }
  ]
}
```

## Notes

- **Last character**: the service ignores the id's last character (a check letter), so a wrong final character still returns the parcel; an unknown id answers `isError: true`.
- **Time zone**: events are UTC (`…Z`).
- **Privacy**: agent names and phone numbers in the messages are replaced by "a delivery agent". *On Hold* scans are reported as `exception`.

## Related Resources

- **Regex & check digits**: [Tracking number formats & auto-detection](/formats)
