Admin audit view of the activities ledger
GET /admin/activities
Cursor-paginated list of activity rows with optional
filters (type, source, actor, object kind, since). Gated
on system.admin capability per ADR 0044 — surfaces full
payloads + addressing for the operator to audit federation
activity.
Hot-path notes: this endpoint is NOT cached at the writer
layer because the filter-combination space is unbounded.
The underlying SELECT is covered by per-dimension partial
indexes (activities_type_recent_idx,
activities_actor_outbox_idx,
activities_source_recent_idx) so unfiltered + per-filter
access patterns both hit indexed paths.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Filter to one activity type — e.g. Like, Follow,
Create, aa:Share. See
activities.activity_type CHECK
for the closed set.
local for activities emitted by this instance, or a
peer instance URL (e.g. https://studio-b.example) to
filter to peer-received activities from one peer.
Filter to activities emitted by a single local actor.
For peer-sourced activities (actor_user_ref is NULL),
use the source filter instead.
Filter to activities about one object kind — e.g.
post, comment, asset, user, collection.
RFC 3339 timestamp; activities at or after this time only.
Opaque pagination cursor from a prior response.
Responses
Section titled “ Responses ”A page of activity rows.
object
One row from the activities ledger (ADR 0044). Surfaces the full AP envelope payload + the operator-facing metadata the admin audit UI renders. See docs/spec/federation/v1.md §3 for the wire-format contract this projection mirrors.
object
NULL for peer-sourced activities (we don’t have a local ref for the remote actor).
object
local or peer instance URL.
Authentication required, missing, or invalid
object
Human-readable error summary
Example
the request could not be completedExample
{ "error": "authentication required: sign in and retry with a valid session or API token"}Authenticated but missing required capabilities
object
Human-readable error summary
Example
the request could not be completed