# Pos Indonesia Tracking API & MCP

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

Query live **Pos Indonesia** (`posindonesia`) domestic waybill status and scan history in a single synchronous request.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `posindonesia` |
| **Brand aliases** | PT Pos Indonesia, Pos Indo |
| **Category** | Regional |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=...` |
| **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`)** | `/^P\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{7}$/` | none | `P2699999999999` |

Pass `?carrier=posindonesia` so the number is routed here.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "posindonesia",
  "trackingNumber": "P2699999999999",
  "status": "delivered",
  "statusDescription": "Barang anda selesai dikirim dan diterima",
  "service": null,
  "deliveredAt": null,
  "deliveredAtLocal": "2026-01-08T14:50:09",
  "signedBy": null,
  "destination": null,
  "events": [
    {
      "timestamp": null,
      "localTime": "2026-01-08T14:50:09",
      "status": "delivered",
      "description": "Barang anda selesai dikirim dan diterima",
      "location": "Kota Contoh 12345",
      "code": "DELIVERED"
    },
    {
      "timestamp": null,
      "localTime": "2026-01-07T14:40:49",
      "status": "out_for_delivery",
      "description": "Barang anda telah melewati proses DeliveryRunsheet di Kantor Pos Contoh 12346",
      "location": "Contoh 12346",
      "code": "DELIVERYRUNSHEET"
    },
    {
      "timestamp": null,
      "localTime": "2026-01-03T20:50:58",
      "status": "in_transit",
      "description": "Bagging",
      "location": null,
      "code": "inBAG"
    }
  ]
}
```

## Notes

- **Source**: the API behind posindonesia.co.id's tracking page. Its JSON is malformed when numeric fields are blank, which the adapter repairs. Only the domestic `P…` waybill is auto-detected; `…ID` S10 items are shared with the UPU network, so use `?carrier=posindonesia`.
- **Time zone**: Indonesia spans three zones, so only `localTime` is set.
- **Statuses**: `DELIVERED`, `DELIVERYRUNSHEET` (out for delivery), `PENDING` (created) and wording for the rest.

## Related Resources

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