curl --request GET \
--url https://api.dittowords.com/v2/components \
--header 'Authorization: <api-key>'import requests
url = "https://api.dittowords.com/v2/components"
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', 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",
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"
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")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dittowords.com/v2/components")
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-item-dev-id",
"name": "Component Name",
"text": "Base text",
"status": "NONE",
"notes": "base notes",
"characterLimit": 40,
"tags": [
"baseTag1",
"baseTag2"
],
"assignee": "john@example.com",
"integrated": true,
"variableIds": [],
"folderId": "folder-dev-id",
"variantId": null,
"pluralForm": null,
"richText": "<strong>Base</strong> text"
},
{
"id": "component-item-dev-id",
"name": "Component Name",
"text": "French text",
"status": "WIP",
"notes": "base notes",
"characterLimit": 40,
"tags": [
"baseTag1",
"baseTag2"
],
"assignee": "john@example.com",
"integrated": true,
"variableIds": [
"age",
"name"
],
"folderId": "folder-dev-id",
"variantId": "french",
"pluralForm": null,
"richText": "<em>French</em> text"
},
{
"id": "component-item-dev-id-2",
"name": "Component Name 2",
"text": "Some base text",
"status": "FINAL",
"notes": "base notes",
"characterLimit": null,
"tags": [
"baseTag1",
"baseTag2"
],
"assignee": null,
"integrated": false,
"variableIds": [
"age",
"name"
],
"folderId": null,
"variantId": null,
"pluralForm": null,
"richText": "Some <strong>base</strong> text"
}
]Fetch components
Returns a list of components in your workspace.
curl --request GET \
--url https://api.dittowords.com/v2/components \
--header 'Authorization: <api-key>'import requests
url = "https://api.dittowords.com/v2/components"
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', 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",
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"
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")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dittowords.com/v2/components")
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-item-dev-id",
"name": "Component Name",
"text": "Base text",
"status": "NONE",
"notes": "base notes",
"characterLimit": 40,
"tags": [
"baseTag1",
"baseTag2"
],
"assignee": "john@example.com",
"integrated": true,
"variableIds": [],
"folderId": "folder-dev-id",
"variantId": null,
"pluralForm": null,
"richText": "<strong>Base</strong> text"
},
{
"id": "component-item-dev-id",
"name": "Component Name",
"text": "French text",
"status": "WIP",
"notes": "base notes",
"characterLimit": 40,
"tags": [
"baseTag1",
"baseTag2"
],
"assignee": "john@example.com",
"integrated": true,
"variableIds": [
"age",
"name"
],
"folderId": "folder-dev-id",
"variantId": "french",
"pluralForm": null,
"richText": "<em>French</em> text"
},
{
"id": "component-item-dev-id-2",
"name": "Component Name 2",
"text": "Some base text",
"status": "FINAL",
"notes": "base notes",
"characterLimit": null,
"tags": [
"baseTag1",
"baseTag2"
],
"assignee": null,
"integrated": false,
"variableIds": [
"age",
"name"
],
"folderId": null,
"variantId": null,
"pluralForm": null,
"richText": "Some <strong>base</strong> text"
}
]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 components matching 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-item-dev-id",
"name": "Component Name",
"text": "Base text",
"status": "NONE",
"notes": "base notes",
"characterLimit": 40,
"tags": ["baseTag1", "baseTag2"],
"assignee": "john@example.com",
"integrated": true,
"variableIds": [],
"folderId": "folder-dev-id",
"variantId": null,
"pluralForm": null,
"richText": "<strong>Base</strong> text"
},
{
"id": "component-item-dev-id",
"name": "Component Name",
"text": "French text",
"status": "WIP",
"notes": "base notes",
"characterLimit": 40,
"tags": ["baseTag1", "baseTag2"],
"assignee": "john@example.com",
"integrated": true,
"variableIds": ["age", "name"],
"folderId": "folder-dev-id",
"variantId": "french",
"pluralForm": null,
"richText": "<em>French</em> text"
},
{
"id": "component-item-dev-id-2",
"name": "Component Name 2",
"text": "Some base text",
"status": "FINAL",
"notes": "base notes",
"characterLimit": null,
"tags": ["baseTag1", "baseTag2"],
"assignee": null,
"integrated": false,
"variableIds": ["age", "name"],
"folderId": null,
"variantId": null,
"pluralForm": null,
"richText": "Some <strong>base</strong> text"
}
]