Skip to content

Get process

Endpoint

GET /organizations/{org_id}/runs/{run_id}

This endpoint retrieves the full details for a single Tallyfy process instance (run) identified by its unique ID.

Request

Replace {org_id} with your Organization ID and {run_id} with the specific ID of the process run you want to retrieve.

Headers

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

Query parameters (optional)

  • with (string): A comma-separated list to include related data (e.g., checklist, tasks, tags, assets, next_task, tasks.step, tasks.threads, form_fields, ko_form_fields).
  • form_fields_values (boolean, e.g., true): Include the values submitted to form fields.

Understanding with=next_task

When you include next_task in the with parameter, the API returns information about the next task that needs attention in the process.

What does next_task return?

  • The first visible incomplete task ordered by position number
  • Visible means not hidden/auto-skipped by automation rules
  • Incomplete means not yet completed (includes tasks currently in-progress)
  • Ordered by position means task 1, task 2, task 3, etc.
  • Returns null if all tasks in the process are completed

When to use it:

  • Determining which task to display to the user next
  • Automating assignments or notifications for upcoming tasks
  • Building custom dashboards that show current process status
  • Integration logic that needs to know what’s pending

Example response snippet:

{
"data": {
"id": "run123",
"name": "Customer Onboarding",
"next_task": {
"id": "task456",
"title": "Review Application",
"position": 3,
"status": "not-started",
"deadline": "2025-11-25T17:00:00Z"
}
}
}

Code samples

const accessToken = 'YOUR_PERSONAL_ACCESS_TOKEN';
const orgId = 'YOUR_ORGANIZATION_ID';
const runId = 'PROCESS_RUN_ID_TO_GET';
const queryParams = '?with=checklist,tasks,tags,form_fields&form_fields_values=true'; // Example: get related data and field values
const apiUrl = `https://go.tallyfy.com/api/organizations/${orgId}/runs/${runId}${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 get process ${runId}:`, data);
throw new Error(`HTTP error! status: ${response.status}`);
}
return data; // Pass successful data along
});
})
.then(data => {
console.log(`Successfully retrieved process ${runId}:`);
console.log(JSON.stringify(data, null, 2));
})
.catch(error => {
console.error(`Error getting process ${runId}:`, error.message);
});

Response

A successful request returns a 200 OK status code and a JSON object containing a data field with the process run’s details.

{
"data": {
"id": "PROCESS_RUN_ID_TO_GET",
"increment_id": 5015,
"checklist_id": "template_id_abc",
"checklist_title": "Client Onboarding V3",
"name": "Onboarding - Globex Corp",
"summary": "New client onboarding process run.",
"status": "active",
"progress": { ... },
"started_by": 1002,
"owner_id": 1002,
"created_at": "2025-05-20T11:00:00Z",
"last_updated": "2025-05-21T09:30:00Z",
"prerun": { // Kick-off form field values if filled
"kickoff_field_id_1": "Globex Corporation",
"kickoff_field_id_2": "2025-06-01T00:00:00Z"
},
// Included if requested with 'with=checklist'
"checklist": { ... template details ... },
// Included if requested with 'with=tasks'
"tasks": [ { ... task details ... } ],
// Included if requested with 'with=tags'
"tags": [ { ... tag details ... } ]
// ... other run properties ...
}
}

If the run ID is not found or you lack permission, a 404 Not Found or 403 Forbidden error will be returned.


Tasks > Get task

This API endpoint retrieves complete details for a specific Tallyfy task by its unique ID and supports optional query parameters to include related data like process run information and form fields while returning a JSON response containing task properties such as title status owners and deadline.

Tasks > List process tasks

This endpoint retrieves all tasks belonging to a specific process run by providing the organization ID and run ID with optional query parameters for filtering by status owners deadlines and sorting while returning paginated results containing task details like title position status and related step information.

Processes > List processes

This documentation explains how to retrieve and filter process instances within a Tallyfy organization using a GET API endpoint that supports various query parameters for searching by status owners templates tags and other criteria with code examples in multiple programming languages including JavaScript Python Java Go C++ and C#.

Templates > Get template

This endpoint retrieves complete details for a specific process template by its unique ID and supports optional query parameters to include related data like steps tags and form fields in the response.