Returns a list of text items in your workspace. Use the filter query param to configure the projects and variants that you would like to include.
Stringified JSON filter object. Supports the following filter fields:
projects: array of objects with id (project developer ID)variants: array of objects with id (variant developer ID, base, or all)statuses: array of status strings (NONE, WIP, REVIEW, FINAL)tags: object with values (array of tag strings) and optional operator (AND or OR, defaults to OR)assignee: email string to match assigned text items, or null for unassignedintegrated: boolean value to filter by items that are or are not integrated into developmentBy default, only base text will be returned. Provide a variants filter to specify which variants of the filtered base text items to include.
If both the status and variants filter are provided, variant statuses must match the status filter in addition to their base status matching the status filter to be returned.
Example: {"projects":[{"id":"project-id"}], "variants":[{"id":"french"}], "statuses":["NONE","WIP","FINAL","REVIEW"], "tags":{"values":["tag-1","tag-2"],"operator":"AND"}, "assignee":"user@example.com", "integrated":true}
When set to 'html', includes HTML-formatted rich text in the response
html Returns an array of text items matching the filter criteria
The Developer ID of the text item
The plaintext content of the text item. May be base or variant text depending on variantId
The current status of the base or variant text
The notes on the text item. Variants will have the base text item's notes value
Array of tags associated with the text item. Variants will have the base text item's tags value
The email of the user assigned to this text item, or null if unassigned
Whether this text item has been marked as integrated into development
Array of Developer IDs of variables used in this base or variant text
The Developer ID of this variant, or null for base text
one, two, few, many, zero, other, null The Developer ID of the project this text item belongs to
HTML-formatted version of the text content. Only included when richText=html query parameter is provided
[
{
"id": "text-item-dev-id",
"text": "Base text",
"status": "NONE",
"notes": "base notes",
"tags": ["baseTag1", "baseTag2"],
"assignee": "john@example.com",
"integrated": true,
"variableIds": [],
"projectId": "project-dev-id",
"variantId": null,
"richText": "<strong>Base</strong> text"
},
{
"id": "text-item-dev-id",
"text": "French text",
"status": "WIP",
"notes": "base notes",
"tags": ["baseTag1", "baseTag2"],
"assignee": "john@example.com",
"integrated": true,
"variableIds": ["age", "name"],
"projectId": "project-dev-id",
"variantId": "french",
"richText": "<em>French</em> text"
},
{
"id": "another-text-item",
"text": "Some base text",
"status": "FINAL",
"notes": "base notes",
"tags": ["baseTag1", "baseTag2"],
"assignee": null,
"integrated": false,
"variableIds": ["age", "name"],
"projectId": "another-project",
"variantId": null,
"richText": "Some <strong>base</strong> text"
}
]