All endpoints require an Authorization: Bearer <token> header.
Endpoint
Request
No request parameters.
Response
Returns an array of customer objects.
Unique identifier for the customer (UUID).
Full name of the customer.
Email address of the customer.
Phone number of the customer. null if not provided.
Mailing address of the customer. null if not provided.
UUID of the tenant this customer belongs to.
ISO 8601 timestamp of when the customer was created.
ISO 8601 timestamp of when the customer was last updated.
Examples
curl --request GET \
--url http://localhost:5000/api/customers \
--header 'Authorization: Bearer <token>'
Example response
[
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Acme Corp",
"email": "[email protected]",
"phone": "+1-555-0100",
"address": "123 Main St, Springfield, IL 62701",
"tenantId": "f0e1d2c3-b4a5-6789-cdef-012345678901",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-03-10T14:22:00.000Z"
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"name": "Beta Industries",
"email": "[email protected]",
"phone": null,
"address": null,
"tenantId": "f0e1d2c3-b4a5-6789-cdef-012345678901",
"createdAt": "2024-02-20T08:00:00.000Z",
"updatedAt": "2024-02-20T08:00:00.000Z"
}
]