For the complete documentation index, see llms.txt. This page is also available as Markdown.

Use templates

When creating a new workflow, you can choose whether to start with an empty workflow, or use an existing template.

Templates provide:

  • Help getting started: n8n might already have a template that does what you need.

  • Examples of what you can build

  • Best practices for creating your own workflows

Access templates

Select View templates icon Templates to view the templates library.

If you use n8n's template library, this takes you to browse Workflows on the n8n website. If you use a custom library provided by your organization, you'll be able to search and browse the templates within the app.

Add your workflow to the n8n library

You can submit your workflows to n8n's template library.

n8n is working on a creator program, and developing a marketplace of templates. This is an ongoing project, and details are likely to change.

Refer to n8n Creator hub for information on how to submit templates and become a creator.

Self-hosted n8n: Use your own library

In your environment variables, set N8N_TEMPLATES_HOST to the base URL of your API.

Endpoints

Your API must provide the same endpoints and data structure as n8n's.

The endpoints are:

Method
Path
Purpose

GET

/templates/workflows/<id>

Fetch template metadata for preview/browsing

GET

/workflows/templates/<id>

Fetch workflow data to import onto canvas

GET

/templates/search

Search for workflow templates

GET

/templates/collections/<id>

Get a specific template collection

GET

/templates/collections

List all template collections

GET

/templates/categories

List all template categories

GET

/health

Health check endpoint

Query parameters

The /templates/search endpoint accepts the following query parameters:

Parameter
Type
Description

page

integer

The page of results to return

rows

integer

The maximum number of results to return per page

category

comma-separated list of strings (categories)

The categories to search within

search

string

The search query

The /templates/collections endpoint accepts the following query parameters:

Parameter
Type
Description

category

comma-separated list of strings (categories)

The categories to search within

search

string

The search query

Schemas

The key difference between the two workflow endpoints:

Detailed schemas for response objects:

Show workflow item data schema

Used by /templates/workflows/{id} endpoint (wrapped in a workflow key).

This schema describes the template metadata used for displaying templates in search/browse UI. It includes a nested workflow property that contains the actual importable workflow definition.

Show category item data schema
Show collection item data schema

You can also interactively explore n8n's API endpoints:

https://api.n8n.io/templates/categories https://api.n8n.io/templates/collections https://api.n8n.io/templates/search https://api.n8n.io/health

You can contact us for more support.

Last updated

Was this helpful?