curl --request GET \
--url https://api.dittowords.com/v2/textItems/export \
--header 'Authorization: <api-key>'import requests
url = "https://api.dittowords.com/v2/textItems/export"
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/textItems/export', 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/textItems/export",
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/textItems/export"
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/textItems/export")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dittowords.com/v2/textItems/export")
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{
"@@locale": "en",
"user-account-header": "{FullName}'s Account",
"user-account-settings-label": "Account Settings",
"user-account-settings-payment-header": "Payment Details",
"welcome-header": "Welcome to Acme Inc., {FirstName}",
"no-notifications-label": "No new notifications",
"@welcome-header": {
"placeholders": {
"FirstName": {
"type": "String"
}
}
}
}{
"message": "Variant with id \"<variantId>\" not found"
}Export text items
Returns text items in your workspace in the desired export format.
curl --request GET \
--url https://api.dittowords.com/v2/textItems/export \
--header 'Authorization: <api-key>'import requests
url = "https://api.dittowords.com/v2/textItems/export"
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/textItems/export', 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/textItems/export",
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/textItems/export"
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/textItems/export")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dittowords.com/v2/textItems/export")
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{
"@@locale": "en",
"user-account-header": "{FullName}'s Account",
"user-account-settings-label": "Account Settings",
"user-account-settings-payment-header": "Payment Details",
"welcome-header": "Welcome to Acme Inc., {FirstName}",
"no-notifications-label": "No new notifications",
"@welcome-header": {
"placeholders": {
"FirstName": {
"type": "String"
}
}
}
}{
"message": "Variant with id \"<variantId>\" not found"
}Authorizations
Query Parameters
Stringified JSON filter object. Supports the following filter fields:
projects: array of objects withid(project developer ID)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 text items, ornullfor unassignedintegrated: boolean value to filter by items that are or are not integrated into development
Example: {"projects":[{"id":"project-id"}], "statuses":["NONE","WIP","FINAL","REVIEW"], "tags":{"values":["tag-1"],"operator":"OR"}, "assignee":"user@example.com", "integrated":true}
Sort order for the returned text items (default: id):
idsorts all items alphabetically by developer ID.project_ordergroups items by project, returned alphabetically by project developer ID, then sorts within projects based on the custom sort order set up in the web app.
id, project_order When set to 'html', includes HTML-formatted rich text in the response.
html By default, base text will be returned. Provide a variant parameter to specify which variant of the filtered base text items to return.
Output format for exported text items.
json_icu, json_i18next, json_vue_i18n, ios-strings, ios-stringsdict, android, arb Order in which variables are indexed in positional format exports (ios-strings, ios-stringsdict, android). "alphabetical" assigns indices by variable name (a=1, b=2, ...); "default" preserves the existing creation-order assignment.
default, alphabetical Response
Returns text item developer id - text item value key/value pairs in the desired format.
For json_icu, json_i18next, json_vue_i18n formats, object keys are developer-ids (strings) and values are text (strings). For arb, values are text (strings) except for the optional top-level @@locale key (string) and @<developer-id> metadata keys, which are objects.
The text value for the developer-id key, or the @@locale value for arb exports