Skip to main content
GET
/
api
/
configs
/
export
Get Configuration
curl --request GET \
  --url https://api.example.com/api/configs/export
{
  "version": 123,
  "ui": {
    "enable_signup": true,
    "ENABLE_LOGIN_FORM": true,
    "default_locale": "<string>",
    "default_models": "<string>",
    "default_pinned_models": "<string>",
    "model_order_list": [
      {}
    ],
    "prompt_suggestions": [
      {
        "title": [
          {}
        ],
        "content": "<string>"
      }
    ],
    "default_user_role": "<string>",
    "default_group_id": "<string>",
    "watermark": "<string>",
    "enable_community_sharing": true,
    "enable_message_rating": true,
    "enable_user_webhooks": true,
    "banners": [
      {
        "id": "<string>",
        "type": "<string>",
        "title": "<string>",
        "content": "<string>",
        "dismissible": true,
        "timestamp": 123
      }
    ]
  },
  "auth": {
    "enable_api_keys": true,
    "api_key.endpoint_restrictions": true,
    "api_key.allowed_endpoints": "<string>",
    "jwt_expiry": "<string>",
    "admin.show": true,
    "admin.email": "<string>"
  },
  "oauth": {
    "enable_signup": true,
    "merge_accounts_by_email": true,
    "enable_role_mapping": true,
    "enable_group_mapping": true,
    "enable_group_creation": true,
    "allowed_domains": [
      {}
    ],
    "update_picture_on_login": true,
    "update_name_on_login": true,
    "update_email_on_login": true
  },
  "ollama": {
    "enable": true,
    "base_urls": [
      {}
    ],
    "api_configs": {}
  },
  "openai": {
    "enable": true,
    "api_keys": [
      {}
    ],
    "api_base_urls": [
      {}
    ],
    "api_configs": {}
  },
  "models": {
    "base_models_cache": true,
    "default_metadata": {},
    "default_params": {}
  },
  "tool_server": {
    "connections": [
      {
        "url": "<string>",
        "path": "<string>",
        "type": "<string>",
        "auth_type": "<string>",
        "headers": {},
        "key": "<string>",
        "config": {}
      }
    ]
  },
  "terminal_server": {
    "connections": [
      {}
    ]
  },
  "direct": {
    "enable": true
  },
  "webui": {
    "url": "<string>"
  },
  "user": {
    "permissions": {}
  },
  "folders": {
    "enable": true,
    "max_file_count": "<string>"
  },
  "channels": {
    "enable": true
  },
  "notes": {
    "enable": true
  },
  "webhook_url": "<string>"
}
Exports the complete system configuration including all settings, OAuth providers, tool servers, models, and UI preferences.

Authentication

Requires admin authentication.

Response

version
integer
Configuration version number
ui
object
UI-related configuration settings
auth
object
Authentication configuration
oauth
object
OAuth configuration settings
ollama
object
Ollama configuration
openai
object
OpenAI configuration
models
object
Model configuration
tool_server
object
Tool server configuration
terminal_server
object
Terminal server configuration
direct
object
Direct connection settings
webui
object
Web UI configuration
user
object
User configuration
folders
object
Folder configuration
channels
object
Channel configuration
notes
object
Notes configuration
webhook_url
string
Webhook URL for notifications

Example Response

{
  "version": 0,
  "ui": {
    "enable_signup": true,
    "ENABLE_LOGIN_FORM": true,
    "default_locale": "",
    "default_models": null,
    "default_pinned_models": null,
    "model_order_list": [],
    "prompt_suggestions": [
      {
        "title": ["Help me study", "vocabulary for a college entrance exam"],
        "content": "Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option."
      }
    ],
    "default_user_role": "pending",
    "default_group_id": "",
    "watermark": "",
    "enable_community_sharing": true,
    "enable_message_rating": true,
    "enable_user_webhooks": true,
    "banners": []
  },
  "auth": {
    "enable_api_keys": false,
    "api_key": {
      "endpoint_restrictions": false,
      "allowed_endpoints": ""
    },
    "jwt_expiry": "4w",
    "admin": {
      "show": true,
      "email": null
    }
  },
  "ollama": {
    "enable": true,
    "base_urls": ["http://localhost:11434"],
    "api_configs": {}
  },
  "openai": {
    "enable": true,
    "api_keys": [],
    "api_base_urls": ["https://api.openai.com/v1"],
    "api_configs": {}
  },
  "models": {
    "base_models_cache": false,
    "default_metadata": {},
    "default_params": {}
  },
  "tool_server": {
    "connections": []
  },
  "direct": {
    "enable": false
  },
  "webui": {
    "url": ""
  }
}