API reference
12 operations in clients. Raw spec: openapi.json.
GET
/api/v1/clientsGET /api/clients
Responses
| Status | Description |
|---|---|
200 |
Security: bearer
POST
/api/v1/clientsPOST /api/clients — instant-first (IF1/IF2): idempotency-keyed and returns the read-your-write `mutation` metadata.
Request body
CreateClientRequest
Responses
| Status | Description |
|---|---|
200 | |
409 | idempotency key reused |
Security: bearer
GET
/api/v1/clients/{id}GET /api/clients/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Responses
| Status | Description |
|---|---|
200 |
Security: bearer
GET
/api/v1/clients/{id}/assetsGET /api/clients/{id}/assets
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Responses
| Status | Description |
|---|---|
200 |
Security: bearer
POST
/api/v1/clients/{id}/assetsPOST /api/clients/{id}/assets
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Request body
CreateAssetRequest
Responses
| Status | Description |
|---|---|
200 |
Security: bearer
GET
/api/v1/clients/{id}/completenessGET /api/clients/{id}/completeness — backend documentation-completeness scoring: the weights live SERVER-side now, replacing the honest client-side metadata scoring the clients lane shipped. Same shape, same pro-ration doctrine: score = round(earned / maxKnown × 100) with null legs (leg absent) pro-rated OUT, never a silent zero.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Responses
| Status | Description |
|---|---|
200 | |
404 | client not visible in scope |
Security: bearer
GET
/api/v1/clients/{id}/contactsGET /api/clients/{id}/contacts
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Responses
| Status | Description |
|---|---|
200 |
Security: bearer
POST
/api/v1/clients/{id}/contactsPOST /api/clients/{id}/contacts
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Request body
CreateContactRequest
Responses
| Status | Description |
|---|---|
200 |
Security: bearer
GET
/api/v1/clients/{id}/contacts/activityGET /api/clients/{id}/contacts/activity
Derived, never written: email on this client's tickets, portal replies and calls, matched to the contact's own address or number. A contact with no matching event is absent from the answer rather than sent with a zero.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Responses
| Status | Description |
|---|---|
200 |
Security: bearer
GET
/api/v1/clients/{id}/sitesclients_list_sites
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | |
include_archived | query | boolean | No | Archived sites are hidden by default; the archive view asks for them. |
Responses
| Status | Description |
|---|---|
200 |
Security: bearer
POST
/api/v1/clients/{id}/sitesPOST /api/clients/{id}/sites
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Request body
CreateSiteRequest
Responses
| Status | Description |
|---|---|
200 |
Security: bearer
POST
/api/v1/clients/{id}/sites/{site_id}/archivePOST /api/clients/{client_id}/sites/{site_id}/archive — hide the site from lists and pickers without deleting it. The 200 body is the updated site, `archived_at` included.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | |
site_id | path | string | Yes |
Request body
ArchiveSiteRequest
Responses
| Status | Description |
|---|---|
200 | |
404 | site not visible in scope (rls_sparse) |
Security: bearer