Admin Autopin
GET /api/admin/autopin-settings
Section titled “GET /api/admin/autopin-settings”Get Autopin Settings
The auto-pin policy as the sweep will read it tonight.
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful Response | AutoPinSettingsResponse |
| 422 | Validation Error | HTTPValidationError |
PATCH /api/admin/autopin-settings
Section titled “PATCH /api/admin/autopin-settings”Update Autopin Settings
Update the auto-pin knobs; switching the feature off clears its pins.
Request body (required)
| Field | Type | Required | Description |
|---|---|---|---|
| enabled | boolean | no | |
| keep_coverage | number | no | |
| max_per_agent | integer | no | |
| min_calls | integer | no | |
| min_chats | integer | no | |
| min_coverage | number | no | |
| window_days | integer | no |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful Response | AutoPinSettingsResponse |
| 422 | Validation Error | HTTPValidationError |