Configuration endpoints

In shortReference for the 10xGraph REST config endpoint GET /v1/config/multimodal: permission, response fields, defaults, errors and a curl example.

  • 1 min read
  • 3 sections
  • Updated
  • v1.0.0
  • Markdown

GET /v1/config/multimodal returns the server’s media settings. It needs the config:read permission.

Get the multimodal configuration

Terminal
# Read the media configuration (replace $TOKEN with a valid bearer token)
curl http://127.0.0.1:8000/v1/config/multimodal \
  -H "Authorization: Bearer $TOKEN"
JSON
{
  "data": {
    "media_storage_type": "local",
    "media_max_size_mb": 25.0,
    "document_handling": "extract_text"
  },
  "metadata": {
    "request_id": "<request id>",
    "timestamp": "<timestamp>",
    "message": "OK"
  }
}

Response fields

Each field in data maps to one environment variable on the server. The defaults apply when the variable is unset.

Field Type Env var Default Description
media_storage_type string MEDIA_STORAGE_TYPE local Where uploaded files are stored: memory (in process, lost on restart), local (filesystem, path set by MEDIA_STORAGE_PATH) or cloud (configured with the MEDIA_CLOUD_* variables).
media_max_size_mb number MEDIA_MAX_SIZE_MB 25.0 Maximum upload size in megabytes. Larger uploads are rejected with 413.
document_handling string DOCUMENT_HANDLING extract_text How uploaded documents are handled. One of extract_text, pass_raw, skip; returned as set, not validated.
Last updated for v1.0.0Edit this page on GitHubReport an issue