SmakeSmake API Docs
EndpointsTexts

Show Text

GET
/texts/{id}

Returns the text with the given id, including its lines, font, and preview image.

AuthorizationBearer
AuthorizationBearer <token>

In: header

Path Parameters

id*integer

The ID of the text.

Header Parameters

X-Api-Version?string

Response Body

application/json

application/json

application/json

Request example
curl -X GET "https://example.com/texts/1" \  -H "X-Api-Version: 2022-02-01"
{  "id": 1,  "collection_name": "custom",  "production_method": {    "id": 2,    "collection_name": "embroidery",    "handle": "embroidery",    "name": "Embroider",    "description": "Direct embroidery is the most common type of embroidery. Using this, you can offer a high-quality finishing technique which stands out for its durability.",    "created_at": "2026-04-08T05:58:13+00:00",    "updated_at": "2026-04-08T05:58:13+00:00"  },  "media": [    {      "id": 341,      "is_test": 0,      "collection_name": "preview-data",      "file_name": "tmp-file-4a11a6f0-ddfe-454b-9cb1-f406a011e114.png",      "size": 2307,      "mime_type": "image/png",      "download_url": "https://api.smake.io/storage/files/dac18b3b26f94cabbfae0914e68d7288/tmp-file-4a11a6f0-ddfe-454b-9cb1-f406a011e114.png?expires=1775820782&signature=REDACTED",      "state": "pending",      "requested": null,      "failure_message": null,      "created_at": "2026-04-08T05:58:20+00:00",      "updated_at": "2026-04-08T05:58:20+00:00"    }  ],  "lines": [    {      "id": 1,      "value": "Text Example 1",      "font": {        "id": 1,        "family_name": "Roboto",        "style": "Bold"      },      "font_size": 7,      "padding_bottom": 20,      "horizontal_alignment": "center",      "bending_radius": "85.00",      "color_assignments": [        {          "element_type": "needle",          "element_identifier": 2,          "apply_to": "fill",          "color": {            "name": "Royal",            "hex": "2b408e",            "red": 43,            "green": 64,            "blue": 142,            "cyan": 70,            "magenta": 55,            "yellow": 0,            "black": 44,            "pantone": "7670",            "hks": "35",            "hks_percent": 100,            "manufacturer": {              "id": 1,              "name": "Madeira",              "created_at": "2026-04-08T05:58:12+00:00",              "updated_at": "2026-04-08T05:58:12+00:00"            },            "color_details": {              "id": 1,              "name": "Polyneon",              "code": "1842",              "thickness": "No. 60",              "category": "Madeira Polyneon No. 60",              "cone_codes": [                "65f96742",                "e7b858fa"              ],              "render_thickness": 3,              "render_type": "ttPolyester",              "created_at": "2026-04-08T05:58:13+00:00",              "updated_at": "2026-04-08T05:58:13+00:00"            },            "color_details_type": "embroidery-color-details",            "created_at": "2026-04-08T05:58:13+00:00",            "updated_at": "2026-04-08T05:58:13+00:00"          },          "red": 43,          "green": 64,          "blue": 142        }      ],      "created_at": "2026-04-08T05:58:20+00:00",      "updated_at": "2026-04-08T05:58:20+00:00"    },    {      "id": 2,      "value": "Text Example 2",      "font": {        "id": 1,        "family_name": "Roboto",        "style": "Bold"      },      "font_size": 19,      "padding_bottom": 2,      "horizontal_alignment": "right",      "bending_radius": "70.00",      "color_assignments": [        {          "element_type": "needle",          "element_identifier": 2,          "apply_to": "fill",          "color": {            "name": "Royal",            "hex": "2b408e",            "red": 43,            "green": 64,            "blue": 142,            "cyan": 70,            "magenta": 55,            "yellow": 0,            "black": 44,            "pantone": "7670",            "hks": "35",            "hks_percent": 100,            "manufacturer": {              "id": 1,              "name": "Madeira",              "created_at": "2026-04-08T05:58:12+00:00",              "updated_at": "2026-04-08T05:58:12+00:00"            },            "color_details": {              "id": 1,              "name": "Polyneon",              "code": "1842",              "thickness": "No. 60",              "category": "Madeira Polyneon No. 60",              "cone_codes": [                "65f96742",                "e7b858fa"              ],              "render_thickness": 3,              "render_type": "ttPolyester",              "created_at": "2026-04-08T05:58:13+00:00",              "updated_at": "2026-04-08T05:58:13+00:00"            },            "color_details_type": "embroidery-color-details",            "created_at": "2026-04-08T05:58:13+00:00",            "updated_at": "2026-04-08T05:58:13+00:00"          },          "red": 43,          "green": 64,          "blue": 142        }      ],      "created_at": "2026-04-08T05:58:20+00:00",      "updated_at": "2026-04-08T05:58:20+00:00"    }  ],  "width": 66,  "height": 23,  "created_at": "2026-04-08T05:58:20+00:00",  "updated_at": "2026-04-08T05:58:20+00:00"}