GET
/
templates
/
{templateId}
/
elements
/
basic
Note: This operation does not consume any account credits, but rate limits apply.

This endpoint fetches basic properties of elements for a specific design template by its ID for the authenticated user.

What are basic properties? These are the most important properties in an element:

  • Image elements: src
  • Text elements: text
  • Path elements: fill

Request

  • Endpoint: GET /templates/{templateId}/elements/basic
  • Authorization: Bearer token required

Path Parameters

  • templateId (string, required): The ID of the design template.

Response

A successful response will return a map of element names to their basic properties.

Example Response

{
   "elements": {
      "background": {
         "fill": "#ffffff"
      },
      "name": {
         "text": "John Doe"
      },
      "line1": {
         "fill": "transparent"
      },
      "logo": {
         "src": "https://cdn.imagior.com/example.png"
      }
   }
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

templateId
string
required

The ID of the design template

Response

200 - application/json
elements
object

A map of element names to their basic properties