Skip to content

List templates

Endpoint

GET /organizations/{org_id}/checklists

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

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 apiUrl = `https://go.tallyfy.com/api/organizations/${orgId}/checklists`;
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 => {
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
return response.json();
})
.then(data => {
console.log('Successfully retrieved templates:');
console.log(JSON.stringify(data, null, 2));
})
.catch(error => {
console.error('Error listing templates:', error);
});

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.