Skip to main content
Collections are the database tables in your project. The Collections API allows you to manage collections and their metadata.

List Collections

Retrieve all collections.
Example:
Response:

Get Collection

Retrieve a single collection.
Example:

Create Collection

Create a new collection.
This creates a new database table. Use with caution in production.
Request Body:

Update Collection

Update collection metadata.
Request Body:

Delete Collection

Delete a collection and all its items.
This permanently deletes the database table and all data. This action cannot be undone.
Example:

Collection Metadata

string
The collection name (table name)
string
Material icon name for the collection
string
Hex color code for the collection
string
Description of the collection
string
Template for displaying items (e.g., {{title}})
boolean
Hide collection from the app navigation
boolean
Collection contains only one item
string
Field name used for archiving (e.g., status)
string
Value for archived items (e.g., archived)
string
Value for active items (e.g., draft)
string
Field used for manual sorting

System Collections

Directus includes built-in system collections:
  • directus_activity - Activity logs
  • directus_collections - Collection metadata
  • directus_fields - Field metadata
  • directus_files - File uploads
  • directus_folders - File folders
  • directus_permissions - Permissions rules
  • directus_roles - User roles
  • directus_users - Users
  • directus_settings - Project settings
  • directus_flows - Automation flows
  • directus_operations - Flow operations
  • directus_dashboards - Insights dashboards
  • directus_panels - Dashboard panels
System collections cannot be deleted or have their structure modified.

Next Steps

Fields

Manage collection fields

Items

Work with collection items