const API = 'https://app.cubehosting.com.br/api';
const headers = { Authorization: `Bearer ${process.env.CUBE_API_KEY}` };
const res = await fetch(`${API}/templates`);
const { templates } = await res.json();
for (const t of templates) console.log(t.id, t.memoryMb, t.variables.map((v) => v.name));
import os
import requests
API = "https://app.cubehosting.com.br/api"
headers = {"Authorization": f"Bearer {os.environ['CUBE_API_KEY']}"}
r = requests.get(f"{API}/templates", timeout=30)
r.raise_for_status()
for t in r.json()["templates"]:
print(t["id"], t["memoryMb"], [v["name"] for v in t["variables"]])
{ "templates": [ { "id": "discord-js-bot", "name": "Bot discord.js", "description": "Um bot de Discord em Node.js com o comando /ping, pronto para você criar os seus.", "type": "bot", "language": "node", "version": "24", "memoryMb": 256, "port": null, "variables": [ { "name": "DISCORD_TOKEN", "description": "O token do bot, do Portal de Desenvolvedores do Discord.", "isRequired": true, "helpUrl": "https://docs.cubehosting.com.br/hosting/templates#como-pegar-o-token-do-bot" } ], "database": null, "minimumMemoryMb": null, "minimumPlan": null, "connection": null }, { "id": "lavalink", "name": "Lavalink", "description": "O servidor de música dos seus bots, com YouTube, SoundCloud e rádios. Privado: só os projetos da sua conta conectam nele.", "type": "bot", "language": "java", "version": "21", "memoryMb": 512, "port": null, "variables": [], "database": null, "minimumMemoryMb": 512, "minimumPlan": { "id": "block", "name": "Block" }, "connection": { "port": 2333, "passwordVariable": "LAVALINK_SERVER_PASSWORD" } }, { "id": "discord-postgres-bot", "name": "Bot com PostgreSQL", "description": "Um bot de Discord que guarda anotações num PostgreSQL da sua conta, criado junto e já ligado ao projeto.", "type": "bot", "language": "node", "version": "24", "memoryMb": 256, "port": null, "variables": [ { "name": "DISCORD_TOKEN", "description": "O token do bot, do Portal de Desenvolvedores do Discord.", "isRequired": true, "helpUrl": "https://docs.cubehosting.com.br/hosting/templates#como-pegar-o-token-do-bot" } ], "database": { "engine": "postgres", "variable": "DATABASE_URL", "memoryMb": 512 }, "minimumMemoryMb": null, "minimumPlan": null, "connection": null }, { "id": "express-api", "name": "API Express", "description": "Uma API em Node.js com Express, no ar num endereço .cubehost.dev.", "type": "site", "language": "node", "version": "24", "memoryMb": 512, "port": 8080, "variables": [], "database": null, "minimumMemoryMb": null, "minimumPlan": null, "connection": null } ]}
{
"status": "error",
"code": "internal_error",
"message": "Erro inesperado. Tente de novo em instantes."
}
Templates
Listar templates
Os templates da Cube: projetos prontos, com o que cada um pede para iniciar.
GET
/
templates
curl
curl https://app.cubehosting.com.br/api/templates
const API = 'https://app.cubehosting.com.br/api';
const headers = { Authorization: `Bearer ${process.env.CUBE_API_KEY}` };
const res = await fetch(`${API}/templates`);
const { templates } = await res.json();
for (const t of templates) console.log(t.id, t.memoryMb, t.variables.map((v) => v.name));
import os
import requests
API = "https://app.cubehosting.com.br/api"
headers = {"Authorization": f"Bearer {os.environ['CUBE_API_KEY']}"}
r = requests.get(f"{API}/templates", timeout=30)
r.raise_for_status()
for t in r.json()["templates"]:
print(t["id"], t["memoryMb"], [v["name"] for v in t["variables"]])
{ "templates": [ { "id": "discord-js-bot", "name": "Bot discord.js", "description": "Um bot de Discord em Node.js com o comando /ping, pronto para você criar os seus.", "type": "bot", "language": "node", "version": "24", "memoryMb": 256, "port": null, "variables": [ { "name": "DISCORD_TOKEN", "description": "O token do bot, do Portal de Desenvolvedores do Discord.", "isRequired": true, "helpUrl": "https://docs.cubehosting.com.br/hosting/templates#como-pegar-o-token-do-bot" } ], "database": null, "minimumMemoryMb": null, "minimumPlan": null, "connection": null }, { "id": "lavalink", "name": "Lavalink", "description": "O servidor de música dos seus bots, com YouTube, SoundCloud e rádios. Privado: só os projetos da sua conta conectam nele.", "type": "bot", "language": "java", "version": "21", "memoryMb": 512, "port": null, "variables": [], "database": null, "minimumMemoryMb": 512, "minimumPlan": { "id": "block", "name": "Block" }, "connection": { "port": 2333, "passwordVariable": "LAVALINK_SERVER_PASSWORD" } }, { "id": "discord-postgres-bot", "name": "Bot com PostgreSQL", "description": "Um bot de Discord que guarda anotações num PostgreSQL da sua conta, criado junto e já ligado ao projeto.", "type": "bot", "language": "node", "version": "24", "memoryMb": 256, "port": null, "variables": [ { "name": "DISCORD_TOKEN", "description": "O token do bot, do Portal de Desenvolvedores do Discord.", "isRequired": true, "helpUrl": "https://docs.cubehosting.com.br/hosting/templates#como-pegar-o-token-do-bot" } ], "database": { "engine": "postgres", "variable": "DATABASE_URL", "memoryMb": 512 }, "minimumMemoryMb": null, "minimumPlan": null, "connection": null }, { "id": "express-api", "name": "API Express", "description": "Uma API em Node.js com Express, no ar num endereço .cubehost.dev.", "type": "site", "language": "node", "version": "24", "memoryMb": 512, "port": 8080, "variables": [], "database": null, "minimumMemoryMb": null, "minimumPlan": null, "connection": null } ]}
{
"status": "error",
"code": "internal_error",
"message": "Erro inesperado. Tente de novo em instantes."
}
Devolve os templates da Cube, com o tipo, a linguagem, a memória sugerida, as variáveis que cada um pede (e onde pegar o valor, em helpUrl) e o banco que ele cria junto. É público: não precisa de chave. Guia completo em Templates.Para criar um projeto a partir de um deles, mande o id no campo template de Criar um projeto, com as variáveis em variables.
Um template com database precisa de um banco: crie o banco antes e mande o id dele em databaseId. A conexão entra na variável de database.variable antes da primeira subida.
Um template com connection (o Lavalink) é um serviço privado da sua conta: a Cube gera a senha na variável de connection.passwordVariable, e os seus projetos conectam pelo internalHost dele nessa porta. minimumPlan diz de qual plano ele está disponível.
Algo falhou do nosso lado. Tente de novo em instantes.
Todos os códigos, com o formato do erro, em Códigos de erro.
Resposta
A lista de templates.
templates
object[]
obrigatório
Show child attributes
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Cube Hosting","description":"Documentação da Cube Hosting: hospede bots de Discord, sites e APIs em Node.js e Python enviando um .zip, e automatize tudo pela API.","colors":{"primary":"#796CFC","light":"#6FB4FF","dark":"#8B37ED"},"logo":{"light":"https://mintcdn.com/cube-hosting/HtVsOud899EXHxtr/logo/light.png?fit=max\u0026auto=format\u0026n=HtVsOud899EXHxtr\u0026q=85\u0026s=22af9c0c70c3a81644d8798115d3e083","dark":"https://mintcdn.com/cube-hosting/HtVsOud899EXHxtr/logo/dark.png?fit=max\u0026auto=format\u0026n=HtVsOud899EXHxtr\u0026q=85\u0026s=e891387693e8a8d9481454a0405bae3d","href":"https://docs.cubehosting.com.br"},"favicon":"https://mintcdn.com/cube-hosting/HtVsOud899EXHxtr/favicon.png?fit=max\u0026auto=format\u0026n=HtVsOud899EXHxtr\u0026q=85\u0026s=813713f75eb92a281f8b739479766fa4","api":{"openapi":"api-reference/openapi.json","playground":{"display":"simple"},"examples":{"prefill":false,"autogenerate":false}},"appearance":{"default":"dark","strict":true},"background":{"decoration":"gradient","color":{"light":"#F4F4F4","dark":"#07090F"}},"navbar":{"links":[{"href":"https://discord.gg/pv6D9tUsDV","label":"Suporte"}],"primary":{"type":"button","label":"Painel","href":"https://app.cubehosting.com.br"}},"footer":{"socials":{"discord":"https://discord.gg/pv6D9tUsDV","website":"https://cubehosting.com.br"}},"search":{"prompt":"Buscar na documentação…"},"seo":{"metatags":{"og:locale":"pt_BR","og:site_name":"Cube Hosting"}},"fonts":{"heading":{"family":"Geist","weight":600},"body":{"family":"Geist","weight":400}},"icons":{"library":"lucide"},"styling":{"codeblocks":"dark","latex":true},"errors":{"404":{"redirect":false,"title":"Página não encontrada","description":"Este endereço não existe na documentação. Volte para a [Introdução](/) ou use a busca."}},"contextual":{"options":["copy","view","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Painel","icon":"layout-dashboard","href":"https://app.cubehosting.com.br"},{"anchor":"Discord","icon":"message-circle","href":"https://discord.gg/pv6D9tUsDV"},{"anchor":"Site","icon":"globe","href":"https://cubehosting.com.br"}]},"languages":[{"language":"pt-BR","href":""}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cube-hosting","hasAudioNarration":false,"actualSubdomain":"cube-hosting","customDomains":["docs.cubehosting.com.br"],"gitSource":{"type":"github","owner":"bragadzz","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6aec8a5a0c9d6432d6b42c54","clientVersion":"0.0.4167","searchFilterCounts":[{"language":"pt-BR","tag":"Referência da API","count":80},{"language":"pt-BR","tag":"Guias","count":49},{"language":"pt-BR","tag":"Hospedagem","count":25},{"language":"pt-BR","tag":"Arquivos","count":15},{"language":"pt-BR","tag":"Blob","count":11},{"language":"pt-BR","tag":"Bancos de dados","count":11},{"language":"pt-BR","tag":"Ferramentas","count":10},{"language":"pt-BR","tag":"Projetos","count":8},{"language":"pt-BR","tag":"Conta e planos","count":7},{"language":"pt-BR","tag":"Backups","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Instrument Serif';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/instrumentserif/v5/jizBRFtNs2ka5fXjeivQ4LroWlx-6zsTjmbI.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Instrument Serif';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/instrumentserif/v5/jizBRFtNs2ka5fXjeivQ4LroWlx-6zUTjg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\ncode,pre,kbd,samp{font-family:'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace}#page-title{font-family:'Instrument Serif', Georgia, serif;font-weight:400;font-size:clamp(2.25rem, 1.75rem + 1.5vw, 3rem);line-height:1.05;padding-bottom:0.08em}html.dark #page-title{background-image:linear-gradient(to bottom right, #f4f4f4 35%, #aaadd6);-webkit-background-clip:text;background-clip:text;color:transparent}#localization-select-trigger{display:none!important}"}],"page":{"pagePath":"api-reference/templates/list","slug":"/api-reference/templates/list","pageMetadata":{"title":"Listar templates","openapi":"GET /templates","description":"Os templates da Cube: projetos prontos, com o que cada um pede para iniciar.","href":"/api-reference/templates/list"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Os templates da Cube: projetos prontos, com o que cada um pede para iniciar.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Heading,Table,Tip}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Devolve os templates da Cube, com o tipo, a linguagem, a memória sugerida, as variáveis que cada um pede (e onde pegar o valor, em `,_jsx(_components.code,{children:`helpUrl`}),`) e o banco que ele cria junto. É público: não precisa de chave. Guia completo em `,_jsx(_components.a,{href:`/hosting/templates`,children:`Templates`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Para criar um projeto a partir de um deles, mande o `,_jsx(_components.code,{children:`id`}),` no campo `,_jsx(_components.code,{children:`template`}),` de `,_jsx(_components.a,{href:`/api-reference/projects/create`,children:`Criar um projeto`}),`, com as variáveis em `,_jsx(_components.code,{children:`variables`}),`.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Um template com `,_jsx(_components.code,{children:`database`}),` precisa de um banco: `,_jsx(_components.a,{href:`/api-reference/databases/create`,children:`crie o banco`}),` antes e mande o id dele em `,_jsx(_components.code,{children:`databaseId`}),`. A conexão entra na variável de `,_jsx(_components.code,{children:`database.variable`}),` antes da primeira subida.`]})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Um template com `,_jsx(_components.code,{children:`connection`}),` (o `,_jsx(_components.a,{href:`/hosting/lavalink`,children:`Lavalink`}),`) é um serviço privado da sua conta: a Cube gera a senha na variável de `,_jsx(_components.code,{children:`connection.passwordVariable`}),`, e os seus projetos conectam pelo `,_jsx(_components.code,{children:`internalHost`}),` dele nessa porta. `,_jsx(_components.code,{children:`minimumPlan`}),` diz de qual plano ele está disponível.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`erros-comuns`,children:`Erros comuns`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Código`}),_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`O que fazer`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/errors#param-internal-error`,children:_jsx(_components.code,{children:`internal_error`})})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:`Algo falhou do nosso lado. Tente de novo em instantes.`})]})})]}),`\n`,_jsxs(_components.p,{children:[`Todos os códigos, com o formato do erro, em `,_jsx(_components.a,{href:`/errors`,children:`Códigos de erro`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Listar templates","openapi":"GET /templates","description":"Os templates da Cube: projetos prontos, com o que cada um pede para iniciar.","href":"/api-reference/templates/list"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Erros comuns","slug":"erros-comuns","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"listTemplates","summary":"Listar templates","description":"Os templates da Cube: projetos prontos, com o que cada um pede para iniciar.","tags":["Templates"],"security":[],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl https://app.cubehosting.com.br/api/templates"},{"lang":"javascript","label":"Node.js","source":"const API = 'https://app.cubehosting.com.br/api';\nconst headers = { Authorization: `Bearer ${process.env.CUBE_API_KEY}` };\n\nconst res = await fetch(`${API}/templates`);\nconst { templates } = await res.json();\nfor (const t of templates) console.log(t.id, t.memoryMb, t.variables.map((v) => v.name));"},{"lang":"python","label":"Python","source":"import os\nimport requests\n\nAPI = \"https://app.cubehosting.com.br/api\"\nheaders = {\"Authorization\": f\"Bearer {os.environ['CUBE_API_KEY']}\"}\n\nr = requests.get(f\"{API}/templates\", timeout=30)\nr.raise_for_status()\nfor t in r.json()[\"templates\"]:\n print(t[\"id\"], t[\"memoryMb\"], [v[\"name\"] for v in t[\"variables\"]])"}],"responses":{"200":"b3ca521e-4896-4b6f-a4a2-48e2cabe5dcc","500":"b066fda1-5875-4a05-ae4f-aea5615a26ed"},"method":"get","type":"path","servers":["1af5d2f3-cd44-429e-ae4e-169c57d31fa0"],"path":"/templates","baseUrlOptions":["https://app.cubehosting.com.br/api"],"title":"Listar templates","codeSamples":[{"label":"curl","lang":"bash","source":"curl https://app.cubehosting.com.br/api/templates"},{"label":"Node.js","lang":"javascript","source":"const API = 'https://app.cubehosting.com.br/api';\nconst headers = { Authorization: `Bearer ${process.env.CUBE_API_KEY}` };\n\nconst res = await fetch(`${API}/templates`);\nconst { templates } = await res.json();\nfor (const t of templates) console.log(t.id, t.memoryMb, t.variables.map((v) => v.name));"},{"label":"Python","lang":"python","source":"import os\nimport requests\n\nAPI = \"https://app.cubehosting.com.br/api\"\nheaders = {\"Authorization\": f\"Bearer {os.environ['CUBE_API_KEY']}\"}\n\nr = requests.get(f\"{API}/templates\", timeout=30)\nr.raise_for_status()\nfor t in r.json()[\"templates\"]:\n print(t[\"id\"], t[\"memoryMb\"], [v[\"name\"] for v in t[\"variables\"]])"}],"requiredOnlyExamples":false,"disableCodeSampleGeneration":true,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{},"responses":{"b3ca521e-4896-4b6f-a4a2-48e2cabe5dcc":{"description":"A lista de templates.","content":{"application/json":{"schema":{"type":"object","required":["templates"],"properties":{"templates":{"type":"array","items":{"type":"object","description":"Um template da Cube: um projeto pronto, com o código completo.","required":["id","name","description","type","language","version","memoryMb","port","variables","database","minimumMemoryMb","minimumPlan","connection"],"properties":{"id":{"type":"string","enum":["discord-js-bot","discord-py-bot","discord-music-bot","lavalink","discord-postgres-bot","express-api","fastapi-api","static-site"],"description":"O que vai no campo `template` de [Criar um projeto](/api-reference/projects/create).","isRequired":true,"uniqueKey":"templates.items.[INDEX].id","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"templates.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","isRequired":true,"uniqueKey":"templates.items.[INDEX].description","typeLabel":"string"},"type":{"type":"string","enum":["bot","site"],"isRequired":true,"uniqueKey":"templates.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"language":{"type":"string","enum":["node","python","java"],"isRequired":true,"uniqueKey":"templates.items.[INDEX].language","typeLabel":"enum\u003cstring>"},"version":{"type":"string","isRequired":true,"uniqueKey":"templates.items.[INDEX].version","typeLabel":"string"},"memoryMb":{"type":"integer","description":"A memória sugerida, em MB (nos bots, 256: o mínimo dos planos pagos). No Free, ela cai para o que cabe no plano. Mande outra em `memoryMb` se quiser, a partir do mínimo do plano.","isRequired":true,"uniqueKey":"templates.items.[INDEX].memoryMb","typeLabel":"integer"},"port":{"oneOf":[{"type":"integer","description":"Só site: a porta do app. `null` em bot.","isRequired":true,"uniqueKey":"templates.items.[INDEX].port.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Só site: a porta do app. `null` em bot.","isRequired":true,"uniqueKey":"templates.items.[INDEX].port.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"templates.items.[INDEX].port","typeLabel":"integer | null"},"variables":{"type":"array","items":{"type":"object","required":["name","description","isRequired","helpUrl"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"templates.items.[INDEX].variables.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","isRequired":true,"uniqueKey":"templates.items.[INDEX].variables.items.[INDEX].description","typeLabel":"string"},"isRequired":{"type":"boolean","description":"Sem ela, o projeto instala e não inicia.","isRequired":true,"uniqueKey":"templates.items.[INDEX].variables.items.[INDEX].isRequired","typeLabel":"boolean"},"helpUrl":{"oneOf":[{"type":"string","format":"uri","description":"Onde ver como pegar o valor.","isRequired":true,"uniqueKey":"templates.items.[INDEX].variables.items.[INDEX].helpUrl.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"Onde ver como pegar o valor.","isRequired":true,"uniqueKey":"templates.items.[INDEX].variables.items.[INDEX].helpUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"templates.items.[INDEX].variables.items.[INDEX].helpUrl","typeLabel":"string\u003curi> | null"}},"uniqueKey":"templates.items.[INDEX].variables.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"templates.items.[INDEX].variables","typeLabel":"object[]"},"database":{"oneOf":[{"type":"object","description":"O banco que o painel cria junto. Pela API, [crie o banco](/api-reference/databases/create) e mande o `databaseId`.","required":["engine","variable","memoryMb"],"properties":{"engine":{"type":"string","enum":["postgres","mysql","redis"],"isRequired":true,"uniqueKey":"templates.items.[INDEX].database.oneOf.0.engine","typeLabel":"enum\u003cstring>"},"variable":{"type":"string","description":"A variável que recebe a conexão (`databaseId` no envio).","isRequired":true,"uniqueKey":"templates.items.[INDEX].database.oneOf.0.variable","typeLabel":"string"},"memoryMb":{"type":"integer","description":"A memória sugerida do banco.","isRequired":true,"uniqueKey":"templates.items.[INDEX].database.oneOf.0.memoryMb","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"templates.items.[INDEX].database.oneOf.0","typeLabel":"object"},{"type":"null","description":"O banco que o painel cria junto. Pela API, [crie o banco](/api-reference/databases/create) e mande o `databaseId`.","isRequired":true,"uniqueKey":"templates.items.[INDEX].database.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"templates.items.[INDEX].database","typeLabel":"object | null"},"minimumMemoryMb":{"oneOf":[{"type":"integer","description":"O mínimo próprio do template, acima do do tipo e da linguagem (o Lavalink: 512). Vale ao criar e ao mudar a memória. `null` sem um próprio.","isRequired":true,"uniqueKey":"templates.items.[INDEX].minimumMemoryMb.oneOf.0","typeLabel":"integer"},{"type":"null","description":"O mínimo próprio do template, acima do do tipo e da linguagem (o Lavalink: 512). Vale ao criar e ao mudar a memória. `null` sem um próprio.","isRequired":true,"uniqueKey":"templates.items.[INDEX].minimumMemoryMb.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"templates.items.[INDEX].minimumMemoryMb","typeLabel":"integer | null"},"minimumPlan":{"oneOf":[{"type":"object","description":"O menor plano em que o template cabe (o Lavalink: a partir do Block). Num plano menor, `403 template_not_in_plan`.","required":["id","name"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"templates.items.[INDEX].minimumPlan.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"templates.items.[INDEX].minimumPlan.oneOf.0.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"templates.items.[INDEX].minimumPlan.oneOf.0","typeLabel":"object"},{"type":"null","description":"O menor plano em que o template cabe (o Lavalink: a partir do Block). Num plano menor, `403 template_not_in_plan`.","isRequired":true,"uniqueKey":"templates.items.[INDEX].minimumPlan.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"templates.items.[INDEX].minimumPlan","typeLabel":"object | null"},"connection":{"oneOf":[{"type":"object","description":"O projeto é um serviço privado da conta (o [Lavalink](/hosting/lavalink)): os outros projetos conectam pelo `internalHost`, nesta porta, com a senha de [Ver a conexão](/api-reference/projects/connection).","required":["port","passwordVariable"],"properties":{"port":{"type":"integer","description":"A porta em que o serviço escuta, dentro da conta.","isRequired":true,"uniqueKey":"templates.items.[INDEX].connection.oneOf.0.port","typeLabel":"integer"},"passwordVariable":{"type":"string","description":"A variável com a senha, que a Cube gera ao criar.","isRequired":true,"uniqueKey":"templates.items.[INDEX].connection.oneOf.0.passwordVariable","typeLabel":"string"}},"isRequired":true,"uniqueKey":"templates.items.[INDEX].connection.oneOf.0","typeLabel":"object"},{"type":"null","description":"O projeto é um serviço privado da conta (o [Lavalink](/hosting/lavalink)): os outros projetos conectam pelo `internalHost`, nesta porta, com a senha de [Ver a conexão](/api-reference/projects/connection).","isRequired":true,"uniqueKey":"templates.items.[INDEX].connection.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"templates.items.[INDEX].connection","typeLabel":"object | null"}},"uniqueKey":"templates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"templates","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"templates":[{"id":"discord-js-bot","name":"Bot discord.js","description":"Um bot de Discord em Node.js com o comando /ping, pronto para você criar os seus.","type":"bot","language":"node","version":"24","memoryMb":256,"port":null,"variables":[{"name":"DISCORD_TOKEN","description":"O token do bot, do Portal de Desenvolvedores do Discord.","isRequired":true,"helpUrl":"https://docs.cubehosting.com.br/hosting/templates#como-pegar-o-token-do-bot"}],"database":null,"minimumMemoryMb":null,"minimumPlan":null,"connection":null},{"id":"lavalink","name":"Lavalink","description":"O servidor de música dos seus bots, com YouTube, SoundCloud e rádios. Privado: só os projetos da sua conta conectam nele.","type":"bot","language":"java","version":"21","memoryMb":512,"port":null,"variables":[],"database":null,"minimumMemoryMb":512,"minimumPlan":{"id":"block","name":"Block"},"connection":{"port":2333,"passwordVariable":"LAVALINK_SERVER_PASSWORD"}},{"id":"discord-postgres-bot","name":"Bot com PostgreSQL","description":"Um bot de Discord que guarda anotações num PostgreSQL da sua conta, criado junto e já ligado ao projeto.","type":"bot","language":"node","version":"24","memoryMb":256,"port":null,"variables":[{"name":"DISCORD_TOKEN","description":"O token do bot, do Portal de Desenvolvedores do Discord.","isRequired":true,"helpUrl":"https://docs.cubehosting.com.br/hosting/templates#como-pegar-o-token-do-bot"}],"database":{"engine":"postgres","variable":"DATABASE_URL","memoryMb":512},"minimumMemoryMb":null,"minimumPlan":null,"connection":null},{"id":"express-api","name":"API Express","description":"Uma API em Node.js com Express, no ar num endereço .cubehost.dev.","type":"site","language":"node","version":"24","memoryMb":512,"port":8080,"variables":[],"database":null,"minimumMemoryMb":null,"minimumPlan":null,"connection":null}]},"examples":{"Example":{"title":"Example","value":{"templates":[{"id":"discord-js-bot","name":"Bot discord.js","description":"Um bot de Discord em Node.js com o comando /ping, pronto para você criar os seus.","type":"bot","language":"node","version":"24","memoryMb":256,"port":null,"variables":[{"name":"DISCORD_TOKEN","description":"O token do bot, do Portal de Desenvolvedores do Discord.","isRequired":true,"helpUrl":"https://docs.cubehosting.com.br/hosting/templates#como-pegar-o-token-do-bot"}],"database":null,"minimumMemoryMb":null,"minimumPlan":null,"connection":null},{"id":"lavalink","name":"Lavalink","description":"O servidor de música dos seus bots, com YouTube, SoundCloud e rádios. Privado: só os projetos da sua conta conectam nele.","type":"bot","language":"java","version":"21","memoryMb":512,"port":null,"variables":[],"database":null,"minimumMemoryMb":512,"minimumPlan":{"id":"block","name":"Block"},"connection":{"port":2333,"passwordVariable":"LAVALINK_SERVER_PASSWORD"}},{"id":"discord-postgres-bot","name":"Bot com PostgreSQL","description":"Um bot de Discord que guarda anotações num PostgreSQL da sua conta, criado junto e já ligado ao projeto.","type":"bot","language":"node","version":"24","memoryMb":256,"port":null,"variables":[{"name":"DISCORD_TOKEN","description":"O token do bot, do Portal de Desenvolvedores do Discord.","isRequired":true,"helpUrl":"https://docs.cubehosting.com.br/hosting/templates#como-pegar-o-token-do-bot"}],"database":{"engine":"postgres","variable":"DATABASE_URL","memoryMb":512},"minimumMemoryMb":null,"minimumPlan":null,"connection":null},{"id":"express-api","name":"API Express","description":"Uma API em Node.js com Express, no ar num endereço .cubehost.dev.","type":"site","language":"node","version":"24","memoryMb":512,"port":8080,"variables":[],"database":null,"minimumMemoryMb":null,"minimumPlan":null,"connection":null}]}}},"exampleType":"examples"}},"exampleType":"examples"},"b066fda1-5875-4a05-ae4f-aea5615a26ed":{"description":"Erro do nosso lado. Tente de novo em instantes.","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","const":"error","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"code":{"type":"string","description":"Código fixo em inglês. Veja [Códigos de erro](/errors).","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Texto em português para mostrar a uma pessoa.","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"examples":{"internal_error":{"title":"internal_error","summary":"internal_error","value":{"status":"error","code":"internal_error","message":"Erro inesperado. Tente de novo em instantes."}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{},"servers":{"1af5d2f3-cd44-429e-ae4e-169c57d31fa0":{"url":"https://app.cubehosting.com.br/api"}}},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"cube-hosting","siteName":"Cube Hosting","title":"Listar templates - Cube Hosting","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pt-BR":{"href":"/api-reference/templates/list","matchLevel":0}}},"lastModified":"2026-09-29T18:22:20.209Z","originalFileLocation":"api-reference/templates/list.mdx","locale":"pt-BR"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Os templates da Cube: projetos prontos, com o que cada um pede para iniciar.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cube Hosting\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cube-hosting/_x7LgnDh3UPqTXfE/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cube-hosting/_x7LgnDh3UPqTXfE/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cube-hosting/_x7LgnDh3UPqTXfE/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cube-hosting/_x7LgnDh3UPqTXfE/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cube-hosting/_x7LgnDh3UPqTXfE/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cube-hosting/_x7LgnDh3UPqTXfE/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cube-hosting/_x7LgnDh3UPqTXfE/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cube-hosting/_x7LgnDh3UPqTXfE/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cube-hosting/_x7LgnDh3UPqTXfE/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Listar templates - Cube Hosting\">\u003cmeta data-mint-head property=\"og:description\" content=\"Os templates da Cube: projetos prontos, com o que cada um pede para iniciar.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cube Hosting\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cubehosting.com.br/api-reference/templates/list\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cube-hosting.mintlify.site/_mintlify/api/og/v2?division=Templates\u0026amp;title=Listar+templates\u0026amp;description=Os+templates+da+Cube%3A+projetos+prontos%2C+com+o+que+cada+um+pede+para+iniciar.\u0026amp;theme=339d1134fc3da90da0a45d17\u0026amp;signature=b00be10d4ec9c963d956788f4c5ab496f1963bf1b574f4f87a44fc5f144d2918\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Listar templates - Cube Hosting\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Os templates da Cube: projetos prontos, com o que cada um pede para iniciar.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cube-hosting.mintlify.site/_mintlify/api/og/v2?division=Templates\u0026amp;title=Listar+templates\u0026amp;description=Os+templates+da+Cube%3A+projetos+prontos%2C+com+o+que+cada+um+pede+para+iniciar.\u0026amp;theme=339d1134fc3da90da0a45d17\u0026amp;signature=b00be10d4ec9c963d956788f4c5ab496f1963bf1b574f4f87a44fc5f144d2918\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cube-hosting/_x7LgnDh3UPqTXfE/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cube Hosting\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#796CFC\">\u003cmeta data-mint-head name=\"og:locale\" content=\"pt_BR\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cubehosting.com.br/api-reference/templates/list\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/templates/list.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cubehosting.com.br/#organization\",\"name\":\"Cube Hosting\",\"url\":\"https://docs.cubehosting.com.br\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cube-hosting/HtVsOud899EXHxtr/logo/light.png?fit=max\u0026auto=format\u0026n=HtVsOud899EXHxtr\u0026q=85\u0026s=22af9c0c70c3a81644d8798115d3e083\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cubehosting.com.br#website\",\"name\":\"Cube Hosting\",\"url\":\"https://docs.cubehosting.com.br\",\"publisher\":{\"@id\":\"https://docs.cubehosting.com.br/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cubehosting.com.br/api-reference/templates/list#webpage\",\"url\":\"https://docs.cubehosting.com.br/api-reference/templates/list\",\"name\":\"Listar templates\",\"description\":\"Os templates da Cube: projetos prontos, com o que cada um pede para iniciar.\",\"dateModified\":\"2026-09-29T18:22:20.209Z\",\"isPartOf\":{\"@id\":\"https://docs.cubehosting.com.br#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cubehosting.com.br/api-reference/templates/list#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cubehosting.com.br/api-reference/templates/list#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Cube Hosting\",\"item\":\"https://docs.cubehosting.com.br\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Listar templates\",\"item\":\"https://docs.cubehosting.com.br/api-reference/templates/list\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.cubehosting.com.br/api-reference/templates/list#apireference\",\"headline\":\"Listar templates\",\"name\":\"Listar templates\",\"description\":\"Os templates da Cube: projetos prontos, com o que cada um pede para iniciar.\",\"url\":\"https://docs.cubehosting.com.br/api-reference/templates/list\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cubehosting.com.br/api-reference/templates/list#webpage\"},\"dateModified\":\"2026-09-29T18:22:20.209Z\",\"publisher\":{\"@id\":\"https://docs.cubehosting.com.br/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cubehosting.com.br#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cube Hosting\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Cube Hosting\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/templates/list.md","siteName":"Cube Hosting","nav":{"global":{"anchors":[{"anchor":"Painel","icon":"layout-dashboard","href":"https://app.cubehosting.com.br"},{"anchor":"Discord","icon":"message-circle","href":"https://discord.gg/pv6D9tUsDV"},{"anchor":"Site","icon":"globe","href":"https://cubehosting.com.br"}]},"languages":[{"language":"pt-BR","tabs":[{"tab":"Guias","icon":"book-open","pages":[{"title":"Guias","href":""}]},{"tab":"Referência da API","icon":"terminal","groups":[{"group":"Visão geral","pages":[{"title":"Referência da API","sidebarTitle":"Introdução","icon":"terminal","href":"/api-reference/introduction"}]},{"group":"Projetos","pages":[{"title":"Listar projetos","openapi":"GET /projects","href":"/api-reference/projects/list"},{"title":"Ver um projeto","openapi":"GET /projects/{id}","href":"/api-reference/projects/get"},{"title":"Criar um projeto","openapi":"POST /projects","playground":"simple","href":"/api-reference/projects/create"},{"title":"Enviar novo código","openapi":"POST /projects/{id}/code","playground":"simple","href":"/api-reference/projects/upload-code"},{"title":"Mudar as configurações","openapi":"PATCH /projects/{id}","playground":"simple","href":"/api-reference/projects/update"},{"title":"Aplicar as mudanças","openapi":"POST /projects/{id}/apply","playground":"simple","href":"/api-reference/projects/apply"},{"title":"Reinstalar as dependências","openapi":"POST /projects/{id}/reinstall","playground":"simple","href":"/api-reference/projects/reinstall"},{"title":"Excluir um projeto","openapi":"DELETE /projects/{id}","description":"Exclua um projeto. É definitivo.","playground":"simple","href":"/api-reference/projects/delete"}]},{"group":"Templates","pages":[{"title":"Listar templates","openapi":"GET /templates","href":"/api-reference/templates/list"}]},{"group":"Controle","pages":[{"title":"Iniciar um projeto","openapi":"POST /projects/{id}/start","description":"Ligue um projeto. A resposta chega quando ele está de pé.","playground":"simple","href":"/api-reference/projects/start"},{"title":"Parar um projeto","openapi":"POST /projects/{id}/stop","playground":"simple","href":"/api-reference/projects/stop"},{"title":"Reiniciar um projeto","openapi":"POST /projects/{id}/restart","playground":"simple","href":"/api-reference/projects/restart"}]},{"group":"Logs e métricas","pages":[{"title":"Logs do projeto","openapi":"GET /projects/{id}/logs","href":"/api-reference/projects/logs"},{"title":"Linha do tempo de quedas","openapi":"GET /projects/{id}/crashes","href":"/api-reference/projects/crashes"},{"title":"Queda com o log do momento","openapi":"GET /projects/{id}/crashes/{crashId}","href":"/api-reference/projects/crash"},{"title":"Métricas do projeto","openapi":"GET /projects/{id}/metrics","href":"/api-reference/projects/metrics"}]},{"group":"Análise","pages":[{"title":"Análise do site","openapi":"GET /projects/{id}/analytics","href":"/api-reference/projects/analytics"}]},{"group":"Variáveis de ambiente","pages":[{"title":"Listar variáveis","openapi":"GET /projects/{id}/variables","href":"/api-reference/projects/list-variables"},{"title":"Definir variáveis","openapi":"PUT /projects/{id}/variables","playground":"simple","href":"/api-reference/projects/set-variables"},{"title":"Ver a conexão","openapi":"GET /projects/{id}/connection","href":"/api-reference/projects/connection"}]},{"group":"Arquivos","pages":[{"title":"Listar uma pasta","openapi":"GET /projects/{id}/files","playground":"simple","href":"/api-reference/files/list"},{"title":"Ler um arquivo","openapi":"GET /projects/{id}/files/content","playground":"simple","href":"/api-reference/files/read"},{"title":"Escrever um arquivo","openapi":"PUT /projects/{id}/files/content","playground":"simple","href":"/api-reference/files/write"},{"title":"Enviar um arquivo","openapi":"PUT /projects/{id}/files/raw","playground":"simple","href":"/api-reference/files/upload"},{"title":"Criar uma pasta","openapi":"POST /projects/{id}/files/folder","playground":"simple","href":"/api-reference/files/create-folder"},{"title":"Renomear ou mover","openapi":"POST /projects/{id}/files/rename","playground":"simple","href":"/api-reference/files/rename"},{"title":"Apagar um arquivo ou pasta","openapi":"DELETE /projects/{id}/files","playground":"simple","href":"/api-reference/files/delete"},{"title":"Buscar nos arquivos","openapi":"GET /projects/{id}/files/search","playground":"simple","href":"/api-reference/files/search"},{"title":"Pedir o link de um arquivo","openapi":"POST /projects/{id}/files/download","playground":"simple","href":"/api-reference/files/download-link"},{"title":"Baixar um arquivo","openapi":"GET /projects/{id}/files/download","playground":"simple","href":"/api-reference/files/download"},{"title":"Mover vários","openapi":"POST /projects/{id}/files/move","playground":"simple","href":"/api-reference/files/move-batch"},{"title":"Apagar vários","openapi":"POST /projects/{id}/files/delete","playground":"simple","href":"/api-reference/files/delete-batch"},{"title":"Pedir o .zip de uma seleção","openapi":"POST /projects/{id}/files/download-zip","playground":"simple","href":"/api-reference/files/zip-link"},{"title":"Baixar o .zip da seleção","openapi":"GET /projects/{id}/files/download-zip","playground":"simple","href":"/api-reference/files/zip"},{"title":"Comparar com o projeto","openapi":"POST /projects/{id}/files/compare","playground":"simple","href":"/api-reference/files/compare"}]},{"group":"Backups","pages":[{"title":"Listar backups","openapi":"GET /projects/{id}/backups","href":"/api-reference/backups/list"},{"title":"Fazer backup","openapi":"POST /projects/{id}/backups","href":"/api-reference/backups/create"},{"title":"Pedir o link de download","openapi":"POST /projects/{id}/backups/{backupId}/download","href":"/api-reference/backups/download-link"},{"title":"Baixar o backup","openapi":"GET /projects/{id}/backups/{backupId}/download","href":"/api-reference/backups/download"},{"title":"Restaurar um backup","openapi":"POST /projects/{id}/backups/{backupId}/restore","href":"/api-reference/backups/restore"},{"title":"Listar os backups da conta","openapi":"GET /account/backups","href":"/api-reference/backups/list-account"},{"title":"Restaurar como novo","openapi":"POST /account/backups/{backupId}/restore-as-new","href":"/api-reference/backups/restore-as-new"}]},{"group":"Versões dos envios","pages":[{"title":"Histórico de envios","openapi":"GET /projects/{id}/deployments","href":"/api-reference/deployments/list"},{"title":"Pedir o link da versão","openapi":"POST /projects/{id}/deployments/{deploymentId}/download","href":"/api-reference/deployments/download-link"},{"title":"Baixar a versão","openapi":"GET /projects/{id}/deployments/{deploymentId}/download","href":"/api-reference/deployments/download"},{"title":"Voltar para a versão","openapi":"POST /projects/{id}/deployments/{deploymentId}/rollback","href":"/api-reference/deployments/rollback"}]},{"group":"Bancos de dados","pages":[{"title":"Listar bancos de dados","openapi":"GET /databases","href":"/api-reference/databases/list"},{"title":"Ver um banco de dados","openapi":"GET /databases/{id}","href":"/api-reference/databases/get"},{"title":"Criar um banco de dados","openapi":"POST /databases","href":"/api-reference/databases/create"},{"title":"Ver a conexão","openapi":"GET /databases/{id}/credentials","href":"/api-reference/databases/credentials"},{"title":"Iniciar um banco","openapi":"POST /databases/{id}/start","href":"/api-reference/databases/start"},{"title":"Parar um banco","openapi":"POST /databases/{id}/stop","href":"/api-reference/databases/stop"},{"title":"Desligar o acesso externo","openapi":"DELETE /databases/{id}/external-access","href":"/api-reference/databases/external-access-disable"},{"title":"Listar backups do banco","openapi":"GET /databases/{id}/backups","href":"/api-reference/databases/backups"},{"title":"Fazer backup do banco","openapi":"POST /databases/{id}/backups","href":"/api-reference/databases/backup-create"},{"title":"Pedir o link do backup do banco","openapi":"POST /databases/{id}/backups/{backupId}/download","href":"/api-reference/databases/backup-download-link"},{"title":"Baixar o backup do banco","openapi":"GET /databases/{id}/backups/{backupId}/download","href":"/api-reference/databases/backup-download"}]},{"group":"Blob","pages":[{"title":"Listar arquivos do Blob","openapi":"GET /blob/objects","href":"/api-reference/blob/list"},{"title":"Pedir o envio de um arquivo","openapi":"POST /blob/objects","href":"/api-reference/blob/create"},{"title":"Pedir as URLs das partes","openapi":"POST /blob/objects/{id}/parts","href":"/api-reference/blob/parts-create"},{"title":"Ver as partes que chegaram","openapi":"GET /blob/objects/{id}/parts","href":"/api-reference/blob/parts-list"},{"title":"Confirmar o envio","openapi":"POST /blob/objects/{id}/complete","href":"/api-reference/blob/complete"},{"title":"Ver um arquivo do Blob","openapi":"GET /blob/objects/{id}","href":"/api-reference/blob/get"},{"title":"Pedir o link temporário","openapi":"POST /blob/objects/{id}/download-url","href":"/api-reference/blob/download-url"},{"title":"Tornar público ou privado","openapi":"PATCH /blob/objects/{id}","href":"/api-reference/blob/update"},{"title":"Apagar um arquivo do Blob","openapi":"DELETE /blob/objects/{id}","href":"/api-reference/blob/delete"},{"title":"Ver as regras de pasta","openapi":"GET /blob/folder-rules","href":"/api-reference/blob/folder-rules-get"},{"title":"Salvar as regras de pasta","openapi":"PUT /blob/folder-rules","href":"/api-reference/blob/folder-rules-put"}]},{"group":"Domínios","pages":[{"title":"Listar domínios da conta","openapi":"GET /domains","href":"/api-reference/domains/list-account"},{"title":"Listar domínios do site","openapi":"GET /projects/{id}/domains","href":"/api-reference/domains/list"},{"title":"Adicionar domínio","openapi":"POST /projects/{id}/domains","href":"/api-reference/domains/create"},{"title":"Trocar para onde o domínio vai","openapi":"PATCH /projects/{id}/domains/{domainId}","href":"/api-reference/domains/update"},{"title":"Verificar domínio agora","openapi":"POST /projects/{id}/domains/{domainId}/verify","href":"/api-reference/domains/verify"},{"title":"Remover domínio","openapi":"DELETE /projects/{id}/domains/{domainId}","href":"/api-reference/domains/delete"}]},{"group":"Avisos","pages":[{"title":"Ver os avisos","openapi":"GET /projects/{id}/alerts","href":"/api-reference/projects/alerts"}]},{"group":"Conta","pages":[{"title":"Uso do plano","openapi":"GET /account/usage","href":"/api-reference/account/usage"},{"title":"Prévia de código de presente","openapi":"POST /account/gift-codes/preview","href":"/api-reference/account/gift-code-preview"},{"title":"Resgatar código de presente","openapi":"POST /account/gift-codes/redeem","href":"/api-reference/account/gift-code-redeem"},{"title":"Listar planos","openapi":"GET /plans","href":"/api-reference/plans/list"}]}]},{"tab":"Solução de problemas","icon":"life-buoy","pages":[{"title":"Solução de problemas","href":"/status"}]}]}]},"basePath":"","title":"Listar templates - Cube Hosting","buildId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","deploymentId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BgGj2PGS.js","utils-BhNOqRKb.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BAgRNUZo.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CGkb0TPw.js","snippetPresets-ChLkL1a6.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-Ef10Jrbx.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DlVCnjU8.js","shallow-BA55zJxQ.js","getApiPlaygroundDisplay-DR09dKtp.js","CodeSnippet-BZ8J8Kll.js","CodeSnippets-CcguVheG.js","Page-C7x-eUfk.js","getPastedJson-D5UqeqBp.js","icon-DpD0l99C.js","MethodPill-Wg2NXsp_.js","DuplicateIcon-CCSyX8lh.js","createIcon-C4Ukv9HX.js","DynamicMarkdown-RhjEuCHC.js","SectionHeading-DL1MykRq.js","axios-vUo_bRtp.js","Markdown-BwQ4RMdp.js","dist-CiVXVcSh.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","AssistantPageLink-Dic2Jtb2.js"]}