Restore a settings version
POST /v1/client/settings/restore
Restore a saved version by sending revision and expected_revision from your latest settings read. Restore creates a new version and preserves the existing history. A stale expected_revision returns 409. Changes apply to future reports; reports already running keep their settings snapshot.
Authentication
Create a named API key in your workspace’s API keys tab, then send it in the Authorization header on each API request. Your key connects the integration to that workspace’s saved settings and Word templates. Signing into the website does not replace this header in an API integration.
Authorization: Bearer <API_KEY>
Keep the key in your application’s server-side secret configuration. It is shown only once when created, so save it securely then. Do not place it in browser code, logs, version control, or a prompt sent to your coding agent. You can revoke an integration’s key from the workspace without changing the other keys.
Request
application/json
| Name | Type | Required | Constraints | Description |
|---|
| revision | integer | Yes | minimum=0.0; maximum=9.223372036854776e+18 | — |
| expected_revision | integer | Yes | minimum=0.0; maximum=9.223372036854776e+18 | — |
Request examples
{
"expected_revision": 3,
"revision": 1
}
Example
BASE_URL=https://radiologydictation.com
curl --request POST "$BASE_URL/v1/client/settings/restore" \
--header "Authorization: Bearer $API_KEY" \
--header "Content-Type: application/json" \
--data '{"expected_revision": 3, "revision": 1}'
Responses
| Status | Description | Type |
|---|
| 200 | Successful Response | ClientSettings · application/json |
| 401 | Invalid or missing API key | object · application/json |
| 429 | Too many attempts. Please try again later. | object · application/json |
| 503 | Service is unavailable. Please try again. | object · application/json |
| 400 | Settings must contain valid text. | object · application/json |
| 404 | Settings version not found. | — |
| 409 | Your changes were not saved. Reload settings before trying again. | — |
| 413 | Request is too large. | object · application/json |
| 415 | JSON request required. | object · application/json |
| 422 | Validation Error | HTTPValidationError · application/json |
| Header | Type | Description |
|---|
| Retry-After | string | — |
Schemas
ClientSettings
| Name | Type | Required | Constraints | Description |
|---|
| standards_text | string | No | maxLength=200000; default="" | Your saved study-specific report wording. Begin each standard with a unique uppercase, hyphen-separated label on its own line, such as MRI-LSP. |
| transcription_instructions | string | No | maxLength=20000; default="" | Terminology guidance used when recognizing spoken words, such as medical names, laterality, and measurements. |
| dictation_conventions | string | No | maxLength=20000; default="" | Rules for interpreting spoken commands and corrections when constructing the report. |
| style_instructions | string | No | maxLength=20000; default="" | Preferences for report wording, organization, and expression of certainty. |
| technique_instructions | TechniqueInstructions | No | — | — |
| pathology_text | string | No | maxLength=200000; default="" | — |
| revision | integer | No | minimum=0.0; default=0 | The saved settings version. Send this value as expected_revision when preparing an update. |
| groups | array<SettingsGroup> | No | minItems=1; maxItems=100 | — |
HTTPValidationError
| Name | Type | Required | Constraints | Description |
|---|
| detail | array<ValidationError> | No | — | — |
Pathology
| Name | Type | Required | Constraints | Description |
|---|
| id | string | Yes | pattern="^[a-zA-Z0-9_-]+$"; minLength=1; maxLength=64 | — |
| when_dictated | string | Yes | minLength=1; maxLength=20000 | — |
| findings | string | Yes | minLength=1; maxLength=20000 | — |
| impression | string | No | maxLength=20000; default="" | — |
SettingsEntry
| Name | Type | Required | Constraints | Description |
|---|
| id | string | Yes | pattern="^[a-zA-Z0-9_-]+$"; minLength=1; maxLength=64 | — |
| name | string | No | maxLength=80; default="" | — |
| text | string | No | maxLength=200000; default="" | — |
| pathologies | array<Pathology> | No | maxItems=100 | — |
SettingsGroup
One organization-only section; every section participates in requests.
| Name | Type | Required | Constraints | Description |
|---|
| id | string | Yes | pattern="^[a-zA-Z0-9_-]+$"; minLength=1; maxLength=64 | — |
| name | string | Yes | minLength=1; maxLength=80 | — |
| standards_text | string | No | maxLength=200000; default="" | — |
| transcription_instructions | string | No | maxLength=20000; default="" | — |
| dictation_conventions | string | No | maxLength=20000; default="" | — |
| style_instructions | string | No | maxLength=20000; default="" | — |
| entries | object | No | — | — |
SettingsRestore
| Name | Type | Required | Constraints | Description |
|---|
| revision | integer | Yes | minimum=0.0; maximum=9.223372036854776e+18 | — |
| expected_revision | integer | Yes | minimum=0.0; maximum=9.223372036854776e+18 | — |
TechniqueInstructions
| Name | Type | Required | Constraints | Description |
|---|
| mri | string | No | pattern="^[^\\x00]*$"; default="" | — |
| ct | string | No | pattern="^[^\\x00]*$"; default="" | — |
| xray | string | No | pattern="^[^\\x00]*$"; default="" | — |
ValidationError
| Name | Type | Required | Constraints | Description |
|---|
| loc | array<string | integer> | Yes | — | — |
| msg | string | Yes | — | — |
| type | string | Yes | — | — |
| input | object | No | — | — |
| ctx | object | No | — | — |