Skip to content

REST API

Editor: 2 routes.

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

  • POST1
  • DELETE1

/editor/uploads

POSTAccess check: auth_require_login_and_upload_rate_limit

Handles a single multipart image/video/audio upload from any exorex-editor-field instance in the plugin. Exactly one file is expected per request (matching the editor's uploadMedia prop, which uploads one file at a time), so only the first entry in the files param is used.

Handler: cb_create_upload()

Parameters of POST /editor/uploads
ParameterTypeRequiredDefault or allowed values
target_typestring——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/editor/uploads"

src/domains/editor/routes.php:47

/editor/uploads/{id}

DELETEAccess check: auth_require_login

Deletes an editor upload belonging to the current user. Returns 204.

Handler: cb_delete_upload()

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

src/domains/editor/routes.php:64

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