Authorizations
Headers
Query Parameters
Example:
Example:
import Triglit from 'triglit';
const client = new Triglit({
apiKey: 'My API Key',
});
// Automatically fetches more pages as needed.
for await (const workflow of client.workflows.list()) {
console.log(workflow.id);
}{
"data": [
{
"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"
}
],
"page": 0,
"lastPage": 2
}Retrieves a paginated list of workflows for the tenant. Accepts both public and secret keys.
import Triglit from 'triglit';
const client = new Triglit({
apiKey: 'My API Key',
});
// Automatically fetches more pages as needed.
for await (const workflow of client.workflows.list()) {
console.log(workflow.id);
}{
"data": [
{
"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"
}
],
"page": 0,
"lastPage": 2
}Was this page helpful?