Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/directus/directus/llms.txt

Use this file to discover all available pages before exploring further.

The Activity API provides access to audit logs and revision history.

List Activity

Retrieve activity logs.
GET /activity
Example:
curl "https://your-directus-instance.com/activity" \
  -H "Authorization: Bearer YOUR_TOKEN"
Query Parameters:
# Filter by user
GET /activity?filter[user][_eq]=user-uuid

# Filter by action
GET /activity?filter[action][_eq]=create

# Filter by collection
GET /activity?filter[collection][_eq]=articles

# Sort by timestamp
GET /activity?sort=-timestamp

Get Activity

Retrieve a single activity log.
GET /activity/:id

Activity Properties

id
integer
Activity ID
action
string
Action performed: create, update, delete, login
user
string
User UUID who performed the action
timestamp
string
When the action occurred
ip
string
IP address
user_agent
string
User agent string
collection
string
Collection affected
item
string
Item ID affected
comment
string
Optional comment

Create Comment

Add a comment to an item:
POST /activity/comment
Request Body:
{
  "collection": "articles",
  "item": "1",
  "comment": "Looks good!"
}

Next Steps

Items

Manage items

Users

Manage users