Template Marketplace SDK
The Template Marketplace is a central registry for discovering, sharing, and reusing templates. Create contract, workflow, agent, and verification step templates to share with your workspace or the community.
Quick Start
import FinalTX from '@finaltx/sdk';
const ftx = new FinalTX({ apiKey: 'your-api-key' });
// Browse featured templates
const featured = await ftx.marketplace.featured();
// Search templates
const results = await ftx.marketplace.search({
query: 'api verification',
category: 'api-delivery'
});
// Install a template
await ftx.marketplace.install('template-id');
// Create your own template
const template = await ftx.marketplace.create({
template_type: 'contract_template',
name: 'My API Contract',
visibility: 'workspace',
schema: { url: '', expected_status: 200 },
tags: ['api', 'http']
});Template Types
contract_templatePre-configured contract schemas for common use casesworkflow_templateVerification workflow definitions with branching logicagent_templateValidator, mediator, and approval agent configurationsverification_step_templateIndividual verification checks that can be composedSDK Methods
ftx.marketplace.list(options?)List templates with filtering by type, category, tags, visibility
ftx.marketplace.get(id)Get template details including versions and ratings
ftx.marketplace.featured(category?)Get featured templates, optionally filtered by category
ftx.marketplace.search(query)Full-text search across templates
ftx.marketplace.create(input)Create a new template (starts as draft)
ftx.marketplace.update(id, updates)Update template metadata or schema
ftx.marketplace.publish(id)Publish template (workspace: immediate, public: needs review)
ftx.marketplace.install(id, options?)Install template to your workspace
ftx.marketplace.uninstall(id)Uninstall template from workspace
ftx.marketplace.fork(id, options)Create your own version of a public template
ftx.marketplace.rate(id, { rating, review })Rate and review a template (1-5 stars)
ftx.marketplace.getRatings(id)Get ratings and review statistics
Categories
ai-agentsTemplates for AI agent workflows
verificationVerification and validation templates
marketplaceE-commerce and marketplace contracts
freelanceFreelance work and gig economy templates
api-deliveryAPI and webhook delivery templates
content-creationContent creation and review templates
Template Lifecycle
Workspace-only templates become active immediately. Public templates require security review.