# Torrestir Tracking API & MCP

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

Query live **Torrestir** (`torrestir`) package status and scan history in a single synchronous `GET` request or MCP tool call. `lastscanned` auto-detects these numbers.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `torrestir` |
| **Brand aliases** | Torrestir, Torrestir Transportes, torrestir.com |
| **Category** | Regional (road freight, Portugal / Spain / Germany) |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=M0010002L00401935478,...` |
| **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`)** | `/^M001\d{4}[0-9A-Z]\d{11}$/` | none | `M0010002L00401935478` |
| **Pass 2 (`mayMatch`)** | none | none | none |

`M001…` codes belong to Torrestir alone, so `?carrier=torrestir` is optional.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "torrestir",
  "trackingNumber": "M0010002L00401935478",
  "status": "delivered",
  "statusDescription": "Entregue",
  "service": null,
  "deliveredAt": null,
  "deliveredAtLocal": "2026-03-12T12:50:00",
  "signedBy": null,
  "destination": {
    "city": "LISBOA",
    "state": null,
    "country": null
  },
  "events": [
    {
      "timestamp": null,
      "localTime": "2026-03-12T12:50:00",
      "status": "delivered",
      "description": "Entregue",
      "location": null,
      "code": null
    },
    {
      "timestamp": null,
      "localTime": "2026-03-12T09:47:00",
      "status": "out_for_delivery",
      "description": "Em Distribuição",
      "location": null,
      "code": null
    },
    {
      "timestamp": null,
      "localTime": "2026-03-10T17:02:00",
      "status": "in_transit",
      "description": "Recolhido",
      "location": null,
      "code": null
    },
    {
      "timestamp": null,
      "localTime": "2026-03-09T00:00:00",
      "status": "label_created",
      "description": "Guia Criada",
      "location": null,
      "code": null
    }
  ]
}
```

## Notes

- **Wording**: scan text is Torrestir's Portuguese. A `Devolvido` scan (returned to the platform after a failed delivery) reports `exception`, since the parcel is usually redelivered.
- **Time zone**: Torrestir moves freight across three countries and the page prints no zone, so only `localTime` is set.

## Related Resources

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