Template Sizes

List Template Sizes (design)

This endpoint is used to get the design sizes of a design (template). The design could be a design set or a single design.

Request

  • Method: GET

  • Endpoint: https://api.creatopy.com/v1/templates/{{templateHash}}/design-sizes

  • Method: GET

  • Endpoint: https://api.creatopy.com/v1/templates/{{templateHash}}/design-sizes

Request example:

curl --location 'https://api.creatopy.com/v1/templates/lpp55x/design-sizes' \
--header 'Authorization: Bearer eyJ...'
curl --location 'https://api.creatopy.com/v1/templates/lpp55x/design-sizes' \
--header 'Authorization: Bearer eyJ...'

Response

The response will be in JSON format:

{
    "response": [
        {
            "hash": "rd",
            "name": "Square",
            "kind": "system_design",
            "width": 250,
            "height": 250,
            "measureUnit": "px"
        },
        {
            "hash": "xdook",
            "name": "Custom size 8",
            "kind": "custom_design",
            "width": 120,
            "height": 130,
            "measureUnit": "px"
        }
    ]
}

Last updated