Desktop reference · Local API
Health and diagnostics
Whether the server is up, the Doctor’s readiness report, first-run state, shutdown, and two settings of the whole app: WSL and the context engine.
Reference for TALOS Desktop 0.2.4
Whether the server is up, the Doctor’s readiness report, first-run state, shutdown, and two settings of the whole app: WSL and the context engine. Paths are relative to /api/v1.
POST /admin/shutdown
Section titled “POST /admin/shutdown”Shut the local server down gracefully.
Accepted only from the loopback address and only with the shutdown token in the x-talos-shutdown-token header; the token is compared in constant time. Answers 202 and stops on the next tick, so the answer leaves first. Without the right token: 401 and nothing stops.
Body
None: the body is empty.
Headers
x-talos-shutdown-token
Answers The JSON envelope.
Errors1
| Code | Status | Meaning |
|---|---|---|
AUTH_REQUIRED | 401 | This server accepts only the TALOS window that started it (or, for shutdown, the right token). |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/blocchi/versione
Section titled “POST /sessions/{sessionId}/blocchi/versione”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Path
sessionId- The session.
Body
A JSON object, checked by the store it goes to.
Answers The JSON envelope.
Errors3
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
PIECE_CHANGED | 409 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /folder-trust
Section titled “GET /folder-trust”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
FOLDER_TRUST_UNAVAILABLE | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /folder-trust
Section titled “POST /folder-trust”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Body
fidata- Not yet described.
soloSeMaiChiesta- Not yet described.
soloPerLaConversazione- Not yet described.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
FOLDER_TRUST_UNAVAILABLE | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /sessions/{sessionId}/last-request/pieces(?:/\d+)?
Section titled “GET /sessions/{sessionId}/last-request/pieces(?:/\d+)?”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Path
sessionId- The session.
Answers The JSON envelope.
GET /sessions/{sessionId}/export/pieces(?:/data)?
Section titled “GET /sessions/{sessionId}/export/pieces(?:/data)?”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Path
sessionId- The session.
Answers The JSON envelope.
POST /chat-files
Section titled “POST /chat-files”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Body
None: the body is empty.
Headers
x-talos-file-name
Answers The JSON envelope.
Errors1
| Code | Status | Meaning |
|---|---|---|
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /sessions/{sessionId}/allegati/([^§]+)(?:/anteprima)?
Section titled “GET /sessions/{sessionId}/allegati/([^§]+)(?:/anteprima)?”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Path
sessionId- The session.
Answers The JSON envelope.
GET /health
Section titled “GET /health”Check that the server is up: { "status": "ok" }.
Answers The JSON envelope.
Errors1
| Code | Status | Meaning |
|---|---|---|
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /setup/stato
Section titled “GET /setup/stato”The state of first-run setup: what is ready and what is still missing.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
REPORT_UNAVAILABLE | 404 | The report or service asked for is not available on this server yet. |
Any operation can also answer the common errors.
GET /doctor
Section titled “GET /doctor”Run the Doctor: the checks of this installation, with what to do for each problem.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
REPORT_UNAVAILABLE | 404 | The report or service asked for is not available on this server yet. |
Any operation can also answer the common errors.
POST /doctor/local-engine
Section titled “POST /doctor/local-engine”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Body
A JSON object, checked by the store it goes to.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
REMOTE_ORIGIN_FORBIDDEN | 403 | Devices can be paired only from the TALOS window, not from another page. |
Any operation can also answer the common errors.
GET /diagnostica-segnalazione
Section titled “GET /diagnostica-segnalazione”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Query
sessionId- Not yet described.
Answers The JSON envelope.
GET /folder-trust
Section titled “GET /folder-trust”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
FOLDER_TRUST_UNAVAILABLE | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /folder-trust
Section titled “POST /folder-trust”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Body
fidata- Not yet described.
soloSeMaiChiesta- Not yet described.
soloPerLaConversazione- Not yet described.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
FOLDER_TRUST_UNAVAILABLE | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /wsl
Section titled “GET /wsl”WSL on this computer, and whether commands in WSL run as your normal user.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
WSL_STORE_UNAVAILABLE | 503 | The WSL preference is not available on this server. |
Any operation can also answer the common errors.
POST /wsl
Section titled “POST /wsl”Choose whether commands in WSL run as your normal user; answers the updated state.
Body
usaUtenteNormalerequiredtrueorfalse.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
WSL_STORE_UNAVAILABLE | 503 | The WSL preference is not available on this server. |
Any operation can also answer the common errors.
GET /local-engine/window-policy
Section titled “GET /local-engine/window-policy”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
LOCAL_RUNTIME_NOT_CONFIGURED | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /local-engine/window-policy
Section titled “POST /local-engine/window-policy”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Body
scelta- Not yet described.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
LOCAL_RUNTIME_NOT_CONFIGURED | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /local-engine/window/enlarge
Section titled “POST /local-engine/window/enlarge”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Body
modelId- With
provider: "local": the installed model. servono- Not yet described.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
LOCAL_RUNTIME_NOT_CONFIGURED | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /context-settings
Section titled “GET /context-settings”The context engine setting for new conversations.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
CONTEXT_SETTINGS_UNAVAILABLE | 503 | The context engine setting is not available on this server. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /context-settings
Section titled “POST /context-settings”Choose how new conversations manage their context; conversations already started keep theirs.
Body
motorerequiredengine(the context engine, default) orlegacy(the earlier behavior).
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
CONTEXT_SETTINGS_UNAVAILABLE | 503 | The context engine setting is not available on this server. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /context-settings/model-window
Section titled “GET /context-settings/model-window”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Query
model- Not yet described.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
CONTEXT_SETTINGS_UNAVAILABLE | 503 | The context engine setting is not available on this server. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /command-settings
Section titled “GET /command-settings”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
COMMAND_SETTINGS_UNAVAILABLE | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /command-settings
Section titled “POST /command-settings”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Body
doveDiSerie- Not yet described.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
COMMAND_SETTINGS_UNAVAILABLE | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /chat-settings
Section titled “GET /chat-settings”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
CHAT_SETTINGS_UNAVAILABLE | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /chat-settings
Section titled “POST /chat-settings”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Body
blocchiVivi- Not yet described.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
CHAT_SETTINGS_UNAVAILABLE | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /computer-use/settings
Section titled “GET /computer-use/settings”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
COMPUTER_USE_SETTINGS_UNAVAILABLE | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /computer-use/settings
Section titled “POST /computer-use/settings”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Body
acceso- Not yet described.
Answers The JSON envelope.
Errors4
| Code | Status | Meaning |
|---|---|---|
COMPUTER_USE_SETTINGS_UNAVAILABLE | 503 | — |
PC_CONFIRMATION_REQUIRED | 403 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
REMOTE_ORIGIN_FORBIDDEN | 403 | Devices can be paired only from the TALOS window, not from another page. |
Any operation can also answer the common errors.
GET /public-catalog/settings
Section titled “GET /public-catalog/settings”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
PUBLIC_CATALOG_SETTINGS_UNAVAILABLE | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /public-catalog/settings
Section titled “POST /public-catalog/settings”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Body
acceso- Not yet described.
Answers The JSON envelope.
Errors5
| Code | Status | Meaning |
|---|---|---|
PC_CONFIRMATION_REQUIRED | 403 | — |
PUBLIC_CATALOG_LOCKED | 409 | — |
PUBLIC_CATALOG_SETTINGS_UNAVAILABLE | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
REMOTE_ORIGIN_FORBIDDEN | 403 | Devices can be paired only from the TALOS window, not from another page. |
Any operation can also answer the common errors.
GET /assistant-settings
Section titled “GET /assistant-settings”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
ASSISTANT_SETTINGS_UNAVAILABLE | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /assistant-settings
Section titled “POST /assistant-settings”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Body
A JSON object, checked by the store it goes to.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
ASSISTANT_SETTINGS_UNAVAILABLE | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /keep-awake-settings
Section titled “GET /keep-awake-settings”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Answers The JSON envelope.
Errors1
| Code | Status | Meaning |
|---|---|---|
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /keep-awake-settings
Section titled “POST /keep-awake-settings”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Body
modo- Not yet described.
Answers The JSON envelope.
Errors1
| Code | Status | Meaning |
|---|---|---|
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /conversation-memory-settings
Section titled “GET /conversation-memory-settings”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Answers The JSON envelope.
Errors1
| Code | Status | Meaning |
|---|---|---|
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /conversation-memory-settings
Section titled “POST /conversation-memory-settings”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Body
gb- Not yet described.
Answers The JSON envelope.
Errors1
| Code | Status | Meaning |
|---|---|---|
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /model-preferences
Section titled “GET /model-preferences”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
MODEL_PREFERENCES_UNAVAILABLE | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /model-preferences
Section titled “POST /model-preferences”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Body
A JSON object, checked by the store it goes to.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
MODEL_PREFERENCES_UNAVAILABLE | 503 | — |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /doctor/{reference}
Section titled “GET /doctor/{reference}”The detail of a problem the Doctor recorded, by the reference shown on screen (doctor- and 12 hexadecimal digits).
Path
reference- The Doctor reference an error answered with (
doctorReference).
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /sessions/{sessionId}/local-servers
Section titled “GET /sessions/{sessionId}/local-servers”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Path
sessionId- The session.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/blocks/library
Section titled “POST /sessions/{sessionId}/blocks/library”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Path
sessionId- The session.
Body
testo- Not yet described.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /sessions/{sessionId}/blocks/{blockId}/library
Section titled “GET /sessions/{sessionId}/blocks/{blockId}/library”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Path
sessionId- The session.
blockId- Not yet described.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/pin
Section titled “POST /sessions/{sessionId}/pin”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Path
sessionId- The session.
Body
fissata- Not yet described.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/retry
Section titled “POST /sessions/{sessionId}/retry”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Path
sessionId- The session.
Body
primaDelGiro- Not yet described.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/a-lato(?:/trasforma|/carta|/ferma)?
Section titled “POST /sessions/{sessionId}/a-lato(?:/trasforma|/carta|/ferma)?”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Path
sessionId- The session.
Body
None: the body is empty.
Answers The JSON envelope.
GET /sessions/{sessionId}/a-lato(?:/file)?
Section titled “GET /sessions/{sessionId}/a-lato(?:/file)?”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Path
sessionId- The session.
Answers The JSON envelope.
POST /presence
Section titled “POST /presence”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Body
presente- Not yet described.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /sessions/{sessionId}/last-request/pieces/data
Section titled “GET /sessions/{sessionId}/last-request/pieces/data”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Path
sessionId- The session.
Query
daByte- Not yet described.
impronta- Not yet described.
quantiByte- Not yet described.
Answers The JSON envelope.
Errors3
| Code | Status | Meaning |
|---|---|---|
CONSENT_REQUIRED | 403 | — |
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /notifications
Section titled “GET /notifications”Not yet described in this reference: the parameters, fields and errors below are read from the release.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
REMOTE_ORIGIN_FORBIDDEN | 403 | Devices can be paired only from the TALOS window, not from another page. |
Any operation can also answer the common errors.