curl --request GET \
--url https://api.dittowords.com/v2/components/staged \
--header 'Authorization: <api-key>'import requests
url = "https://api.dittowords.com/v2/components/staged"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.dittowords.com/v2/components/staged', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dittowords.com/v2/components/staged",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dittowords.com/v2/components/staged"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dittowords.com/v2/components/staged")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dittowords.com/v2/components/staged")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "component-id-1",
"name": "Checkout Button",
"text": "Place order",
"status": "NONE",
"notes": "Unpublished notes",
"characterLimit": null,
"tags": [
"checkout"
],
"assignee": null,
"integrated": true,
"variableIds": [],
"folderId": null,
"variantId": null,
"pluralForm": null,
"richText": "Place order",
"hasUnpublishedChanges": true
},
{
"id": "component-id-1",
"name": "Checkout Button",
"text": "Passer la commande",
"status": "WIP",
"notes": "Unpublished notes",
"characterLimit": null,
"tags": [
"checkout"
],
"assignee": null,
"integrated": true,
"variableIds": [],
"folderId": null,
"variantId": "french",
"pluralForm": null,
"richText": "Passer la commande",
"hasUnpublishedChanges": true
}
]{
"message": "Invalid filter"
}{
"message": "This workspace hasn't opted into library component versioning"
}Fetch unpublished component changes
Returns the components in your workspace that have unpublished changes, with those changes applied.
Only available in workspaces that have opted into library component versioning.
curl --request GET \
--url https://api.dittowords.com/v2/components/staged \
--header 'Authorization: <api-key>'import requests
url = "https://api.dittowords.com/v2/components/staged"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.dittowords.com/v2/components/staged', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dittowords.com/v2/components/staged",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dittowords.com/v2/components/staged"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dittowords.com/v2/components/staged")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dittowords.com/v2/components/staged")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "component-id-1",
"name": "Checkout Button",
"text": "Place order",
"status": "NONE",
"notes": "Unpublished notes",
"characterLimit": null,
"tags": [
"checkout"
],
"assignee": null,
"integrated": true,
"variableIds": [],
"folderId": null,
"variantId": null,
"pluralForm": null,
"richText": "Place order",
"hasUnpublishedChanges": true
},
{
"id": "component-id-1",
"name": "Checkout Button",
"text": "Passer la commande",
"status": "WIP",
"notes": "Unpublished notes",
"characterLimit": null,
"tags": [
"checkout"
],
"assignee": null,
"integrated": true,
"variableIds": [],
"folderId": null,
"variantId": "french",
"pluralForm": null,
"richText": "Passer la commande",
"hasUnpublishedChanges": true
}
]{
"message": "Invalid filter"
}{
"message": "This workspace hasn't opted into library component versioning"
}Query Parameters
Stringified JSON filter object. Supports the following filter fields:
folders: array of objects withid(folder developer ID orrootfor root-level components) and optionalexcludeNestedFolders(boolean)variants: array of objects withid(variant developer ID,base, orall)statuses: array of status strings (NONE,WIP,REVIEW,FINAL). These are stored status keys; by default the web app and Figma plugin display them as NONE = "Draft", WIP = "In Progress", REVIEW = "In Review", FINAL = "Final" (a workspace may rename these or replace the set entirely, so none of these keys are guaranteed to exist — read the workspace's actual statuses from GET /v2/statuses or the list_statuses MCP tool rather than assuming this set).tags: object withvalues(array of tag strings) and optionaloperator(ANDorOR, defaults toOR)assignee: email string to match assigned components, ornullfor unassignedintegrated: boolean value to filter by components that are or are not marked as integrated into development
By default, only base text will be returned. Provide a variants filter to specify which variants of the filtered components to include.
When pairing variants with a status or assignee filter, variant data will only be returned if both the base and variant status/assignee match the filter.
By default, folder filters search for components in that folder and its folder children. To skip searching folder children for a given folder, set excludeNestedFolders to true.
Example: {"folders":[{"id":"folder-id"}, {"id":"folder-id-2", "excludeNestedFolders":true}], "variants":[{"id":"french"}], "statuses":["NONE","WIP","FINAL","REVIEW"], "tags":{"values":["tag-1","tag-2"],"operator":"AND"}, "assignee":"user@example.com", "integrated":true}
Response
Returns an array of the components with unpublished changes that match the filter criteria
The status of the component. Returns the variant's status when variantId is not null. These are stored status keys; by default the web app and Figma plugin display them as NONE = "Draft", WIP = "In Progress", REVIEW = "In Review", FINAL = "Final" (a workspace may rename these or replace the set entirely, so none of these keys are guaranteed to exist — read the workspace's actual statuses from GET /v2/statuses or the list_statuses MCP tool rather than assuming this set).
[ { "id": "component-id-1", "name": "Checkout Button", "text": "Place order", "status": "NONE", "notes": "Unpublished notes", "characterLimit": null, "tags": ["checkout"], "assignee": null, "integrated": true, "variableIds": [], "folderId": null, "variantId": null, "pluralForm": null, "richText": "Place order", "hasUnpublishedChanges": true }, { "id": "component-id-1", "name": "Checkout Button", "text": "Passer la commande", "status": "WIP", "notes": "Unpublished notes", "characterLimit": null, "tags": ["checkout"], "assignee": null, "integrated": true, "variableIds": [], "folderId": null, "variantId": "french", "pluralForm": null, "richText": "Passer la commande", "hasUnpublishedChanges": true } ]