Skip to content

Views

Views are saved filter presets that let you organize thogits into reusable collections. Each view has a name, an icon, a filter definition, and display settings.

List all views for the authenticated user.

Auth required: Yes

Terminal window
curl https://app.thogits.com/api/views \
-b cookies.txt -c cookies.txt

Response (200):

[
{
"id": "01HQ6V9W2XYZABCDEF3GHIJK4L",
"name": "Active Tasks",
"icon": "📋",
"filter": {"has_tag": {"name": {"eq": "Task"}}},
"view_type": "list",
"settings": {},
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T10:30:00Z"
}
]

Create a new view.

Auth required: Yes

Request body:

FieldTypeRequiredDescription
namestringYesView name
iconstringNoEmoji icon (default: clipboard emoji)
filterThogitFilterYesFilter defining which thogits appear in this view
view_typestringNoDisplay type (default: "list")
settingsobjectNoAdditional display settings
Terminal window
curl -X POST https://app.thogits.com/api/views \
-H "Content-Type: application/json" \
-b cookies.txt -c cookies.txt \
-d '{
"name": "Active Tasks",
"icon": "🔥",
"filter": {"has_tag": {"name": {"eq": "Task"}}},
"view_type": "list"
}'

Response (200): The full view object.

{
"id": "01HQ6V9W2XYZABCDEF3GHIJK4L",
"name": "Active Tasks",
"icon": "🔥",
"filter": {"has_tag": {"name": {"eq": "Task"}}},
"view_type": "list",
"settings": {},
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T10:30:00Z"
}

Retrieve a single view by ID.

Auth required: Yes

Terminal window
curl https://app.thogits.com/api/views/01HQ6V9W2XYZABCDEF3GHIJK4L \
-b cookies.txt -c cookies.txt

Response (200): The full view object.

Errors:

StatusCause
404View not found

Update a view’s name, icon, filter, or settings.

Auth required: Yes

Request body:

FieldTypeRequiredDescription
namestringYesView name
iconstringYesEmoji icon
filterThogitFilterYesUpdated filter
settingsobjectNoUpdated display settings
Terminal window
curl -X PUT https://app.thogits.com/api/views/01HQ6V9W2XYZABCDEF3GHIJK4L \
-H "Content-Type: application/json" \
-b cookies.txt -c cookies.txt \
-d '{
"name": "All Tasks",
"icon": "📋",
"filter": {"has_tag": {"name": {"eq": "Task"}}}
}'

Response (200): The updated view object.

Errors:

StatusCause
404View not found

Delete a view. This is a hard delete — views are not soft-deleted.

Auth required: Yes

Terminal window
curl -X DELETE https://app.thogits.com/api/views/01HQ6V9W2XYZABCDEF3GHIJK4L \
-b cookies.txt -c cookies.txt

Response (200): The deleted view object.

Errors:

StatusCause
404View not found