Skip to content

REST API

Articles: 26 routes.

All under /wp-json/davo/v1. 25 of them have a description in the source.

  • GET13
  • POST10
  • PUT7
  • PATCH7
  • DELETE4

/article-collections

GETPublic

Returns the collection tree with permalinks. Visitors without the manage_categories capability only see collections that are not empty.

Handler: get_collection_tree()

No parameters declared in the route registration.

curl
curl "https://example.com/wp-json/davo/v1/article-collections"

POSTAccess check: require_can_manage_collections

Creates a collection. Returns 201.

Handler: create_collection()

Parameters of POST /article-collections
ParameterTypeRequiredDefault or allowed values
titlestringYes—
parent_idinteger——
descriptionstring——
iconstring——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections" \
  -H "Content-Type: application/json" \
  -d '{"title": "…"}'

src/domains/articles/routes.php:341

/article-collections/{id}

GETPublic

Returns one collection, with its permalink.

Handler: get_collection()

No parameters declared in the route registration.

curl
curl "https://example.com/wp-json/davo/v1/article-collections/{id}"

PUTPATCHAccess check: require_can_manage_collections

Updates a collection's title, description, icon, parent or menu order. Only those fields are accepted.

Handler: update_collection()

Parameters of PUT/PATCH /article-collections/{id}
ParameterTypeRequiredDefault or allowed values
titlestring——
parent_idinteger——
menu_orderinteger——
descriptionstring——
iconstring——
curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/{id}"

DELETEAccess check: require_can_manage_collections

Deletes a collection.

Handler: delete_collection()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/{id}"

src/domains/articles/routes.php:490

/article-collections/{id}/articles

GETPublic

Returns the articles in a collection, optionally including their content.

Handler: get_collection_articles()

Parameters of GET /article-collections/{id}/articles
ParameterTypeRequiredDefault or allowed values
include_contentboolean—false
curl
curl "https://example.com/wp-json/davo/v1/article-collections/{id}/articles"

POSTAccess check: require_can_manage_collections

Adds an article to a collection. With a position or from_collection_id it places the article at that position and removes it from the source collection, as drag and drop does.

Handler: add_article_to_collection()

Parameters of POST /article-collections/{id}/articles
ParameterTypeRequiredDefault or allowed values
article_idintegerYes—
menu_orderinteger——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/{id}/articles" \
  -H "Content-Type: application/json" \
  -d '{"article_id": 1}'

src/domains/articles/routes.php:526

/article-collections/{id}/articles/{article_id}

DELETEAccess check: require_can_manage_collections

Removes an article from a collection.

Handler: remove_article_from_collection()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/{id}/articles/{article_id}"

src/domains/articles/routes.php:571

/article-collections/{id}/articles/{article_id}/primary

PUTPATCHAccess check: require_can_manage_collections

Sets a collection as an article's primary collection.

Handler: set_article_primary_collection()

No parameters declared in the route registration.

curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/{id}/articles/{article_id}/primary"

src/domains/articles/routes.php:583

/article-collections/{id}/move

PUTPATCHAccess check: require_can_manage_collections

Re-parents a collection (parent_id, or the top level when omitted/0) and sets the order of the target's children to collection_ids.

Handler: move_collection()

Parameters of PUT/PATCH /article-collections/{id}/move
ParameterTypeRequiredDefault or allowed values
parent_id———
collection_idsarrayYes—
curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/{id}/move" \
  -H "Content-Type: application/json" \
  -d '{"collection_ids": []}'

src/domains/articles/routes.php:469

/article-collections/{id}/reorder

PUTPATCHAccess check: require_can_manage_collections

Reorders the articles in a collection from a list of article ids.

Handler: reorder_collection_articles()

Parameters of PUT/PATCH /article-collections/{id}/reorder
ParameterTypeRequiredDefault or allowed values
article_idsarrayYes—
curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/{id}/reorder" \
  -H "Content-Type: application/json" \
  -d '{"article_ids": []}'

src/domains/articles/routes.php:593

/article-collections/builder/articles

GETAccess check: require_can_use_builder

One page of the article library, with pagination in the standard headers.

Handler: get_builder_articles()

Parameters of GET /article-collections/builder/articles
ParameterTypeRequiredDefault or allowed values
category_idstring——
assignmentstring—all | assigned | unassigned
searchstring——
pageinteger——
per_pageinteger——
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/builder/articles"

src/domains/articles/routes.php:438

/article-collections/builder/categories

GETAccess check: require_can_use_builder

Returns the categories available to the collection builder.

Handler: get_builder_categories()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/builder/categories"

src/domains/articles/routes.php:428

/article-collections/builder/structure

GETAccess check: require_can_use_builder

Returns the collection structure for the builder.

Handler: get_builder_structure()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/builder/structure"

src/domains/articles/routes.php:418

/article-collections/order

PUTPATCHAccess check: require_can_manage_collections

Sets the order of the collections under one parent (parent_id, or the top level when omitted/0) to the order of collection_ids.

Handler: reorder_collections()

Parameters of PUT/PATCH /article-collections/order
ParameterTypeRequiredDefault or allowed values
parent_id———
collection_idsarrayYes—
curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/order" \
  -H "Content-Type: application/json" \
  -d '{"collection_ids": []}'

src/domains/articles/routes.php:394

/articles

GETPublic

Lists articles, filterable by status, type, category, tag, author and search term, with sorting and pagination. Totals are returned in the X-WP-Total and X-WP-TotalPages headers.

Handler: get_articles()

Parameters of GET /articles
ParameterTypeRequiredDefault or allowed values
statusstring——
article_typestring——
category_idinteger——
tag_idinteger——
tag_idsarray——
author_idinteger——
searchstring——
include_contentboolean—false
sortstring——
pageinteger——
per_pageinteger——
curl
curl "https://example.com/wp-json/davo/v1/articles"

POSTAccess check: require_can_create

Creates an article. Returns 201.

Handler: create_article()

Parameters of POST /articles
ParameterTypeRequiredDefault or allowed values
titlestringYes—
contentstring——
excerptstring——
statusstring——
article_typestring——
visibilitystring——
versionstring——
category_idsarray——
tag_idsarray——
scheduled_atstring——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/articles" \
  -H "Content-Type: application/json" \
  -d '{"title": "…"}'

src/domains/articles/routes.php:68

/articles/{id}

GETPublic

Returns one article for the current visitor.

Handler: get_article()

No parameters declared in the route registration.

curl
curl "https://example.com/wp-json/davo/v1/articles/{id}"

PUTPATCHAccess check: require_can_edit

Updates an article.

Handler: update_article()

Parameters of PUT/PATCH /articles/{id}
ParameterTypeRequiredDefault or allowed values
titlestring——
contentstring——
excerptstring——
article_typestring——
visibilitystring——
versionstring——
category_idsarray——
tag_idsarray——
curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}"

DELETEAccess check: require_can_delete

Deletes an article. Pass force to delete it permanently.

Handler: delete_article()

Parameters of DELETE /articles/{id}
ParameterTypeRequiredDefault or allowed values
forceboolean——
curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}"

src/domains/articles/routes.php:142

/articles/{id}/deprecate

POSTAccess check: require_can_edit

Marks an article as deprecated, optionally pointing to a replacement article.

Handler: deprecate_article()

Parameters of POST /articles/{id}/deprecate
ParameterTypeRequiredDefault or allowed values
replacement_idinteger——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}/deprecate"

src/domains/articles/routes.php:274

/articles/{id}/related

GETPublic

Returns the articles related to an article.

Handler: get_related_articles()

No parameters declared in the route registration.

curl
curl "https://example.com/wp-json/davo/v1/articles/{id}/related"

src/domains/articles/routes.php:204

/articles/{id}/related

POSTAccess check: require_can_edit

Links two articles as related.

Handler: add_related_article()

Parameters of POST /articles/{id}/related
ParameterTypeRequiredDefault or allowed values
related_article_idintegerYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}/related" \
  -H "Content-Type: application/json" \
  -d '{"related_article_id": 1}'

src/domains/articles/routes.php:307

/articles/{id}/related/{related_id}

DELETEAccess check: require_can_edit

Removes the link between two related articles.

Handler: remove_related_article()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}/related/{related_id}"

src/domains/articles/routes.php:324

/articles/{id}/schedule

POSTAccess check: require_can_edit

Schedules an article to publish at a given time.

Handler: schedule_article()

Parameters of POST /articles/{id}/schedule
ParameterTypeRequiredDefault or allowed values
scheduled_atstringYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}/schedule" \
  -H "Content-Type: application/json" \
  -d '{"scheduled_at": "…"}'

src/domains/articles/routes.php:258

/articles/{id}/seo

PUTPATCHAccess check: require_can_edit

Updates an article's SEO fields: title, description, canonical URL and noindex.

Handler: update_article_seo()

Parameters of PUT/PATCH /articles/{id}/seo
ParameterTypeRequiredDefault or allowed values
titlestring——
descriptionstring——
canonicalstring——
noindexboolean——
curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}/seo"

src/domains/articles/routes.php:188

/articles/{id}/siblings

GETPublic

Returns the previous and next articles within a collection.

Handler: get_article_siblings()

Parameters of GET /articles/{id}/siblings
ParameterTypeRequiredDefault or allowed values
collection_idintegerYes—
curl
curl "https://example.com/wp-json/davo/v1/articles/{id}/siblings?collection_id=1"

src/domains/articles/routes.php:214

/articles/{id}/sidebar

GETPublic

Returns the sidebar widgets for an article.

Handler: get_article_sidebar()

No parameters declared in the route registration.

curl
curl "https://example.com/wp-json/davo/v1/articles/{id}/sidebar"

src/domains/articles/routes.php:616

/articles/{id}/undeprecate

POSTAccess check: require_can_edit

Clears the deprecated flag on an article.

Handler: undeprecate_article()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}/undeprecate"

src/domains/articles/routes.php:290

/articles/{id}/{action}

POSTAccess check: require_can_edit

The source has no description for this route.

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}/{action}"

src/domains/articles/routes.php:247

/articles/dashboard

GETAccess check: require_can_manage_collections

Gated the same way collection management is (manage_categories) — this is sitewide aggregate data for an admin audience, not a per-article permission.

Handler: get_dashboard_stats()

No parameters declared in the route registration.

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

src/domains/articles/routes.php:633

/articles/docs-home

GETAccess check: require_can_manage_collections

Whether the public documentation home exists. It is an ordinary Page using the Docs domain's reader template, and nothing creates one automatically — until it exists there is no page for visitors to browse the collections from. The actual lookup lives in the Docs domain (davo_docs_reader_home_status) — see describe_docs_home() for why this goes through a filter rather than a direct call.

Handler: get_docs_home()

No parameters declared in the route registration.

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

POSTAccess check: require_can_manage_collections

Create and publish the documentation home Page (409 if one already exists).

Handler: create_docs_home()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/docs-home"

src/domains/articles/routes.php:375

/articles/reindex-similarity

POSTAccess check: require_can_manage_collections

Backfills content-similarity terms for existing published articles, one batch per call — call repeatedly (advancing offset by the previous response's processed count) until done is true. Needed once, after this feature is first deployed, for any article whose content hasn't changed since (a normal edit already triggers this automatically via Articles_Publishing_Service).

Handler: reindex_similarity()

Parameters of POST /articles/reindex-similarity
ParameterTypeRequiredDefault or allowed values
offsetinteger——
limitinteger——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/reindex-similarity"

src/domains/articles/routes.php:643

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