Get encode-related settings whitelist
const url = 'https://example.com/wp-json/wp2/media-converter/v1/settings';const options = {method: 'GET', headers: {'X-WP-Nonce': '<X-WP-Nonce>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/wp-json/wp2/media-converter/v1/settings \ --header 'X-WP-Nonce: <X-WP-Nonce>'Current allowed encode settings for the site/network (the module field whitelist).
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Encode-settings whitelist (GET/PATCH /settings). PHP drops keys outside this list.
object
Encode preset key from the format catalog.
How many encode jobs may run at once.
Enqueue new videos for encoding automatically.
Generate thumbnails automatically.
Play — queue is running; pause — queue is paused.
H.264 profile.
H.264 level.
CRF for H.264.
CRF for WebM.
Rate-control mode.
Audio bitrate, kbit/s.
Format that replaces the source after encoding.
Encoder binary (ffmpeg, etc.).
Path to the encoder binary.
Generate posters/thumbnails during encode.
Example
{ "queue_control": "play"}Not authenticated. WordPress REST: rest_not_logged_in / rest_forbidden. Use cookie + X-WP-Nonce or Application Password.
object
Machine-readable error or event code.
Message text (log, PIN, or password reset).
Extra WP_Error or license payload.
object
Examplegenerated
{ "code": "example", "message": "example", "data": {}}Insufficient capability or invalid REST nonce. WordPress REST: rest_forbidden / rest_cookie_invalid_nonce.
object
Machine-readable error or event code.
Message text (log, PIN, or password reset).
Extra WP_Error or license payload.
object
Examplegenerated
{ "code": "example", "message": "example", "data": {}}