Skip to main content

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

Retrieves all public templates available in the marketplace. Authentication: Required Response

Get Template by ID

Retrieves the complete details of a specific template, including all field definitions. Authentication: Required Path Parameters
  • id: The template ID
Example Request
Response

Get User Library

Returns all templates in the authenticated user’s personal library. Authentication: Required Response

Publish Template

Publishes a new template to the marketplace. Authentication: Required Request Body
Response

Track Download

Increments the download counter for a template. This is typically called automatically when a user installs a template to their library. Authentication: Required Path Parameters
  • templateId: The template ID to track
Example Request
Response
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