Skip to content

REST API

History: 2 routes.

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

  • GET2

/history/{object_type}/{object_id}

GETPublic

Returns the revision timeline for an object, with pagination. Responds 404 when the viewer cannot see the object's history.

Handler: cb_get_timeline()

Parameters of GET /history/{object_type}/{object_id}
ParameterTypeRequiredDefault or allowed values
object_typestringYes—
object_idintegerYes—
pageinteger—1
per_pageinteger—20
curl
curl "https://example.com/wp-json/davo/v1/history/{object_type}/{object_id}"

src/domains/history/routes.php:48

/history/{object_type}/{object_id}/{revision_id}/content-diff

GETPublic

Returns the content diff for one revision of an object's field. Responds 404 when the viewer cannot see the object's history.

Handler: cb_get_content_diff()

Parameters of GET /history/{object_type}/{object_id}/{revision_id}/content-diff
ParameterTypeRequiredDefault or allowed values
object_typestringYes—
object_idintegerYes—
revision_idintegerYes—
fieldstringYes—
curl
curl "https://example.com/wp-json/davo/v1/history/{object_type}/{object_id}/{revision_id}/content-diff?field=…"

src/domains/history/routes.php:83

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