# List customers

`GET /customers`

Returns customers, newest first. Search by name or email.

Server: `https://api.relaypoint.example/v1`

Authentication: bearerAuth (http bearer)

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | no | Part of a name or an email address. |
| `cursor` | query | string | no | The `next_cursor` from the previous page. |

## Example request (curl)

```shell
curl 'https://api.relaypoint.example/v1/customers?q=jamie' \
  --header 'Authorization: Bearer YOUR_TOKEN'
```

## Responses

### 200 — A page of customers.

`application/json` · object

- `data` · array<Customer>
  - `id` · string
  - `name` · string
  - `email` · string<email>
  - `company` · string | null
  - `conversations_count` · integer
  - `created_at` · string<date-time>
- `next_cursor` · string | null

```json
{
  "data": [
    {
      "id": "cus_31ma7q",
      "name": "Jamie Kim",
      "email": "jamie@example.com",
      "company": "Northwind",
      "conversations_count": 4,
      "created_at": "2026-03-12T15:40:00Z"
    }
  ],
  "next_cursor": null
}
```
