Clients
Clients represent the people or companies you invoice and send contracts to. All client data is scoped to your business.
Endpoints
GET
https://api.tryesperworks.com/api/v1/clientsclients:readList all clients. Supports ?search=, ?per_page=.
GET
https://api.tryesperworks.com/api/v1/clients/:idclients:readRetrieve a single client.
POST
https://api.tryesperworks.com/api/v1/clientsclients:writeCreate a new client.
PATCH
https://api.tryesperworks.com/api/v1/clients/:idclients:writeUpdate a client's details.
DELETE
https://api.tryesperworks.com/api/v1/clients/:idclients:writeDelete a client.
Create a client
curl -X POST https://api.tryesperworks.com/api/v1/clients \
-H "Authorization: Bearer ew_live_xxxx" \
-H "Content-Type: application/json" \
-d '{
"name": "Kofi Mensah",
"email": "kofi@example.com",
"phone": "+233244000000",
"company": "Acme Ltd"
}'Response
{
"client": {
"id": 42,
"name": "Kofi Mensah",
"email": "kofi@example.com",
"phone": "+233244000000",
"company": "Acme Ltd",
"address": null,
"created_at": "2026-05-01T12:00:00Z"
}
}Client object
| Field | Type | Description |
|---|---|---|
id | integer | Unique client ID. |
name | string | Full name. Required. |
email | string | Email address. Required. Must be unique per business. |
phone | string | Phone number. Optional. |
company | string | Company name. Optional. |
address | string | Mailing address. Optional. |
created_at | string | ISO 8601 timestamp. |