Configure a custom workflow templates library
n8n provides a library of workflow templates. When self-hosting n8n, you can:
Continue to use n8n's workflow templates library (this is the default behavior)
Disable workflow templates
Create your own workflow templates library
Disable workflow templates
In your environment variables, set N8N_TEMPLATES_ENABLED to false.
Use your own workflow templates 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:
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:
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:
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:
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.
Add your workflows 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.
Related resources
Last updated
Was this helpful?