# Retrieve Client Details Template

`GET /lokta-lms/api/v1/clients/template`

This is a convenience resource. It can be useful when building maintenance user interface screens for client applications. The template data returned consists of any or all of:

Field Defaults
Allowed Value Lists

Example Request:

clients/template

## Parameters
- `officeId` (query, integer): officeId
- `commandParam` (query, string): commandParam
- `staffInSelectedOfficeOnly` (query, boolean): staffInSelectedOfficeOnly

## Responses
- `200`: OK

## Response fields
- `activationDate` (string)
- `datatables` (array of GetClientsDataTables)
- `officeId` (integer)
- `officeOptions` (array of GetClientsOfficeOptions)
- `savingProductOptions` (array of GetClientsSavingProductOptions)
- `staffOptions` (array of GetClientsStaffOptions)

## Example request (cURL)
```bash
curl -X GET \
  'http://localhost:8080/lokta-lms/api/v1/clients/template' \
  -u '{username}:{password}' \
  -H 'Tenant-Identifier: default'
```

## Example response
```json
{
  "activationDate": "19 August 2026",
  "datatables": [
    {}
  ],
  "officeId": 1,
  "officeOptions": [
    {}
  ]
}
```

Interactive: https://developer.lokta.ai/reference.html#operation/retrieveTemplateClient
