import Triglit from 'triglit';const client = new Triglit({ apiKey: 'My API Key',});const workflow = await client.workflows.create({ name: 'x' });console.log(workflow.id);
{ "id": "wf_abc123def456", "tenantId": "tenant_123", "name": "User Onboarding Workflow", "isActive": true, "createdAt": "2024-01-15T10:30:00.000Z", "updatedAt": "2024-01-15T10:30:00.000Z", "subTenantId": "sub_tenant_456", "description": "Automated workflow for new user onboarding"}
Authorizations
X-API-Key
string
header
required
Chave de API do tenant (publishable key ou secret key)
Headers
X-API-Key
string
required
Chave de API do tenant (publishable key ou secret key)
Query Parameters
subTenantId
string
Sub-tenant identifier
Body
application/json
name
string
required
Required string length: 1 - 255
description
string
Maximum string length: 1000
Response
Workflow created successfully
id
string
required
Unique workflow identifier
Example:
"wf_abc123def456"
tenantId
string
required
Tenant identifier
Example:
"tenant_123"
name
string
required
Workflow name
Example:
"User Onboarding Workflow"
isActive
boolean
required
Whether the workflow is active
Example:
true
createdAt
string
required
Creation timestamp
Example:
"2024-01-15T10:30:00.000Z"
updatedAt
string
required
Last update timestamp
Example:
"2024-01-15T10:30:00.000Z"
subTenantId
string
Sub-tenant identifier
Example:
"sub_tenant_456"
description
string
Workflow description
Example:
"Automated workflow for new user onboarding"
Was this page helpful?
⌘I
JavaScript
import Triglit from 'triglit';const client = new Triglit({ apiKey: 'My API Key',});const workflow = await client.workflows.create({ name: 'x' });console.log(workflow.id);
{ "id": "wf_abc123def456", "tenantId": "tenant_123", "name": "User Onboarding Workflow", "isActive": true, "createdAt": "2024-01-15T10:30:00.000Z", "updatedAt": "2024-01-15T10:30:00.000Z", "subTenantId": "sub_tenant_456", "description": "Automated workflow for new user onboarding"}
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Triglit","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/link-6698b820/S7xnxc7dpr66xedq/logo/light.png?fit=max\u0026auto=format\u0026n=S7xnxc7dpr66xedq\u0026q=85\u0026s=b372f772171ff2d132f4167de7594b3b","dark":"https://mintcdn.com/link-6698b820/S7xnxc7dpr66xedq/logo/dark.png?fit=max\u0026auto=format\u0026n=S7xnxc7dpr66xedq\u0026q=85\u0026s=9028ef28c87a2536969e992847c04daf"},"favicon":"/logo/icon.png","api":{"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml"},"navbar":{"links":[{"label":"Suporte","href":"mailto:suporte@triglit.com"}],"primary":{"type":"button","label":"Dashboard","href":"https://triglit.com/apps"}},"footer":{"socials":{"github":"https://github.com/triglit"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"]},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"link-6698b820","hasAudioNarration":false,"actualSubdomain":"link-6698b820","customDomains":["docs.triglit.com"],"gitSource":{"type":"github","owner":"gepetojj","repo":"triglit","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae941bf8e17361c5bf9beb6:success","clientVersion":"0.0.4402","searchFilterCounts":[{"language":"default","tag":"Referência da API","count":35},{"language":"default","tag":"SDKs","count":18},{"language":"default","tag":"Documentação","count":14},{"language":"default","tag":"Triggers","count":10},{"language":"default","tag":"React SDK","count":9},{"language":"default","tag":"TypeScript SDK","count":8},{"language":"default","tag":"Workflows","count":8},{"language":"default","tag":"Sub-Tenants","count":7},{"language":"default","tag":"Conceitos","count":6},{"language":"default","tag":"Workflow Versions","count":6}]},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":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":"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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"api-reference/workflows/create-a-new-workflow","slug":"/api-reference/workflows/create-a-new-workflow","pageMetadata":{"title":"Create a new workflow","description":"Creates a new workflow for the tenant.","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml post /v1/gateway/workflows","href":"/api-reference/workflows/create-a-new-workflow","autogeneratedByOpenApi":true},"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: \"Creates a new workflow for the tenant.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a new workflow","description":"Creates a new workflow for the tenant.","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml post /v1/gateway/workflows","href":"/api-reference/workflows/create-a-new-workflow","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Creates a new workflow for the tenant.","operationId":"publicworkflows_createWorkflow_v1","parameters":["bf33ead9-2c06-468a-8b67-d355ecc6c275","0a4e5366-c8a3-47f0-9d65-1f424882615b"],"requestBody":"7f65ef30-5b2e-4475-b24e-90c071d379c4","responses":{"201":"01c9637c-a605-4f42-9089-0dbc992169d1","400":"027e8af5-930a-4dea-b639-2193236761be","401":"71961d43-3e74-4036-b808-00757b102f10","403":"ec2c6ea9-326a-4a50-8c5f-afa397480a94"},"security":["76348ab7-db88-467b-be70-25c862ed5dc4"],"summary":"Create a new workflow","tags":["Workflows"],"x-codeSamples":[{"lang":"JavaScript","source":"import Triglit from 'triglit';\n\nconst client = new Triglit({\n apiKey: 'My API Key',\n});\n\nconst workflow = await client.workflows.create({ name: 'x' });\n\nconsole.log(workflow.id);"}],"method":"post","type":"path","servers":[],"path":"/v1/gateway/workflows","baseUrlOptions":[],"title":"Create a new workflow","codeSamples":[{"lang":"JavaScript","source":"import Triglit from 'triglit';\n\nconst client = new Triglit({\n apiKey: 'My API Key',\n});\n\nconst workflow = await client.workflows.create({ name: 'x' });\n\nconsole.log(workflow.id);"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"bf33ead9-2c06-468a-8b67-d355ecc6c275":{"name":"subTenantId","required":false,"in":"query","description":"Sub-tenant identifier","schema":{"type":"string","isRequired":false,"description":"Sub-tenant identifier","uniqueKey":"","typeLabel":"string"}},"0a4e5366-c8a3-47f0-9d65-1f424882615b":{"name":"X-API-Key","in":"header","description":"Chave de API do tenant (publishable key ou secret key)","required":true,"schema":{"type":"string","isRequired":true,"description":"Chave de API do tenant (publishable key ou secret key)","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"isRequired":true,"uniqueKey":"name","typeLabel":"string"},"description":{"type":"string","maxLength":1000,"uniqueKey":"description","typeLabel":"string"}},"required":["name"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"\u003cstring>","description":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"01c9637c-a605-4f42-9089-0dbc992169d1":{"description":"Workflow created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Unique workflow identifier","example":"wf_abc123def456","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"tenantId":{"type":"string","description":"Tenant identifier","example":"tenant_123","isRequired":true,"uniqueKey":"tenantId","typeLabel":"string"},"name":{"type":"string","description":"Workflow name","example":"User Onboarding Workflow","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"isActive":{"type":"boolean","description":"Whether the workflow is active","example":true,"isRequired":true,"uniqueKey":"isActive","typeLabel":"boolean"},"createdAt":{"type":"string","description":"Creation timestamp","example":"2024-01-15T10:30:00.000Z","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string"},"updatedAt":{"type":"string","description":"Last update timestamp","example":"2024-01-15T10:30:00.000Z","isRequired":true,"uniqueKey":"updatedAt","typeLabel":"string"},"subTenantId":{"type":"string","description":"Sub-tenant identifier","example":"sub_tenant_456","uniqueKey":"subTenantId","typeLabel":"string"},"description":{"type":"string","description":"Workflow description","example":"Automated workflow for new user onboarding","uniqueKey":"description","typeLabel":"string"}},"required":["id","tenantId","name","isActive","createdAt","updatedAt"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"wf_abc123def456","tenantId":"tenant_123","name":"User Onboarding Workflow","isActive":true,"createdAt":"2024-01-15T10:30:00.000Z","updatedAt":"2024-01-15T10:30:00.000Z","subTenantId":"sub_tenant_456","description":"Automated workflow for new user onboarding"}}},"exampleType":"generated"}},"exampleType":"generated"},"027e8af5-930a-4dea-b639-2193236761be":{"description":"Invalid workflow data","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"71961d43-3e74-4036-b808-00757b102f10":{"description":"API key não fornecida, inválida ou não encontrada.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"ec2c6ea9-326a-4a50-8c5f-afa397480a94":{"description":"Tipo de chave não permitido para este endpoint.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"76348ab7-db88-467b-be70-25c862ed5dc4":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Chave de API do tenant (publishable key ou secret key)","scopes":[]}}},"servers":{},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Chave de API do tenant (publishable key ou secret key)","scopes":[]},"schema":{"title":"X-API-Key","type":"string","description":"Chave de API do tenant (publishable key ou secret key)","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml"},"subdomain":"link-6698b820","siteName":"Triglit","title":"Create a new workflow - Triglit","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T14:48:10.784Z","originalFileLocation":"api-reference/workflows/create-a-new-workflow.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;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=\"system\"}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=\"Creates a new workflow for the tenant.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Triglit\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/link-6698b820/_ug_oC0qNED_p6IO/_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/link-6698b820/_ug_oC0qNED_p6IO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/link-6698b820/_ug_oC0qNED_p6IO/_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/link-6698b820/_ug_oC0qNED_p6IO/_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/link-6698b820/_ug_oC0qNED_p6IO/_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/link-6698b820/_ug_oC0qNED_p6IO/_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/link-6698b820/_ug_oC0qNED_p6IO/_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/link-6698b820/_ug_oC0qNED_p6IO/_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/link-6698b820/_ug_oC0qNED_p6IO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a new workflow - Triglit\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a new workflow for the tenant.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Triglit\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.triglit.com/api-reference/workflows/create-a-new-workflow\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://link-6698b820.mintlify.site/_mintlify/api/og/v2?division=Workflows\u0026amp;title=Create+a+new+workflow\u0026amp;description=Creates+a+new+workflow+for+the+tenant.\u0026amp;theme=2c7dd60891e746dbba789b5a\u0026amp;signature=6e817d3a3768f5aafd2c8c7f86d2ee2636cbef5070d0e06f1112ef71ae627858\">\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=\"Create a new workflow - Triglit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a new workflow for the tenant.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://link-6698b820.mintlify.site/_mintlify/api/og/v2?division=Workflows\u0026amp;title=Create+a+new+workflow\u0026amp;description=Creates+a+new+workflow+for+the+tenant.\u0026amp;theme=2c7dd60891e746dbba789b5a\u0026amp;signature=6e817d3a3768f5aafd2c8c7f86d2ee2636cbef5070d0e06f1112ef71ae627858\">\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/link-6698b820/_ug_oC0qNED_p6IO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Triglit\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.triglit.com/api-reference/workflows/create-a-new-workflow\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/workflows/create-a-new-workflow.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.triglit.com/#organization\",\"name\":\"Triglit\",\"url\":\"https://docs.triglit.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/link-6698b820/S7xnxc7dpr66xedq/logo/light.png?fit=max\u0026auto=format\u0026n=S7xnxc7dpr66xedq\u0026q=85\u0026s=b372f772171ff2d132f4167de7594b3b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.triglit.com#website\",\"name\":\"Triglit\",\"url\":\"https://docs.triglit.com\",\"publisher\":{\"@id\":\"https://docs.triglit.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.triglit.com/api-reference/workflows/create-a-new-workflow#webpage\",\"url\":\"https://docs.triglit.com/api-reference/workflows/create-a-new-workflow\",\"name\":\"Create a new workflow\",\"description\":\"Creates a new workflow for the tenant.\",\"dateModified\":\"2026-01-07T14:48:10.784Z\",\"isPartOf\":{\"@id\":\"https://docs.triglit.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.triglit.com/api-reference/workflows/create-a-new-workflow#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.triglit.com/api-reference/workflows/create-a-new-workflow#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Workflows\",\"item\":\"https://docs.triglit.com/api-reference/workflows/list-workflows\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a new workflow\",\"item\":\"https://docs.triglit.com/api-reference/workflows/create-a-new-workflow\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.triglit.com/api-reference/workflows/create-a-new-workflow#apireference\",\"headline\":\"Create a new workflow\",\"name\":\"Create a new workflow\",\"description\":\"Creates a new workflow for the tenant.\",\"url\":\"https://docs.triglit.com/api-reference/workflows/create-a-new-workflow\",\"mainEntityOfPage\":{\"@id\":\"https://docs.triglit.com/api-reference/workflows/create-a-new-workflow#webpage\"},\"dateModified\":\"2026-01-07T14:48:10.784Z\",\"publisher\":{\"@id\":\"https://docs.triglit.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.triglit.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Triglit\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Triglit\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/workflows/create-a-new-workflow.md","siteName":"Triglit","nav":{"global":null,"tabs":[{"tab":"Documentação","pages":[{"title":"Documentação","href":""}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdks"}]},{"tab":"Referência da API","groups":[{"group":"Visão Geral","pages":[{"title":"Introdução à API","href":"/api-reference/introduction"},{"title":"Autenticação na API","href":"/api-reference/authentication"},{"title":"Node Registry","href":"/api-reference/node-registry"}]},{"group":"Triggers","pages":[{"title":"List triggers","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml get /v1/gateway/triggers","href":"/api-reference/triggers/list-triggers"},{"title":"Create a new trigger","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml post /v1/gateway/triggers","href":"/api-reference/triggers/create-a-new-trigger"},{"title":"List triggers by workflow version","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml get /v1/gateway/triggers/workflow-version/{workflowVersionId}","href":"/api-reference/triggers/list-triggers-by-workflow-version"},{"title":"Get trigger by ID","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml get /v1/gateway/triggers/{triggerId}","href":"/api-reference/triggers/get-trigger-by-id"},{"title":"Delete trigger","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml delete /v1/gateway/triggers/{triggerId}","href":"/api-reference/triggers/delete-trigger"},{"title":"Update trigger","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml patch /v1/gateway/triggers/{triggerId}","href":"/api-reference/triggers/update-trigger"},{"title":"Trigger webhook triggers by event","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml post /v1/gateway/triggers/webhook/by-event","href":"/api-reference/triggers/trigger-webhook-triggers-by-event"},{"title":"Ingest event intelligently","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml post /v1/gateway/triggers/ingest","href":"/api-reference/triggers/ingest-event-intelligently"},{"title":"Trigger webhook","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml post /v1/gateway/triggers/{triggerId}/webhook","href":"/api-reference/triggers/trigger-webhook"},{"title":"Resume workflow execution","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml post /v1/gateway/triggers/resume","href":"/api-reference/triggers/resume-workflow-execution"}]},{"group":"Sub-Tenants","pages":[{"title":"List registered sub-tenants","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml get /v1/gateway/sub-tenants","href":"/api-reference/sub-tenants/list-registered-sub-tenants"},{"title":"Create a registered sub-tenant","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml post /v1/gateway/sub-tenants","href":"/api-reference/sub-tenants/create-a-registered-sub-tenant"},{"title":"List all sub-tenants (registered and arbitrary)","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml get /v1/gateway/sub-tenants/combined","href":"/api-reference/sub-tenants/list-all-sub-tenants-registered-and-arbitrary"},{"title":"Get registration by sub-tenant ID","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml get /v1/gateway/sub-tenants/by-id/{subTenantId}","href":"/api-reference/sub-tenants/get-registration-by-sub-tenant-id"},{"title":"Get a registered sub-tenant","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml get /v1/gateway/sub-tenants/{id}","href":"/api-reference/sub-tenants/get-a-registered-sub-tenant"},{"title":"Delete a sub-tenant registration","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml delete /v1/gateway/sub-tenants/{id}","href":"/api-reference/sub-tenants/delete-a-sub-tenant-registration"},{"title":"Update a registered sub-tenant","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml patch /v1/gateway/sub-tenants/{id}","href":"/api-reference/sub-tenants/update-a-registered-sub-tenant"}]},{"group":"Workflows","pages":[{"title":"List workflows","description":"Retrieves a paginated list of workflows for the tenant. Accepts both public and secret keys.","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml get /v1/gateway/workflows","href":"/api-reference/workflows/list-workflows"},{"title":"Create a new workflow","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml post /v1/gateway/workflows","href":"/api-reference/workflows/create-a-new-workflow"},{"title":"Get workflow by ID","description":"Retrieves a specific workflow by its ID. Accepts both public and secret keys.","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml get /v1/gateway/workflows/{workflowId}","href":"/api-reference/workflows/get-workflow-by-id"},{"title":"Delete workflow","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml delete /v1/gateway/workflows/{workflowId}","href":"/api-reference/workflows/delete-workflow"},{"title":"Update workflow","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml patch /v1/gateway/workflows/{workflowId}","href":"/api-reference/workflows/update-workflow"},{"title":"Toggle workflow status","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml patch /v1/gateway/workflows/{workflowId}/toggle-status","href":"/api-reference/workflows/toggle-workflow-status"},{"title":"List workflow versions","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml get /v1/gateway/workflows/{workflowId}/versions","href":"/api-reference/workflows/list-workflow-versions"},{"title":"Get workflow version by ID","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml get /v1/gateway/workflows/versions/{versionId}","href":"/api-reference/workflows/get-workflow-version-by-id"}]},{"group":"Workflow Versions","pages":[{"title":"List workflow versions","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml get /v1/gateway/workflow-versions","href":"/api-reference/workflow-versions/list-workflow-versions"},{"title":"Create a new workflow version","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml post /v1/gateway/workflow-versions","href":"/api-reference/workflow-versions/create-a-new-workflow-version"},{"title":"Get workflow version by ID","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml get /v1/gateway/workflow-versions/{versionId}","href":"/api-reference/workflow-versions/get-workflow-version-by-id"},{"title":"Delete workflow version","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml delete /v1/gateway/workflow-versions/{versionId}","href":"/api-reference/workflow-versions/delete-workflow-version"},{"title":"Update workflow version","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml patch /v1/gateway/workflow-versions/{versionId}","href":"/api-reference/workflow-versions/update-workflow-version"},{"title":"Publish workflow version","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml post /v1/gateway/workflow-versions/{versionId}/publish","href":"/api-reference/workflow-versions/publish-workflow-version"}]},{"group":"Custom Nodes","pages":[{"title":"Get node registry","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml get /v1/gateway/custom-nodes/registry","href":"/api-reference/custom-nodes/get-node-registry"}]}]}]},"basePath":"","title":"Create a new workflow - Triglit","deploymentId":"dpl_CwahHhD5zhwmkLtcenbR5oYrGaSo","buildId":"dpl_CwahHhD5zhwmkLtcenbR5oYrGaSo","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-CsklGkqj.js","snippetPresets-DySYPWTE.js","utils-DlqXbn2Z.js","style-to-object-BY3JEAdk.js","utils-CNZi2ki2.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CZ4nNDyI.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Czy01zwI.js","_Uint8Array-BXxbZ64b.js","isObject-FP1Yky1u.js","Page-BLuebTMZ.js","api-description-markdown-1EUAreBL.js","DynamicMarkdown-ytLtrNim.js","CodeSnippet-oNwNNwzI.js","use-playground-group-access-B0PemaTS.js","SectionHeading-D29rJtSs.js","ApiExamples-BKVybNxa.js","usePlaygroundInputsStore-Ca-_uBJe.js","shallow-BJoAzU99.js","isEqual-BWHPCynb.js","CodeSnippets-BCcP6y7P.js","MethodPill-DhX987gr.js","getPastedJson-CWb7Z3a6.js","Check2Icon-DZFNp5XM.js","axios-CsQoIw0U.js","Markdown-vknXxXYq.js","AssistantPageLink-5_lhGmuY.js","dist-fHTI-EIG.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}