import Supermemory from 'supermemory';
const client = new Supermemory({
apiKey: 'My API Key',
});
const setting = await client.settings.get();
console.log(setting.excludeItems);
{
"excludeItems": "<string>",
"filterPrompt": "<string>",
"googleDriveClientId": "<string>",
"googleDriveClientSecret": "<string>",
"googleDriveCustomKeyEnabled": true,
"includeItems": "<string>",
"notionClientId": "<string>",
"notionClientSecret": "<string>",
"notionCustomKeyEnabled": true,
"onedriveClientId": "<string>",
"onedriveClientSecret": "<string>",
"onedriveCustomKeyEnabled": true,
"shouldLLMFilter": true
}
Get settings for an organization
import Supermemory from 'supermemory';
const client = new Supermemory({
apiKey: 'My API Key',
});
const setting = await client.settings.get();
console.log(setting.excludeItems);
{
"excludeItems": "<string>",
"filterPrompt": "<string>",
"googleDriveClientId": "<string>",
"googleDriveClientSecret": "<string>",
"googleDriveCustomKeyEnabled": true,
"includeItems": "<string>",
"notionClientId": "<string>",
"notionClientSecret": "<string>",
"notionCustomKeyEnabled": true,
"onedriveClientId": "<string>",
"onedriveClientSecret": "<string>",
"onedriveCustomKeyEnabled": true,
"shouldLLMFilter": true
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Settings retrieved successfully
The response is of type object
.
Was this page helpful?