Skip to content
Get started

Get settings

settings.get() -> SettingGetResponse
GET/v3/settings

Get settings for an organization

ReturnsExpand Collapse
class SettingGetResponse:
chunk_size: Optional[int]
minimum-2147483648
maximum2147483647
exclude_items: Optional[Union[str, float, bool, 3 more]]
One of the following:
str
float
bool
Dict[str, object]
List[object]
filter_prompt: Optional[str]
github_client_id: Optional[str]
github_client_secret: Optional[str]
github_custom_key_enabled: Optional[bool]
google_drive_client_id: Optional[str]
google_drive_client_secret: Optional[str]
google_drive_custom_key_enabled: Optional[bool]
include_items: Optional[Union[str, float, bool, 3 more]]
One of the following:
str
float
bool
Dict[str, object]
List[object]
notion_client_id: Optional[str]
notion_client_secret: Optional[str]
notion_custom_key_enabled: Optional[bool]
onedrive_client_id: Optional[str]
onedrive_client_secret: Optional[str]
onedrive_custom_key_enabled: Optional[bool]
should_llm_filter: Optional[bool]

Get settings

import os
from supermemory import Supermemory

client = Supermemory(
    api_key=os.environ.get("SUPERMEMORY_API_KEY"),  # This is the default and can be omitted
)
setting = client.settings.get()
print(setting.chunk_size)
{
  "chunkSize": -2147483648,
  "excludeItems": "string",
  "filterPrompt": "filterPrompt",
  "githubClientId": "githubClientId",
  "githubClientSecret": "githubClientSecret",
  "githubCustomKeyEnabled": true,
  "googleDriveClientId": "googleDriveClientId",
  "googleDriveClientSecret": "googleDriveClientSecret",
  "googleDriveCustomKeyEnabled": true,
  "includeItems": "string",
  "notionClientId": "notionClientId",
  "notionClientSecret": "notionClientSecret",
  "notionCustomKeyEnabled": true,
  "onedriveClientId": "onedriveClientId",
  "onedriveClientSecret": "onedriveClientSecret",
  "onedriveCustomKeyEnabled": true,
  "shouldLLMFilter": true
}
Returns Examples
{
  "chunkSize": -2147483648,
  "excludeItems": "string",
  "filterPrompt": "filterPrompt",
  "githubClientId": "githubClientId",
  "githubClientSecret": "githubClientSecret",
  "githubCustomKeyEnabled": true,
  "googleDriveClientId": "googleDriveClientId",
  "googleDriveClientSecret": "googleDriveClientSecret",
  "googleDriveCustomKeyEnabled": true,
  "includeItems": "string",
  "notionClientId": "notionClientId",
  "notionClientSecret": "notionClientSecret",
  "notionCustomKeyEnabled": true,
  "onedriveClientId": "onedriveClientId",
  "onedriveClientSecret": "onedriveClientSecret",
  "onedriveCustomKeyEnabled": true,
  "shouldLLMFilter": true
}