Skip to content

Get process

Endpoint

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

Retrieves full details for a single process (run) by its unique ID.

Request

Replace {org_id} with your Organization ID and {run_id} with the run’s ID.

Headers

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

Query parameters (optional)

  • with (string): Comma-separated list of related data to include. Options: checklist, tasks, tags, assets, next_task, permissions, tasks_meta, ko_form_fields, form_fields, stages, folders, member_watchers, guest_watchers. The controller also supports tasks.threads and tasks.form_fields for nested eager loading.
  • form_fields_values (boolean, e.g., true): Include values submitted to form fields across all tasks.

Understanding with=next_task

Including next_task returns the next task needing attention in the process.

What it returns:

  • The first incomplete task, sorted by deadline (earliest deadline first)
  • Incomplete means not yet completed — in-progress tasks are included
  • Auto-skipped tasks are excluded (they’re filtered from the tasks relationship)
  • Returns as a collection wrapper: "next_task": {"data": [...]}
  • Returns an empty collection if all tasks are completed

Fields returned per task: id, increment_id, title, alias, owners (with users, guests, groups arrays), and deadline.

When to use it:

  • Showing which task a user should work on next
  • Automating notifications for upcoming deadlines
  • Building dashboards that display current process state

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';
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 })
.then(response => {
return response.json().then(data => {
if (!response.ok) throw new Error(`Error ${response.status}: ${JSON.stringify(data)}`);
return data;
});
})
.then(data => console.log('Process:', JSON.stringify(data, null, 2)))
.catch(error => console.error('Failed:', error.message));

Response

Returns 200 OK with the process run wrapped in a data object.

{
"data": {
"id": "run_id_abc",
"increment_id": 5015,
"checklist_id": "template_timeline_id",
"checklist_title": "Client Onboarding V3",
"name": "Onboarding - Globex Corp",
"summary": "New client onboarding run.",
"status": "active",
"progress": { },
"whole_progress": { },
"started_by": 1002,
"owner_id": 1002,
"prerun": { },
"prerun_status": "complete",
"starred": false,
"created_at": "2025-05-20T11:00:00Z",
"started_at": "2025-05-20T11:00:00Z",
"last_updated": "2025-05-21T09:30:00Z",
"archived_at": null,
"completed_at": null,
"type": "procedure",
"is_public": false,
"users": [],
"groups": [],
"checklist": { },
"tasks": { "data": [] },
"tags": { "data": [] }
}
}

Key fields: archived_at maps from the internal deleted_at column. started_by maps from the internal user_id. Included relationships like tasks, tags, and checklist only appear when you request them via with.

If the run isn’t found or you don’t have access, you’ll get a 404 or 403 error.


Tasks > Get task

Retrieve full details for a specific task by ID, with optional related data like the process run, form fields, step info, and tags.

Tasks > List process tasks

Retrieve all tasks for a specific process run with optional filters for status, owners, deadlines, and sorting - returning paginated results with task details like title, position, status, and related step information.

Processes > List processes

Retrieve and filter process instances in a Tallyfy organization using a GET API endpoint with query parameters for status, owners, templates, tags, and more - with code examples in 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.