Skip to main content

List activities

Retrieves a paginated, filterable list of activity log entries. Standard users see only their own activities. Admin users see all activities and can filter by user.
string
required
activities
string
required
all
object

Common enum values

The following tables list the most commonly used values for the filter and data fields. These are not exhaustive — custom values may appear as new features are added. activity_type values action values category values

Response

Activity[]
Array of activity records.
number
Total number of matching activities.
number
The limit that was applied.
number
The offset that was applied.

Get activity

Retrieves a single activity record by ID. Standard users can only access their own activities.
string
required
activities
string
required
get
string
required
The activity ID.

Response

Activity
The requested activity object. See Activity object for field details.

Create activity

Creates a new activity record. Restricted to admin users and service-role callers.
string
required
activities
string
required
create
object
required
Only admin users (internal_* role) and service-role callers can create activities. Standard users receive a 403 FORBIDDEN error.

Response (status 201)

Activity
The newly created activity object.

Forbidden actions

The update and delete actions are not permitted on activities. All callers — including admin users — receive a 403 FORBIDDEN error.
Activity records are immutable once created. The update and delete actions return 403 FORBIDDEN for all callers, including admin users and service-role tokens. This is by design — audit logs must remain tamper-proof. If you need to correct an activity, create a new compensating entry instead.