Overview
The Template API provides access to Invenicum’s template marketplace, allowing you to browse, publish, and install asset templates. Templates define reusable metadata structures for different types of assets.Template Model
Fields
- id: Unique identifier for the template
- name: Display name of the template
- description: Detailed description of the template’s purpose
- category: Template category (e.g., “3D Models”, “Documents”, “Images”)
- tags: Array of searchable tags
- author: GitHub username or display name of the template creator
- authorAvatarUrl: URL to the author’s profile picture
- downloadUrl: Direct download URL for the template file
- fields: Array of custom field definitions (see below)
- isOfficial: Whether this is an official Invenicum template
- isPublic: Whether the template is published to the marketplace
- downloadCount: Number of times the template has been downloaded
- createdAt: Timestamp when the template was created
- updatedAt: Timestamp when the template was last modified
Custom Field Definition
Endpoints
Get Market Templates
Get Template by ID
- id: The template ID
Get User Library
Publish Template
Track Download
- templateId: The template ID to track
This endpoint is non-critical and will not throw errors if tracking fails. It’s designed for analytics purposes.
Field Types
Templates support the following custom field types:Text Field
Number Field
Boolean Field
Select Field
Date Field
Multi-select Field
SDK Usage
Get Market Templates
Publish a Template
Track a Download
Authentication
All template endpoints require a valid Bearer token:Error Responses
Common Error Codes
- TEMPLATE_NOT_FOUND: The requested template does not exist
- INVALID_FIELDS: One or more field definitions are invalid
- DUPLICATE_NAME: A template with this name already exists
- PERMISSION_DENIED: User does not have permission to publish or modify this template
- VALIDATION_ERROR: Field validation rules are malformed
