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

Tallyfy’s API lets you fetch any single task by its ID using a GET request and optionally include related data like form fields and process run details through query parameters.

Tasks > List process tasks

Tallyfy’s API lets you retrieve all tasks for a specific process run via a GET request with optional filters for status and deadlines and owners and sorting and pagination along with the ability to include related data like form fields and step details in the response.

Processes > List processes

Tallyfy’s API lets you retrieve a paginated and filterable list of all running process instances in your organization by calling GET on the runs endpoint with optional parameters for status and ownership and tags and sorting and related data inclusion.

Templates > Get template

Tallyfy’s API lets you fetch full details of any process template by its unique ID using a GET request and optionally include related data like steps and tags through query parameters.