Skip to content

REST API

Emails: 4 routes.

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

  • GET2
  • POST2

/emails/logs

GETAccess check: require_admin

GET /emails/logs — Return a paginated list of email log entries.

Handler: get_logs()

No parameters declared in the route registration.

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

src/domains/emails/routes.php:69

/emails/retry-failed

POSTAccess check: require_admin

POST /emails/retry-failed — Retry all retryable failed emails.

Handler: retry_failed()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/emails/retry-failed"

src/domains/emails/routes.php:115

/emails/send-test

POSTAccess check: require_admin

POST /emails/send-test — Send a live test email to the given address.

Handler: send_test()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/emails/send-test"

src/domains/emails/routes.php:104

/emails/templates

GETAccess check: require_admin

GET /emails/templates — Return all registered template slugs.

Handler: get_templates()

No parameters declared in the route registration.

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

src/domains/emails/routes.php:87

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