API Reference
Retrieve Template Elements
Fetches elements of a specific design template by its ID for the authenticated user.
GET
/
templates
/
{templateId}
/
elements
Note: This operation does not consume any account credits, but rate limits apply.
Retrieve Elements of a Template
This endpoint fetches elements of a specific design template by its ID for the authenticated user.
Request
- Endpoint:
GET /templates/{templateId}/elements
- 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 properties.
Example Response
{
"elements": {
"TextElement": {
"text": "Sample Text",
"color": "#FF5733"
},
"ImageElement": {
"src": "https://example.com/image.png",
"width": 100,
"height": 200
}
}
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
templateId
string
requiredThe ID of the design template
Response
200 - application/json
elements
object
A map of element names to their properties