List sync items without document bodies
const url = 'https://example.com/wp-json/wp2/studio-sync/v1/sync/items?post_type=page%2Cmodal';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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/studio-sync/v1/sync/items?post_type=page%2Cmodal' \ --header 'Authorization: Bearer <token>'Catalog of syncable documents (page and modal by default): id, slug, editor, hash. Page bodies are not included — fetch them with GET …/posts/{id}.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Comma-separated post types (Studio Sync, default page,modal).
Responses
Section titled “Responses”OK
object
Success flag (often Studio/License envelope).
Array of items (section order, batch, DataTables — depending on the route).
object
WordPress post ID.
Comma-separated post types (Studio Sync, default page,modal).
Slug (site, post, or section).
Page editor (gutenberg / elementor / turbo).
Document content hash.
Title.
Status (build, post, or license — depending on the operation).
Examplegenerated
{ "success": true, "items": [ { "post_id": 1, "post_type": "example", "slug": "example", "editor": "example", "hash": "example", "title": "example", "status": "example" } ]}Studio_sync_missing_auth / studio_sync_invalid_token
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": {}}Studio_sync_insufficient_permissions / studio_sync_connection_revoked
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": {}}