What You’ll Learn
- Listing and filtering clients
- Creating and updating client records
- Associating sites with clients
GET /clients
Returns all clients with pagination support. Method: GET (readonly)Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
page | integer | No | 1 | Page number |
per_page | integer | No | 10 | Items per page |
search | string | No | — | Search in client name |
include | string | No | — | Comma-separated client IDs to include |
exclude | string | No | — | Comma-separated client IDs to exclude |
status | string | No | — | Filter by status |
Response
GET /clients/
Returns detailed information about a specific client. Method: GET (readonly)Parameters
| Name | Type | Required | Description |
|---|---|---|---|
client | integer/string | Yes | Client ID or email address |
Response
POST /clients/add
Creates a new client record. Method: POSTParameters
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Client name |
email | string | Yes | Client email address |
phone | string | No | Phone number |
address | string | No | Street address |
city | string | No | City |
state | string | No | State/Province |
zip | string | No | ZIP/Postal code |
country | string | No | Country |
notes | string | No | Internal notes |
selected_sites | string | No | Comma-separated site IDs to associate |
Response
PUT /clients//edit
Updates an existing client’s information. Method: PUTParameters
| Name | Type | Required | Description |
|---|---|---|---|
client | integer/string | Yes | Client ID or email |
name | string | No | Updated name |
email | string | No | Updated email |
phone | string | No | Updated phone |
address | string | No | Updated address |
city | string | No | Updated city |
state | string | No | Updated state |
zip | string | No | Updated ZIP |
country | string | No | Updated country |
notes | string | No | Updated notes |
selected_sites | string | No | Comma-separated site IDs to associate |
Response
Related Resources
- REST API Overview - API basics and authentication
- Sites Endpoints - Site management
- Manage Clients - Client management in Dashboard