Skip to content

REST API

Account: 10 routes.

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

  • GET3
  • POST4
  • PUT2
  • PATCH2
  • DELETE1

/account/{user_id}

GETAccess check: owner_permission

Returns the account settings for one user.

Handler: get_settings()

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

src/domains/account/routes.php:76

/account/{user_id}

DELETEAccess check: owner_permission

Deletes a member's account in two steps. Without a token it requests deletion and returns 202; with the confirmation token it permanently deletes the account.

Handler: delete_account()

Parameters of DELETE /account/{user_id}
ParameterTypeRequiredDefault or allowed values
user_idsee source——
tokenstringNo—
curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/account/{user_id}"

src/domains/account/routes.php:525

/account/{user_id}/email

PUTPATCHAccess check: owner_permission

Starts an email-address change. Requires the new email and the current password.

Handler: update_email()

Parameters of PUT/PATCH /account/{user_id}/email
ParameterTypeRequiredDefault or allowed values
user_idsee source——
emailstringYes—
current_passwordstringYes—
curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/account/{user_id}/email" \
  -H "Content-Type: application/json" \
  -d '{"email": "…", "current_password": "…"}'

src/domains/account/routes.php:286

/account/{user_id}/email/confirm

POSTAccess check: owner_permission

Confirms a pending email-address change using the token that was emailed, then returns the refreshed account settings.

Handler: confirm_email_change()

Parameters of POST /account/{user_id}/email/confirm
ParameterTypeRequiredDefault or allowed values
user_idsee source——
tokenstringYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/account/{user_id}/email/confirm" \
  -H "Content-Type: application/json" \
  -d '{"token": "…"}'

src/domains/account/routes.php:310

/account/{user_id}/email/resend

POSTAccess check: owner_permission

Sends a new email-verification code to the user.

Handler: resend_email_verification()

Parameters of POST /account/{user_id}/email/resend
ParameterTypeRequiredDefault or allowed values
user_idsee source——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/account/{user_id}/email/resend"

src/domains/account/routes.php:329

/account/{user_id}/export

POSTAccess check: owner_permission

Requests a data export for the user. The download link is sent by email; returns 202.

Handler: request_export()

Parameters of POST /account/{user_id}/export
ParameterTypeRequiredDefault or allowed values
user_idsee source——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/account/{user_id}/export"

src/domains/account/routes.php:480

/account/{user_id}/password

POSTAccess check: owner_permission

Changes the user's password. Requires the current password and the new one.

Handler: change_password()

Parameters of POST /account/{user_id}/password
ParameterTypeRequiredDefault or allowed values
user_idsee source——
current_passwordstringYes—
new_passwordstringYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/account/{user_id}/password" \
  -H "Content-Type: application/json" \
  -d '{"current_password": "…", "new_password": "…"}'

src/domains/account/routes.php:424

/account/{user_id}/slug

PUTPATCHAccess check: owner_permission

Changes the member's profile slug.

Handler: change_slug()

Parameters of PUT/PATCH /account/{user_id}/slug
ParameterTypeRequiredDefault or allowed values
user_idsee source——
slugstringYes—
curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/account/{user_id}/slug" \
  -H "Content-Type: application/json" \
  -d '{"slug": "…"}'

src/domains/account/routes.php:136

/account/{user_id}/slug/history

GETAccess check: owner_permission

Returns the full slug history for the authenticated owner plus a machine-readable cooldown state so the frontend can give precise "next change available in X" feedback without waiting for a 429. Response shape: { history: [ { slug, is_current, created_at }, … ], on_cooldown: bool, retry_after: int|null // seconds remaining; null when not on cooldown cooldown_secs: int // the configured cooldown duration in seconds }

Handler: get_slug_history()

Parameters of GET /account/{user_id}/slug/history
ParameterTypeRequiredDefault or allowed values
user_idsee source——
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/account/{user_id}/slug/history"

src/domains/account/routes.php:157

/account/slug/{slug}

GETPublic

Resolves a profile slug to the member it belongs to.

Handler: resolve_slug()

Parameters of GET /account/slug/{slug}
ParameterTypeRequiredDefault or allowed values
slugstringYes—
curl
curl "https://example.com/wp-json/davo/v1/account/slug/{slug}"

src/domains/account/routes.php:118

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