Skip to content

REST API

Videos: 22 routes.

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

  • GET12
  • POST11
  • PUT3
  • PATCH3
  • DELETE4

/video-favorites/ids

GETPublic

GET /video-favorites/ids.

Handler: get_ids()

No parameters declared in the route registration.

curl
curl "https://example.com/wp-json/davo/v1/video-favorites/ids"

src/domains/videos/favorites-routes.php:60

/video-favorites/video/{id}

POSTAccess check: require_login

POST /video-favorites/video/{id}.

Handler: add_favorite()

No parameters declared in the route registration.

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

DELETEAccess check: require_login

DELETE /video-favorites/video/{id}.

Handler: remove_favorite()

No parameters declared in the route registration.

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

src/domains/videos/favorites-routes.php:80

/video-favorites/video/{id}/toggle

POSTAccess check: require_login

POST /video-favorites/video/{id}/toggle.

Handler: toggle_favorite()

No parameters declared in the route registration.

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

src/domains/videos/favorites-routes.php:99

/videos

GETPublic

GET /videos — public grid listing, published only.

Handler: list_public_videos()

Parameters of GET /videos
ParameterTypeRequiredDefault or allowed values
sectionstring——
typestring——
featuredboolean——
searchstring——
curl
curl "https://example.com/wp-json/davo/v1/videos"

src/domains/videos/routes.php:73

/videos/{slug}

GETPublic

GET /videos/{slug} — public single video.

Handler: get_public_video()

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

src/domains/videos/routes.php:154

/videos/{slug}/view

POSTPublic

POST /videos/{slug}/view — records a view for a published video. Public: no auth needed to watch/view-count a public video.

Handler: record_view()

Parameters of POST /videos/{slug}/view
ParameterTypeRequiredDefault or allowed values
slug—Yes—
curl
curl -X POST "https://example.com/wp-json/davo/v1/videos/{slug}/view"

src/domains/videos/routes.php:138

/videos/admin

GETAccess check: auth_require_manage

GET /videos/admin — admin table listing, any status.

Handler: list_admin_videos()

Parameters of GET /videos/admin
ParameterTypeRequiredDefault or allowed values
sectionstring——
typestring——
statusstring——
featuredboolean——
searchstring——
pageinteger—1
per_pageinteger—20
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin"

POSTAccess check: auth_require_manage

POST /videos/admin — create a video.

Handler: create_video()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin"

src/domains/videos/routes.php:177

/videos/admin/{id}

GETAccess check: auth_require_manage

GET /videos/admin/{id} — admin single video, any status.

Handler: get_admin_video()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/{id}"

PUTPATCHAccess check: auth_require_manage

PUT/PATCH /videos/admin/{id} — update a video.

Handler: update_video()

No parameters declared in the route registration.

curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/{id}"

DELETEAccess check: auth_require_manage

DELETE /videos/admin/{id}.

Handler: delete_video()

No parameters declared in the route registration.

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

src/domains/videos/routes.php:224

/videos/admin/{id}/check-availability

POSTAccess check: auth_require_manage

POST /videos/admin/{id}/check-availability — forces a fresh availability check, bypassing any cached result.

Handler: check_video_availability()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/{id}/check-availability"

src/domains/videos/routes.php:256

/videos/admin/{id}/duplicate

POSTAccess check: auth_require_manage

POST /videos/admin/{id}/duplicate.

Handler: duplicate_video()

No parameters declared in the route registration.

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

src/domains/videos/routes.php:246

/videos/admin/dashboard-stats

GETAccess check: auth_require_manage

GET /videos/admin/dashboard-stats — aggregate library statistics for the admin Dashboard page.

Handler: get_dashboard_stats()

No parameters declared in the route registration.

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

src/domains/videos/routes.php:410

/videos/admin/detect-provider

POSTAccess check: auth_require_manage

POST /videos/admin/detect-provider.

Handler: detect_provider()

Parameters of POST /videos/admin/detect-provider
ParameterTypeRequiredDefault or allowed values
urlstringYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/detect-provider" \
  -H "Content-Type: application/json" \
  -d '{"url": "…"}'

src/domains/videos/routes.php:292

/videos/admin/providers

GETAccess check: auth_require_manage

GET /videos/admin/providers.

Handler: list_providers()

Parameters of GET /videos/admin/providers
ParameterTypeRequiredDefault or allowed values
include_disabledboolean—false
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/providers"

src/domains/videos/routes.php:276

/videos/admin/reorder

POSTAccess check: auth_require_manage

POST /videos/admin/reorder.

Handler: reorder_videos()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/reorder"

src/domains/videos/routes.php:266

/videos/admin/sections

GETAccess check: auth_require_manage

GET /videos/admin/sections — every section, hidden ones included, for the admin builder.

Handler: list_admin_sections()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/sections"

POSTAccess check: auth_require_manage

POST /videos/admin/sections.

Handler: create_section()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/sections"

src/domains/videos/routes.php:308

/videos/admin/sections/{section_id}

PUTPATCHAccess check: auth_require_manage

PUT/PATCH /videos/admin/sections/{section_id}.

Handler: update_section()

No parameters declared in the route registration.

curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/sections/{section_id}"

DELETEAccess check: auth_require_manage

DELETE /videos/admin/sections/{section_id}. Goes through the repository, not the service directly, so videos assigned to the deleted section get their section_id cleared in the same request.

Handler: delete_section()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/sections/{section_id}"

src/domains/videos/routes.php:352

/videos/admin/sections/counts

GETAccess check: auth_require_manage

GET /videos/admin/sections/counts.

Handler: get_section_counts()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/sections/counts"

src/domains/videos/routes.php:342

/videos/admin/sections/reorder

POSTAccess check: auth_require_manage

POST /videos/admin/sections/reorder.

Handler: reorder_sections()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/sections/reorder"

src/domains/videos/routes.php:329

/videos/admin/types

GETAccess check: auth_require_manage

GET /videos/admin/types.

Handler: list_types()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/types"

POSTAccess check: auth_require_manage

POST /videos/admin/types.

Handler: create_type()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/types"

src/domains/videos/routes.php:369

/videos/admin/types/{slug}

PUTPATCHAccess check: auth_require_manage

PUT/PATCH /videos/admin/types/{slug}.

Handler: update_type()

No parameters declared in the route registration.

curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/types/{slug}"

DELETEAccess check: auth_require_manage

DELETE /videos/admin/types/{slug}. Goes through the repository, not the registry directly, so videos assigned to the deleted type get their video_type cleared in the same request.

Handler: delete_type()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/videos/admin/types/{slug}"

src/domains/videos/routes.php:386

/videos/sections

GETPublic

GET /videos/sections — the public section list. Only enabled sections: a hidden section (and its name) is admin-only, so it never reaches an unauthenticated caller.

Handler: list_public_sections()

No parameters declared in the route registration.

curl
curl "https://example.com/wp-json/davo/v1/videos/sections"

src/domains/videos/routes.php:118

/videos/sections/counts

GETPublic

GET /videos/sections/counts — published-video counts per section, for the public section navigation.

Handler: get_public_section_counts()

No parameters declared in the route registration.

curl
curl "https://example.com/wp-json/davo/v1/videos/sections/counts"

src/domains/videos/routes.php:128

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