List playback artifacts under media-playback/attachments/{id}
const url = 'https://example.com/wp-json/wp2/media-converter/v1/attachments/1/artifacts';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/attachments/1/artifacts \ --header 'X-WP-Nonce: <X-WP-Nonce>'Lists playback artifact folders (sources, subtitles, chapters, thumbnails, stills) already bound to the video attachment. Upload the original video via core POST /wp/v2/media. PlayerJS skins are not part of this API.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Numeric entity id.
Responses
Section titled “Responses”On-disk artifacts listing and format map.
object
Video attachment ID.
Movie basename without extension.
Files in the sources folder (HLS/MP4, etc.).
object
File name relative to the artifacts folder.
Public file URL.
File size in bytes.
Subtitle files on disk.
object
File name relative to the artifacts folder.
Public file URL.
File size in bytes.
Chapter files on disk.
object
File name relative to the artifacts folder.
Public file URL.
File size in bytes.
Seekbar sprite/VTT files.
object
File name relative to the artifacts folder.
Public file URL.
File size in bytes.
Still frames (*_thumbN.jpg).
object
File name relative to the artifacts folder.
Public file URL.
File size in bytes.
Map of format key → exists/url.
object
object
True if this format file already exists on disk.
Format file URL, or an empty string.
Poster URL from attachment meta (may be empty).
Examplegenerated
{ "attachment_id": 1, "basename": "example", "sources": [ { "name": "example", "url": "example", "bytes": 1 } ], "subtitles": [ { "name": "example", "url": "example", "bytes": 1 } ], "chapters": [ { "name": "example", "url": "example", "bytes": 1 } ], "thumbnails": [ { "name": "example", "url": "example", "bytes": 1 } ], "stills": [ { "name": "example", "url": "example", "bytes": 1 } ], "formats": { "additionalProperty": { "exists": true, "url": "example" } }, "poster": "example"}Not a video attachment
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": {}}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": {}}Attachment not found
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": {}}