Skip to content

REST API

Activity: 8 routes.

All under /wp-json/davo/v1. Every route has a description in the source.

  • GET8

/activity

GETAccess check: require_login

Return the current user's own activity timeline.

Handler: get_own_timeline()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/activity"

src/domains/activity/routes.php:63

/activity/categories

GETPublic

Return every category currently in use, with its human-readable label.

Handler: get_categories()

No parameters declared in the route registration.

curl
curl "https://example.com/wp-json/davo/v1/activity/categories"

src/domains/activity/routes.php:199

/activity/public/users/{user_id}

GETPublic

Return a user's PUBLIC-ONLY activity timeline — the "Public Timeline", intended for the Profile domain's Activity tab. Public endpoint: no login required, since it can only ever return data already marked public by the registry.

Handler: get_public_timeline()

No parameters declared in the route registration.

curl
curl "https://example.com/wp-json/davo/v1/activity/public/users/{user_id}"

src/domains/activity/routes.php:98

/activity/stats

GETAccess check: require_login

Return the current user's own activity statistics.

Handler: get_own_stats()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/activity/stats"

src/domains/activity/routes.php:127

/activity/stats/public/users/{user_id}

GETPublic

Return a user's PUBLIC-ONLY activity statistics, intended for the Profile domain's Activity tab. Public endpoint: no login required, since it can only ever return counts derived from activities already marked public by the registry.

Handler: get_public_stats()

Parameters of GET /activity/stats/public/users/{user_id}
ParameterTypeRequiredDefault or allowed values
user_idintegerYes—
curl
curl "https://example.com/wp-json/davo/v1/activity/stats/public/users/{user_id}"

src/domains/activity/routes.php:158

/activity/stats/users/{user_id}

GETAccess check: require_admin

Return another user's complete activity statistics — public and private activities both included. Admin only (enforced by permission_callback).

Handler: get_user_stats()

Parameters of GET /activity/stats/users/{user_id}
ParameterTypeRequiredDefault or allowed values
user_idintegerYes—
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/activity/stats/users/{user_id}"

src/domains/activity/routes.php:139

/activity/types

GETPublic

Return the full activity type registry.

Handler: get_types()

No parameters declared in the route registration.

curl
curl "https://example.com/wp-json/davo/v1/activity/types"

src/domains/activity/routes.php:187

/activity/users/{user_id}

GETAccess check: require_admin

Return another user's complete activity timeline — public and private activities both included. Admin only (enforced by permission_callback).

Handler: get_user_timeline()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/activity/users/{user_id}"

src/domains/activity/routes.php:76

Note. Generated from the plugin source. Parameters are the ones declared when the route is registered; a parameter marked “see source” uses a shared definition. Responses are not documented here. Authenticate as for any WordPress REST route, for example with an application password over HTTPS; the example paths use https://example.com.

See it on your own site.

Davo is a WordPress theme and plugin by Exorex.

  • Runs on your own WordPress
  • Guided setup wizard
  • AI is off until you switch it on
  • Read the licence on the marketplace first