GET /api/v1/customers
The address book of the key's organization.
| Role in the organization | This endpoint |
|---|---|
owner | Allowed |
admin | Allowed |
member | Allowed |
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number, from 1 |
limit | integer | 20 | Page size, capped at 100 |
search | string | — | Matches name, email and phone at once |
curl -H "x-api-key: $VILLASLOT_API_KEY" \
"https://villaslot.app/api/v1/customers?search=lindqvist"200 OK — the page, with pagination.401 Unauthorized — missing or invalid key, or a key whose bearer left the organization.404 Not Found — unknown id, or an id belonging to another organization. The two are
deliberately indistinguishable.429 Too Many Requests — over 120 requests in a minute for this key.