Authorizations
Headers
Query Parameters
Body
application/json
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",
"subTenantId": "sub_tenant_456",
"name": "User Onboarding Workflow",
"description": "Automated workflow for new user onboarding",
"isActive": true,
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}Creates a new workflow for the tenant.
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",
"subTenantId": "sub_tenant_456",
"name": "User Onboarding Workflow",
"description": "Automated workflow for new user onboarding",
"isActive": true,
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}Was this page helpful?