---
title: "List customers with search"
method: GET
path: "/api/v1/customers"
tags: ["Customers"]
---

# List customers with search

`GET /api/v1/customers`

## Request

- Base URL: `http://localhost:3002`
- URL: `http://localhost:3002/api/v1/customers`
- Auth: HTTP bearer

Returns a paginated list of customers for the authenticated captain, with trip and spend summary fields.

## Query parameters

- `q` string
- `page` integer
- `limit` integer

## Response `200`

Paginated customer list

- object
  - `data` CustomerSummary[]
    - `id` string, required
    - `firstName` string, required
    - `lastName` string, required
    - `email` string, email, required
    - `phone` string, nullable
    - `notes` string, nullable
    - `createdAt` string, date-time
    - `trips` integer
    - `totalSpent` number
    - `lastTrip` string, date-time, nullable
  - `meta` PaginationMeta
    - `page` integer, required
    - `limit` integer, required
    - `total` integer, required

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/chartercaptain/apis/charter-captain-api.md) · [All operations](https://skmtc.dev/chartercaptain/apis/charter-captain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chartercaptain/apis/charter-captain-api/revisions/1ffea1113adb?raw)
