Creatopy Public API
  • Public API
    • Quickstart
    • Authentication
  • REST API
    • Overview
    • Auth
    • Exports
      • Creatives
    • Templates (Designs)
      • Elements
      • Template Sizes
      • Font variants
    • ShareLink
    • Projects
      • Project Users
    • Brand Kits
      • Brand kit assets
      • Brand kit logos
      • Brand kit media folders
      • Brand templates
    • Ad Networks
    • Ad Serving
    • Users
      • Team roles
    • Webhooks
      • Webhook action types
    • Design Versions
    • Folders
      • Move design to folder
    • Error codes
    • Designs
  • GraphQL API
    • Overview
    • Endpoints and queries
    • Postman Collection
Powered by GitBook
On this page
  • List Template Sizes (design)
  • Request
  • Response
  1. REST API
  2. Templates (Designs)

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

Request example:

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"
        }
    ]
}
PreviousElementsNextFont variants

Last updated 3 months ago