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
  • Retrieve font variants for a layer of a template
  • Request
  • Response
  1. REST API
  2. Templates (Designs)

Font variants

Retrieve font variants for a layer of a template

This endpoint retrieves the font variants (weight and style combination) of a text layer's fonts of a specific template.

Request

  • Method: GET

  • URL: https://api.creatopy.com/v1/templates/fontVariants

  • Body:

    • templateHash (string, required): The hash of the template.

    • layerName (string, required): The name of the layer of export.

Response

The response is a JSON object with the following schema:

JSON

{
    "response": [
        {
            "name": "Description",
            "fontFamilyType": "google",
            "slideNumber": 0,
            "bannersetElementId": 7,
            "fontFamily": "Roboto Condensed",
            "actualFontStyle": "normal",
            "actualFontWeight": 400,
            "fontVariants": [
                {
                    "weight": "300",
                    "subFamily": "Light"
                },
                {
                    "weight": "400",
                    "subFamily": "Regular"
                },
                {
                    "weight": "700",
                    "subFamily": "Bold"
                },
                {
                    "weight": "300italic",
                    "subFamily": "Light Italic"
                },
                {
                    "weight": "400italic",
                    "subFamily": "Regular Italic"
                },
                {
                    "weight": "700italic",
                    "subFamily": "Bold Italic"
                }
            ]
        }
    ]
}

When you use the FONTVARIANT attribute on related endpoints, as value you will use the weight value from the response.

PreviousTemplate SizesNextShareLink

Last updated 3 months ago