Components
Fetch component text
Returns the components in the workspace of the requesting user. Only component libraries with Developer Mode enabled can be fetched.
GET
/
components
Authorization
Query
curl --request GET \
--url https://api.dittowords.com/v1/components \
--header 'Authorization: <authorization>'
{
"footer.about.blog": {
"name": "Footer/About/Blog",
"status": "WIP",
"text": "Blog"
},
"footer.about.careers": {
"folder": "folder_1",
"name": "Footer/About/Careers",
"status": "FINAL",
"text": "Careers"
}
}
Authorizations
Authorization
string
headerrequiredQuery Parameters
variant
string
format
enum<string>
Available options:
flat
, structured
, nested
, icu
, android
, ios-strings
, ios-strings-dict
status
enum<string>
Available options:
NONE
, WIP
, REVIEW
, FINAL
includeRichText
boolean
Response
200 - application/json
Option 1
Option 2
The response is of type string
.
curl --request GET \
--url https://api.dittowords.com/v1/components \
--header 'Authorization: <authorization>'
{
"footer.about.blog": {
"name": "Footer/About/Blog",
"status": "WIP",
"text": "Blog"
},
"footer.about.careers": {
"folder": "folder_1",
"name": "Footer/About/Careers",
"status": "FINAL",
"text": "Careers"
}
}