Skip to content

List templates

List Templates API Endpoint

This endpoint retrieves a list of process templates (known as “Checklists” or “Blueprints” in the API) available within the specified organization.

Endpoint

GET /organizations/{org_id}/checklists

Request

Replace {org_id} with your actual Organization ID.

Headers

  • Authorization: Bearer {your_access_token}
  • Accept: application/json
  • X-Tallyfy-Client: APIClient

Query parameters (optional)

Refer to the GET /organizations/{org}/checklists endpoint in the Swagger specification or API reference for optional query parameters like with, type, q (search), page, per_page, etc., to filter or paginate results.

Code samples

const accessToken = 'YOUR_PERSONAL_ACCESS_TOKEN';
const orgId = 'YOUR_ORGANIZATION_ID';
const queryParams = '?per_page=20&with=owner'; // Example: Get 20 templates per page and include owner details
const apiUrl = `https://go.tallyfy.com/api/organizations/${orgId}/checklists${queryParams}`;
const headers = new Headers();
headers.append('Authorization', `Bearer ${accessToken}`);
headers.append('Accept', 'application/json');
headers.append('X-Tallyfy-Client', 'APIClient');
fetch(apiUrl, {
method: 'GET',
headers: headers
})
.then(response => {
return response.json().then(data => { // Attempt to parse JSON regardless of status
if (!response.ok) {
console.error("Failed to list templates:", data);
throw new Error(`HTTP error! status: ${response.status}`);
}
return data; // Pass successful data along
});
})
.then(data => {
console.log('Successfully retrieved templates:');
console.log(JSON.stringify(data, null, 2));
// Access pagination info via data.meta.pagination if needed
})
.catch(error => {
console.error('Error listing templates:', error.message);
});

Response

A successful request returns a 200 OK status code and a JSON object containing a data array. Each element in the data array represents a template with its details.

{
"data": [
{
"id": "c15bf2be31c3a7fbded5d13fce7aaab9",
"title": "Customer Onboarding Process",
"summary": "Standard process for onboarding new customers.",
"starred": false,
// ... other template properties ...
"created_at": "2023-01-10T10:00:00.000Z",
"last_updated": "2023-05-15T14:30:00.000Z"
},
{
"id": "a987654321abcdefa987654321abcdef",
"title": "Employee Offboarding Checklist",
"summary": "Steps to take when an employee leaves.",
// ... other template properties ...
}
// ... more templates ...
],
"meta": {
"pagination": {
"total": 25,
"count": 10,
"per_page": 10,
"current_page": 1,
"total_pages": 3,
"links": {
"next": "https://go.tallyfy.com/api/organizations/{org_id}/checklists?page=2"
}
}
}
}

If pagination is used, the meta object provides details about the total number of templates, current page, etc., and links to navigate through pages.


Templates > Get template

An API endpoint that retrieves detailed information about a specific process template using a GET request with optional parameters to include related data such as steps tags and folder hierarchies.

Processes > List processes

The GET endpoint retrieves and filters process instances within an organization providing paginated results with detailed run information task status and optional related data through various query parameters.

Templates > Create a template

A comprehensive POST endpoint for creating organization templates with customizable properties including title summary owner permissions and various configuration options for process management.