> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.milenow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.milenow.com/_mcp/server.

# List your trips

GET https://lastmile.milenow.com/index.php/api/v1/partners/transporters/trips

Transporter token. Trips outsourced to you and trips with an open offer to you, newest first, without stops. `offer` is set when the trip is only offered.

Reference: https://docs.milenow.com/ftl-trips/api-reference/transporter-api/list-transporter-trips

## Authentication

- `Authorization` header (bearer token, required) — Send `Authorization: Bearer <token>`. Company endpoints take the company API token from `POST /api/v1/partners/login`. `/transporters` endpoints take the transporter token from `POST /api/v1/partners/transporters/login`. You can also send the token as an `access_token` query parameter or body field.

## Request

### Query parameters

- `status_id` (integer, optional) — Trip status id. See [trip statuses](/ftl-trips/business-rules#trip-statuses). Trips with no status cannot be filtered.
- `driver_id` (integer, optional)
- `created_from` (date, optional) — Trips created on or after this day, `Y-m-d`. This is the trip creation date, not the pickup day.
- `created_to` (date, optional) — Trips created on or before this day, `Y-m-d`.
- `page` (integer, optional, default: 1)
- `limit` (integer, optional, default: 20) — Values above 50 are treated as 50.

## Response

### 200

Success

- `status` (integer, required)
- `msg` (string, required)
- `msgs` (list of string, required)
- `data` (ListTransporterTripsData, required)

## Errors

### 401 Unauthorized Error

Missing, invalid or expired token.

- `status` (integer, required) — Same as the HTTP status code.
- `msg` (string, required) — Summary of the problem. When there are several problems it says how many.
- `msgs` (list of string, required) — Every problem found. Validation lists all problems at once, so fix them all before you retry.
- `data` (list of any, required) — Always an empty list on errors.

### 412 Precondition Failed Error

A date filter is not `Y-m-d`.

- `status` (integer, required) — Same as the HTTP status code.
- `msg` (string, required) — Summary of the problem. When there are several problems it says how many.
- `msgs` (list of string, required) — Every problem found. Validation lists all problems at once, so fix them all before you retry.
- `data` (list of any, required) — Always an empty list on errors.

### 429 Too Many Requests Error

Rate limit reached. Wait `Retry-After` seconds.

- `status` (integer, required) — Same as the HTTP status code.
- `msg` (string, required) — Summary of the problem. When there are several problems it says how many.
- `msgs` (list of string, required) — Every problem found. Validation lists all problems at once, so fix them all before you retry.
- `data` (list of any, required) — Always an empty list on errors.

## Types

### ListTransporterTripsData

- `page` (integer, optional)
- `limit` (integer, optional)
- `has_more` (boolean, optional)
- `trips` (list of TransporterTripSummary, optional)

### TransporterTripSummary

- `id` (integer, optional) — Trip id.
- `type` (enum, optional) — `round_trip` when the trip has a return stop, otherwise `outbound`.
  - Allowed values: `outbound`, `round_trip`
- `status` (TransporterTripSummaryStatus, optional, nullable) — Trip status, or `null` until a driver is assigned. See [trip statuses](/ftl-trips/business-rules#trip-statuses).
- `created_at` (string, optional, nullable) — Local date and time in your company time zone, `Y-m-d H:i:s`, no offset.
- `outbound_stops` (integer, optional)
- `return_stops` (integer, optional)
- `driver` (Driver, optional)
- `partner` (TransporterTripSummaryPartner, optional, nullable) — Transporter the trip is outsourced to in the Mile web app.
- `offer` (TransporterOfferRef, optional) — Your open offer for this trip, or `null`.
- `busy_from` (string, optional, nullable) — When the truck starts work for this trip, from the ETA plan. Local date and time in your company time zone, `Y-m-d H:i:s`, no offset.
- `busy_to` (string, optional, nullable) — When the truck is back at base, from the ETA plan. Local date and time in your company time zone, `Y-m-d H:i:s`, no offset.

### TransporterTripSummaryStatus

Trip status, or `null` until a driver is assigned. See [trip statuses](/ftl-trips/business-rules#trip-statuses).

- `id` (integer, optional)
- `name` (string, optional)

### Driver

- `id` (integer, optional)
- `name` (string, optional)
- `phone` (string, optional, nullable)
- `vehicle` (DriverVehicle, optional, nullable)

### TransporterTripSummaryPartner

Transporter the trip is outsourced to in the Mile web app.

- `id` (integer, optional)
- `name` (string, optional)

### TransporterOfferRef

Your open offer for this trip, or `null`.

- `offer_id` (integer, optional) — Send in `offer_ids` to accept or reject.
- `expires_at` (string, optional, nullable) — Local date and time in your company time zone, `Y-m-d H:i:s`, no offset.
- `seconds_left` (integer, optional)

### DriverVehicle

- `id` (integer, optional)
- `name` (string, optional)
- `plate` (string, optional, nullable)

## Examples

**Response**

```json
{
  "status": 200,
  "msg": "Shipment trips fetched successfully",
  "msgs": [],
  "data": {
    "page": 1,
    "limit": 20,
    "has_more": false,
    "trips": [
      {
        "id": 413,
        "type": "outbound",
        "status": null,
        "created_at": "2026-10-28 14:42:16",
        "outbound_stops": 1,
        "return_stops": 0,
        "partner": {
          "id": 7019257,
          "name": "Desert Line Transport"
        },
        "busy_from": "2026-11-03 09:30:00",
        "busy_to": "2026-11-03 17:41:00"
      }
    ]
  }
}
```

**SDK Code**

```python Example
import requests

url = "https://lastmile.milenow.com/index.php/api/v1/partners/transporters/trips"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Example
const url = 'https://lastmile.milenow.com/index.php/api/v1/partners/transporters/trips';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://lastmile.milenow.com/index.php/api/v1/partners/transporters/trips"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Example
require 'uri'
require 'net/http'

url = URI("https://lastmile.milenow.com/index.php/api/v1/partners/transporters/trips")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://lastmile.milenow.com/index.php/api/v1/partners/transporters/trips")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://lastmile.milenow.com/index.php/api/v1/partners/transporters/trips', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Example
using RestSharp;

var client = new RestClient("https://lastmile.milenow.com/index.php/api/v1/partners/transporters/trips");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://lastmile.milenow.com/index.php/api/v1/partners/transporters/trips")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```