Tags Organization
Tags & Organization
Use tags to categorize and organize documentation across projects.
What are Tags?
Tags are labels you apply to files for flexible categorization. Unlike folders (which create hierarchy), tags enable:
- Multiple categorizations per file
- Cross-project organization
- Filtering and search
- Auto-categorization rules
Tag Types
Contextium supports four tag types:
Category
Organize by content type:
category:apicategory:guidecategory:referencecategory:tutorial
Status
Track document lifecycle:
status:draftstatus:reviewstatus:publishedstatus:archived
Team
Assign ownership:
team:engineeringteam:productteam:supportteam:sales
AI Context
Control AI agent behavior:
ai:high-priority- AI should focus hereai:low-priority- AI can skipai:require-review- Require human review
Creating Tags
Manual Tagging
Apply tags to individual files:
- Open a file
- Click Add Tag in the sidebar
- Select existing tag or create new
- Tag is applied immediately
Quick Tag Creation
Create tags on the fly:
- Type tag name (e.g., "category:api")
- If tag doesn't exist, click Create
- Tag is created and applied
Tag Format
Tags follow the format: type:value
- type - One of: category, status, team, ai
- value - Lowercase, hyphens instead of spaces
Examples:
- ✅
category:api-reference - ✅
status:needs-review - ✅
team:frontend-engineering - ❌
Category:API Reference(wrong format) - ❌
api(missing type)
Auto-Apply Rules
Automatically tag files based on rules (Admin permission required).
Create an Auto-Apply Rule
- Navigate to Settings → Tags
- Click Create Rule
- Define the rule:
- Pattern type - Path, filename, or content
- Pattern - Match criteria
- Tag - Tag to apply
- Click Create Rule
Rule Examples
Tag all API documentation:
- Pattern: Path contains
/api/ - Tag:
category:api
Tag drafts:
- Pattern: Filename contains
[draft] - Tag:
status:draft
Tag team-specific docs:
- Pattern: Path starts with
/engineering/ - Tag:
team:engineering
Rule Application
Rules apply:
- To new files automatically
- To existing files when "Apply to Existing" is clicked
- Only to files matching the pattern
Managing Tags
View All Tags
- Navigate to Settings → Tags
- See all workspace tags
- View usage count for each tag
Edit a Tag
- Navigate to Settings → Tags
- Click the tag to edit
- Update name, type, or color
- Click Save
Tag changes apply to all files using that tag.
Delete a Tag
- Navigate to Settings → Tags
- Click the tag to delete
- Click Delete
- Confirm deletion
Tag is removed from all files. Files are not deleted.
Bulk Tag Management
Apply tags to multiple files:
- Navigate to All Files
- Select checkboxes next to files
- Click Add Tags
- Select tags to apply
- Click Apply
Searching by Tags
Tag-Based Search
Find files with specific tags:
- Use the search bar
- Click Filter
- Select one or more tags
- View filtered results
Tag Combinations
Combine tags for precise filtering:
category:apiANDstatus:published- Published API docs onlyteam:engineeringANDstatus:draft- Engineering draftscategory:guideANDai:high-priority- High-priority guides
Tag Best Practices
Use Consistent Taxonomy
Define your tag system upfront:
Category tags:
- api, guide, reference, tutorial, troubleshooting
Status tags:
- draft, review, published, archived, deprecated
Team tags:
- engineering, product, design, support, sales
Don't Over-Tag
- 2-4 tags per file is ideal
- More tags = harder to maintain
- Use folders for hierarchy, tags for attributes
Combine with Folders
Use both for best organization:
- Folders - Physical location, hierarchy
- Tags - Characteristics, cross-cutting concerns
Example:
📁 API Documentation
📄 Authentication.md
🏷️ category:api
🏷️ status:published
🏷️ team:engineering
Tag Colors
Customize tag appearance:
- Navigate to Settings → Tags
- Click a tag
- Select a color
- Click Save
Colors help visually distinguish tag types in the UI.
SSO Group Sync
Enterprise plans can sync tags with SSO groups:
- Navigate to Settings → Tags
- Click a tag
- Enable SSO Group Sync
- Map to SSO group
- Click Save
Users in that SSO group automatically see files with that tag.
Tag Analytics
View tag usage:
- Navigate to Settings → Tags
- See usage count per tag
- Identify:
- Most used tags
- Unused tags
- Tags needing cleanup
Tag API
Manage tags via API:
# List all tags curl -X GET "https://api.contextium.io/tags" \ -H "Authorization: Bearer YOUR_API_KEY" # Apply tag to file curl -X POST "https://api.contextium.io/files/{fileId}/tags" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"tag": "category:api"}' # Search by tag curl -X GET "https://api.contextium.io/search?tags=category:api" \ -H "Authorization: Bearer YOUR_API_KEY"
See API Documentation for full reference.