/api/v1/customers
Requires authentication
60 requests per minute
Deprecated
v1
Send a bearer token in the Authorization header.
A newer version of this operation is available: GET /api/v2/customers.
Returns a paginated list of customers, newest first. Use status to narrow the list, and q to search across name and email.
Full URL: https://api.acme.example/api/v1/customers
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| per_page | integer | no | Results per page, 1–100. |
| page | integer | no | Page number, 1-indexed. |
| status | string, one of active, invited, archived | no | Only customers in this state. |
Responses
200 A page of customers.
| Field | Type | Description |
|---|---|---|
| data | array | |
| data[].id | integer | |
| data[].email | string<email> | |
| data[].name | string | |
| data[].status | string, one of active, invited, archived | |
| data[].created_at | string<date-time> |
401 Missing or expired bearer token.
Example request
curl -X GET 'https://api.acme.example/api/v1/customers' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Accept: application/json'
const response = await fetch('https://api.acme.example/api/v1/customers', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_TOKEN',
'Accept': 'application/json'
}
});
const data = await response.json();
use Illuminate\Support\Facades\Http;
$response = Http::withHeaders([
'Authorization' => 'Bearer YOUR_TOKEN',
'Accept' => 'application/json',
])->get('https://api.acme.example/api/v1/customers');
$data = $response->json();
use GuzzleHttp\Client;
$client = new Client();
$response = $client->request('GET', 'https://api.acme.example/api/v1/customers', [
'headers' => [
'Authorization' => 'Bearer YOUR_TOKEN',
'Accept' => 'application/json',
],
]);
$data = json_decode((string) $response->getBody(), true);
Example response
{
"data": [
{
"id": 1,
"email": "jane@example.com",
"name": "Jane Doe",
"status": "active",
"created_at": "2026-01-15T09:30:00Z"
},
{
"id": 2,
"email": "sam@example.com",
"name": "Sam Reyes",
"status": "invited",
"created_at": "2026-01-14T16:02:11Z"
}
],
"meta": {
"page": 1,
"per_page": 25,
"total": 2
}
}