You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retrieve user-defined folders for organizing conversations via the Developer API
Endpoints
List all folders
List Folders
Retrieve all folders for the authenticated user
This endpoint is strictly read-only. If the user has not yet had folders initialized, an empty array is returned. System folders (Work, Personal, Social) are created lazily through other paths — when the mobile app opens the conversations screen or when a new conversation is created. In normal usage, any user who can issue a Developer API key has already gone through one of those paths.
```bash
curl -H "Authorization: Bearer $API_KEY" \
"https://api.omi.me/v1/dev/user/folders"
```
```python
import requests
// Step 1: Get folder list
const foldersRes = await fetch(
"https://api.omi.me/v1/dev/user/folders",
{ headers }
);
const folders = await foldersRes.json();
// Step 2: Find the Work folder
const workFolder = folders.find(f => f.name === "Work");
// Step 3: Fetch conversations in Work folder
if (workFolder) {
const convsRes = await fetch(
`https://api.omi.me/v1/dev/user/conversations?folder_id=${workFolder.id}&limit=50`,
{ headers }
);
const conversations = await convsRes.json();
console.log(`Found ${conversations.length} work conversations`);
}
```
You can also filter by `starred=true` to get only starred conversations, or combine both `folder_id` and `starred` to get starred conversations within a specific folder.