# Workyard

> Read organizations, employees, projects, tasks, time cards and time off in Workyard.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/workyard

## Actions

### Get organization

Get organization.

**Inputs**

- Org (`org_id`, number, required): Org id.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "about": "example",
    "country_code": "example",
    "id": 1,
    "is_breaks_paid": true,
    "is_split_tc_enabled": true,
    "name": "example",
    "requires_cost_allocation": true,
    "state": "example",
    "subscribe_dt_unix": 1,
    "subscription_status": "example",
    "time_round_minutes": 1,
    "timezone": "example",
    "trial_end_dt_unix": 1
  }
}
```

### Get project

Get project.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Org project (`org_project_id`, number, required): Org project id.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "archived_dt_unix": 1,
    "color_id": 1,
    "cost_code_ids": [
      1
    ],
    "created_at_unix": 1,
    "customer": {
      "color_id": 1,
      "id": 1,
      "name": "example",
      "org_id": 1,
      "projects": [
        {}
      ]
    },
    "geofence_ids": [
      1
    ],
    "id": 1,
    "identifier": "example",
    "is_archived": true,
    "is_auto_create": true,
    "latest_cost_code": {
      "code": "example",
      "cost_code_group": {
        "id": 1,
        "name": "example"
      },
      "employees_str": "example",
      "id": 1,
      "identifier": "example",
      "name": "example",
      "project_ids": [
        1
      ],
      "projects": [
        {}
      ],
      "projects_str": "example"
    },
    "latest_geofence": {
      "enabled": true,
      "geofence_radius_meters": 1,
      "geofence_type": "circle",
      "id": 1,
      "last_active_dt_unix": 1,
      "name": "example",
      "org_id": 1,
      "place": {
        "formatted_place_name": "example",
        "latitude": 1,
        "longitude": 1,
        "place_id": "example"
      },
      "polygon_geofence": "example",
      "type": "company_address"
    },
    "manager_ids": [
      1
    ],
    "name": "example",
    "org_customer_id": 1,
    "org_id": 1
  }
}
```

### Get smart form

Get smart form.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Form (`form_id`, number, required): Form id.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "archived_at": 1,
    "created_at": 1,
    "description": "example",
    "form_version_id": 1,
    "id": 1,
    "notifications": [
      {
        "channel": "email",
        "employees": [
          {}
        ],
        "employees_groups": [
          {}
        ],
        "frequency": "each-submission",
        "id": 1,
        "question": {},
        "recipients": [
          {}
        ],
        "type": "submission"
      }
    ],
    "published_at": 1,
    "status": "draft",
    "structure": "example",
    "submissions_count": 1,
    "title": "example",
    "triggers": [
      {
        "employee_groups": [
          {}
        ],
        "employees": [
          {}
        ],
        "rules": [
          {}
        ],
        "type": "example"
      }
    ],
    "updated_at": 1,
    "updated_by_employee": {
      "display_name": "example",
      "id": 1,
      "identifier": "example",
      "photo_url": "example"
    }
  }
}
```

### Get time card

Get time card.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Time card (`time_card_id`, number, required): Time card id.
- Include (`include`, text): Include.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "alerts": [
      "clock_started_late"
    ],
    "approvers": [
      {
        "approved_at_unix": 1,
        "name": "example",
        "profile_id": 1
      }
    ],
    "breaks": [
      {
        "duration_secs": 1,
        "end_dt_unix": 1,
        "id": 1,
        "is_paid": true,
        "start_dt_unix": 1
      }
    ],
    "clock_in_photo": {
      "download_url": "example",
      "id": 1,
      "no_photo_reason": "example"
    },
    "clock_out_photo": {
      "download_url": "example",
      "id": 1,
      "no_photo_reason": "example"
    },
    "cost_allocation_count": 1,
    "cost_allocations_source": "manual",
    "created_at_unix": 1,
    "created_by_device_id": 1,
    "details": {
      "entry_geofence_data": {
        "entry_dt_unix": 1,
        "geofence_id": 1
      },
      "exit_geofence_data": {
        "exit_dt_unix": 1,
        "geofence_id": 1
      },
      "is_auto_clock_in_limit": true,
      "is_auto_clock_out_limit": true,
      "is_auto_clockin": true,
      "is_auto_hours_limit": true,
      "is_auto_trim_clockout": true,
      "is_clock_in_photo_required": true,
      "is_clock_out_photo_required": true,
      "is_first_break_auto_generated": true,
      "is_restricted_clockin": true,
      "is_second_break_auto_generated": true,
      "is_time_card_waiver_required": true
    },
    "employee_id": 1,
    "end_dt_unix": 1,
    "equipment_item_usages": [
      {
        "cost_code": {},
        "cost_code_id": 1,
        "created_at": 1,
        "duration_secs": 1,
        "employee": {},
        "employee_id": 1,
        "end_dt_unix": 1,
        "equipment_item": {},
        "equipment_item_id": 1,
        "id": 1,
        "project": {},
        "project_id": 1,
        "start_dt_unix": 1,
        "status": "working",
        "time_card_id": 1,
        "timezone": "example",
        "updated_at": 1,
        "work_site": {},
        "work_site_id": 1
      }
    ],
    "id": 1,
    "is_approvable": true,
    "is_sample_data": true,
    "is_split_by_day": true,
    "logs": [
      {
        "actions": [
          {}
        ],
        "created_at_unix": 1,
        "id": 1,
        "ip": "example",
        "local_machine_timezone": "example",
        "reason": "example"
      }
    ],
    "mobile_local_id": "example",
    "note_count": 1,
    "notes": [
      {
        "created_at_unix": 1,
        "created_by": {},
        "description": "example",
        "ext_address_id": "example",
        "file_attachments": [
          {}
        ],
        "geofence": {},
        "geofence_id": 1,
        "id": 1,
        "is_recurring": true,
        "location_reading": {},
        "org_project_id": 1,
        "photos": [
          "example"
        ],
        "project": {},
        "task": {},
        "task_id": 1,
        "time_card": {},
        "time_card_id": 1,
        "updated_at_unix": 1,
        "updated_by": {},
        "work_site": {},
        "work_site_id": 1
      }
    ],
    "organization_id": 1,
    "organization_name": "example",
    "project_time": {
      "cost_allocations": [
        "example"
      ],
      "total_duration_secs": 1,
      "total_paid_break_secs": 1,
      "total_unallocated_duration_secs": 1,
      "total_unpaid_break_secs": 1
    },
    "start_dt_unix": 1,
    "status": "working",
    "time_approver": {
      "assignment_mode": "manual",
      "display_name": "example",
      "email": "example",
      "employee_groups": [
        {}
      ],
      "employee_id": 1,
      "equipment_tagging_requirement": "off",
      "first_name": "example",
      "identifier": "example",
      "is_breaks_paid": true,
      "is_saas_enabled": true,
      "is_time_tracking_enabled": true,
      "last_name": "example",
      "mobile": "example",
      "org_id": 1,
      "photo_url": "example",
      "require_team_members_to_assign_time_to_cost_codes": true,
      "require_team_members_to_assign_time_to_cost_codes_on_clockout": true,
      "require_team_members_to_assign_time_to_projects": true,
      "requires_cost_allocation": true,
      "title": "example"
    },
    "time_summary": {
      "double_time_secs": 1,
      "duration_secs": 1,
      "equipment_secs": 1,
      "over_time_secs": 1,
      "paid_break_secs": 1,
      "regular_secs": 1,
      "unpaid_break_secs": 1
    },
    "timezone": "example",
    "tracking_session_id": "example",
    "type": "manual",
    "update_warning": "example",
    "updated_at_unix": 1,
    "work_form_submissions": [
      {
        "submission_id": 1,
        "type": "example",
        "unexpected_answers_count": "example"
      }
    ],
    "worker": {
      "assignment_mode": "manual",
      "display_name": "example",
      "email": "example",
      "employee_groups": [
        {}
      ],
      "employee_id": 1,
      "equipment_tagging_requirement": "off",
      "first_name": "example",
      "identifier": "example",
      "is_breaks_paid": true,
      "is_my_worker": true,
      "is_saas_enabled": true,
      "is_time_approver_for_worker": true,
      "is_time_tracking_enabled": true,
      "last_clocked_out_dt_unix": 1,
      "last_clocked_out_timezone ": "example",
      "last_name": "example",
      "mobile": "example",
      "org_id": 1,
      "photo_url": "example",
      "require_team_members_to_assign_time_to_cost_codes": true,
      "require_team_members_to_assign_time_to_cost_codes_on_clockout": true,
      "require_team_members_to_assign_time_to_projects": true,
      "requires_cost_allocation": true,
      "title": "example"
    },
    "worker_rule_group_settings": {
      "requires_time_card_sign_off": true
    }
  }
}
```

### Get time off request

Get time off request.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Time off request (`time_off_request_id`, number, required): Time off request id.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "approved_by": {
      "display_name": "example",
      "email": "example",
      "employee_id": 1,
      "first_name": "example",
      "identifier": "example",
      "last_name": "example",
      "org_id": 1,
      "photo_url": "example",
      "title": "example"
    },
    "approver": {
      "display_name": "example",
      "email": "example",
      "employee_id": 1,
      "first_name": "example",
      "identifier": "example",
      "last_name": "example",
      "org_id": 1,
      "photo_url": "example",
      "title": "example"
    },
    "created_at_unix": 1,
    "created_by": {
      "display_name": "example",
      "email": "example",
      "employee_id": 1,
      "first_name": "example",
      "identifier": "example",
      "last_name": "example",
      "org_id": 1,
      "photo_url": "example",
      "title": "example"
    },
    "dates": [
      {
        "duration": 1,
        "id": 1,
        "leave_dt_unix": 1,
        "leave_policy": {}
      }
    ],
    "duration": 1,
    "employee": {
      "display_name": "example",
      "email": "example",
      "employee_id": 1,
      "first_name": "example",
      "identifier": "example",
      "last_name": "example",
      "org_id": 1,
      "photo_url": "example",
      "title": "example"
    },
    "end_dt_unix": 1,
    "id": 1,
    "note": {
      "created_at_unix": 1,
      "created_by": {
        "display_name": "example",
        "email": "example",
        "employee_id": 1,
        "first_name": "example",
        "identifier": "example",
        "last_name": "example",
        "org_id": 1,
        "photo_url": "example",
        "title": "example"
      },
      "id": 1,
      "note": "example",
      "updated_at_unix": 1
    },
    "notes": [
      {
        "created_at_unix": 1,
        "created_by": {},
        "id": 1,
        "note": "example",
        "updated_at_unix": 1
      }
    ],
    "org_id": 1,
    "reason": {
      "created_at_unix": 1,
      "created_by": {
        "display_name": "example",
        "email": "example",
        "employee_id": 1,
        "first_name": "example",
        "identifier": "example",
        "last_name": "example",
        "org_id": 1,
        "photo_url": "example",
        "title": "example"
      },
      "id": 1,
      "note": "example",
      "updated_at_unix": 1
    },
    "start_dt_unix": 1,
    "status": "example",
    "updated_at_unix": 1
  }
}
```

### List cost codes

List cost codes.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Project worksite IDs (`project_worksite_ids`, text): Project worksite ids.
- Project ID (`project_id`, number): Project id.
- Cost code group ID (`cost_code_group_id`, text): Cost code group id.
- Search (`search`, text): Search.
- Limit (`limit`, number): Limit.
- Page (`page`, number): Page.
- Sort by (`sort_by`, text): Sort by.
- Include projects (`include_projects`, text): Include projects.
- Include employees (`include_employees`, text): Include employees.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "code": "example",
        "cost_code_group": {},
        "employees_str": "example",
        "id": 1,
        "identifier": "example",
        "name": "example",
        "project_ids": [
          1
        ],
        "projects": [
          {}
        ],
        "projects_str": "example"
      }
    ],
    "meta": {
      "current_page": 1,
      "from": 1,
      "last_page": 1,
      "per_page": 1,
      "to": 1,
      "total": 1
    }
  }
}
```

### List customers

List customers.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Limit (`limit`, number): Limit.
- Page (`page`, number): Page.
- Id (`id`, text): Id.
- Name (`name`, text): Name.
- Sort by (`sort_by`, text): Sort by.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "color_id": 1,
        "id": 1,
        "name": "example",
        "org_id": 1,
        "projects": [
          {}
        ]
      }
    ],
    "meta": {
      "current_page": 1,
      "from": 1,
      "last_page": 1,
      "per_page": 1,
      "to": 1,
      "total": 1
    }
  }
}
```

### List employees

List employees.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Status (`status`, text): Status.
- Employee (`employee_id`, text): Employee id.
- Employee group ID (`employee_group_id`, text): Employee group id.
- Profile ID (`profile_id`, text): Profile id.
- Email (`email`, text): Email.
- Employee display name (`employee_display_name`, text): Employee display name.
- Role name (`role_name`, text): Role name.
- Has time card start dt unix (`has_time_card_start_dt_unix`, text): Has time card start dt unix.
- Has assigned tasks display dt unix (`has_assigned_tasks_display_dt_unix`, text): Has assigned tasks display dt unix.
- Has pending profile (`has_pending_profile`, text): Has pending profile.
- Include (`include`, text): Include.
- Limit (`limit`, number): Limit.
- Page (`page`, number): Page.
- Search (`search`, text): Search.
- Sort by (`sort_by`, text): Sort by.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "assignment_mode": "manual",
        "display_name": "example",
        "email": "example",
        "employee_groups": [
          {}
        ],
        "employee_id": 1,
        "equipment_tagging_requirement": "off",
        "first_name": "example",
        "identifier": "example",
        "is_breaks_paid": true,
        "is_saas_enabled": true,
        "is_time_tracking_enabled": true,
        "last_name": "example",
        "mobile": "example",
        "org_id": 1,
        "photo_url": "example",
        "require_team_members_to_assign_time_to_cost_codes": true,
        "require_team_members_to_assign_time_to_cost_codes_on_clockout": true,
        "require_team_members_to_assign_time_to_projects": true,
        "requires_cost_allocation": true,
        "title": "example"
      }
    ],
    "meta": {
      "current_page": 1,
      "from": 1,
      "last_page": 1,
      "per_page": 1,
      "to": 1,
      "total": 1
    }
  }
}
```

### List leave policies

List leave policies.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Limit (`limit`, number): Limit.
- Page (`page`, number): Page.
- Sort by (`sort_by`, text): Sort by.
- Search (`search`, text): Search.
- Is active (`is_active`, text): Is active.
- Is archived (`is_archived`, true/false): Is archived.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "applies_to_all_employees": true,
        "code": "example",
        "created_at_unix": 1,
        "employee_groups": [
          {}
        ],
        "employees": [
          {}
        ],
        "id": 1,
        "is_active": true,
        "is_archived": true,
        "name": "example",
        "type": "example",
        "updated_at_unix": 1
      }
    ]
  }
}
```

### List organizations

List organizations.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Workyard.

**Example output**

```json
{
  "data": [
    {
      "about": "example",
      "country_code": "example",
      "id": 1,
      "is_breaks_paid": true,
      "is_split_tc_enabled": true,
      "name": "example",
      "requires_cost_allocation": true,
      "state": "example",
      "subscribe_dt_unix": 1,
      "subscription_status": "example",
      "time_round_minutes": 1,
      "timezone": "example",
      "trial_end_dt_unix": 1
    }
  ]
}
```

### List project cost codes

List project cost codes.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Org project (`org_project_id`, number, required): Org project id.

**Outputs**

- `data` (list): The response from Workyard.

**Example output**

```json
{
  "data": [
    {
      "code": "example",
      "cost_code_group": {
        "id": 1,
        "name": "example"
      },
      "employees_str": "example",
      "id": 1,
      "identifier": "example",
      "name": "example",
      "project_ids": [
        1
      ],
      "projects": [
        {}
      ],
      "projects_str": "example"
    }
  ]
}
```

### List project tasks

List project tasks.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Org project (`org_project_id`, number, required): Org project id.
- Limit (`limit`, number): Limit.
- Page (`page`, number): Page.
- Search (`search`, text): Search.
- Display dt unix (`display_dt_unix`, text): Display dt unix.
- Status (`status`, text): Status.
- Start dt unix (`start_dt_unix`, text): Start dt unix.
- Due dt unix (`due_dt_unix`, text): Due dt unix.
- Sort by (`sort_by`, text): Sort by.
- Include counts (`include_counts`, true/false): Include counts.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "assignees": [
          {}
        ],
        "checklist_item_status_counts": {},
        "checklist_items_count": 1,
        "cost_code": {},
        "created_at_unix": 1,
        "created_by": {},
        "due_date": "example",
        "due_dt_unix": 1,
        "geofence": {},
        "has_due_time": true,
        "has_start_time": true,
        "id": 1,
        "is_all_day": true,
        "notes_count": 1,
        "org_id": 1,
        "org_project": {},
        "project_worksite_id": 1,
        "recurrence": "example",
        "start_date": "example",
        "start_dt_unix": 1,
        "status": "incomplete",
        "tags": [
          {}
        ],
        "timezone": "example",
        "title": "example",
        "watchers": [
          {}
        ],
        "work_forms": [
          {}
        ]
      }
    ],
    "meta": {
      "current_page": 1,
      "from": 1,
      "last_page": 1,
      "per_page": 1,
      "to": 1,
      "total": 1
    }
  }
}
```

### List projects

List projects.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Limit (`limit`, number): Limit.
- Page (`page`, number): Page.
- Id (`id`, text): Id.
- Name (`name`, text): Name.
- Sort by (`sort_by`, text): Sort by.
- Has external projects (`has_external_projects`, true/false): Has external projects.
- Is archived (`is_archived`, true/false): Is archived.
- Enforce project permissions (`enforce_project_permissions`, true/false): Enforce project permissions.
- Include computed totals (`include_computed_totals`, true/false): Include computed totals.
- Include IDentifier source (`include_identifier_source`, true/false): Include identifier source.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "archived_dt_unix": 1,
        "assigned_employees": [
          {}
        ],
        "color_id": 1,
        "cost_code_ids": [
          1
        ],
        "cost_codes": [
          {}
        ],
        "created_at_unix": 1,
        "created_by": {},
        "customer": {},
        "geofence_ids": [
          1
        ],
        "geofences": [
          {}
        ],
        "id": 1,
        "identifier": "example",
        "identifier_source": "ACUMATICA",
        "is_archived": true,
        "is_auto_create": true,
        "latest_activity_dt_unix": 1,
        "manager_ids": [
          1
        ],
        "managers": [
          {}
        ],
        "name": "example",
        "notes_count": 1,
        "org_customer_id": 1,
        "org_id": 1,
        "project_groups": [
          {}
        ],
        "tasks_count": 1,
        "total_mileage_assigned": 1,
        "total_mileage_assigned_meters": 1,
        "total_pay_allocated": 1,
        "total_time_allocated_secs": 1,
        "total_travel_duration_secs": 1
      }
    ],
    "meta": {
      "current_page": 1,
      "from": 1,
      "last_page": 1,
      "per_page": 1,
      "summary": {
        "total_pay_allocated": 1,
        "total_time_allocated_secs": 1
      },
      "to": 1,
      "total": 1
    }
  }
}
```

### List smart forms

List smart forms.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Status (`status`, text): Status.
- Search (`search`, text): Search.
- Has submissions (`has_submissions`, true/false): Has submissions.
- Submission from unix (`submission_from_unix`, number): Submission from unix.
- Submission to unix (`submission_to_unix`, number): Submission to unix.
- Limit (`limit`, number): Limit.
- Page (`page`, number): Page.
- Sort by (`sort_by`, text): Sort by.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "count_by_status": [
      {
        "count": 1,
        "status": "example"
      }
    ],
    "data": [
      {
        "archived_at": 1,
        "created_at": 1,
        "description": "example",
        "form_version_id": 1,
        "id": 1,
        "latest_submission_date": 1,
        "latest_submission_employee_name": "example",
        "published_at": 1,
        "status": "draft",
        "structure": "example",
        "submissions_count": 1,
        "title": "example",
        "triggers": [
          {}
        ],
        "updated_at": 1,
        "updated_by_employee": {}
      }
    ],
    "links": {
      "first": "example",
      "last": "example",
      "next": "example",
      "prev": "example"
    },
    "meta": {
      "current_page": 1,
      "from": 1,
      "last_page": 1,
      "per_page": 1,
      "to": 1,
      "total": 1
    }
  }
}
```

### List task activity

List task activity.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Task (`task_id`, number, required): Task id.
- Task activity type (`task_activity_type`, text, required): Task activity type.
- Limit (`limit`, number): Limit.
- Page (`page`, number): Page.
- Sort by (`sort_by`, text): Sort by.
- Fa upload state (`fa_upload_state`, text): Fa upload state.
- Fa include urls (`fa_include_urls`, true/false, required): Fa include urls.
- Fa url custom expiry secs (`fa_url_custom_expiry_secs`, number): Fa url custom expiry secs.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at_unix": 1,
        "created_by": {},
        "description": "example",
        "ext_address_id": "example",
        "file_attachments": [
          {}
        ],
        "geofence": {},
        "geofence_id": 1,
        "id": 1,
        "is_recurring": true,
        "location_reading": {},
        "org_project_id": 1,
        "photos": [
          "example"
        ],
        "project": {},
        "task": {},
        "task_activity_type": "log",
        "task_id": 1,
        "time_card": {},
        "time_card_id": 1,
        "updated_at_unix": 1,
        "updated_by": {},
        "work_site": {},
        "work_site_id": 1
      }
    ],
    "meta": {
      "current_page": 1,
      "from": 1,
      "last_page": 1,
      "per_page": 1,
      "to": 1,
      "total": 1
    }
  }
}
```

### List tasks

List tasks.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Limit (`limit`, number): Limit.
- Page (`page`, number): Page.
- Search (`search`, text): Search.
- Search include tags (`search_include_tags`, true/false): Search include tags.
- Display dt unix (`display_dt_unix`, text): Display dt unix.
- Id (`id`, text): Id.
- Status (`status`, text): Status.
- Start dt unix (`start_dt_unix`, text): Start dt unix.
- Due dt unix (`due_dt_unix`, text): Due dt unix.
- Employee group IDs (`employee_group_ids`, text): Employee group ids.
- Employee IDs (`employee_ids`, text): Employee ids.
- Tag IDs (`tag_ids`, text): Tag ids.
- Project work site IDs (`project_work_site_ids`, text): Project work site ids.
- Customer IDs (`customer_ids`, text): Customer ids.
- Project group IDs (`project_group_ids`, text): Project group ids.
- Sort by (`sort_by`, text): Sort by.
- Include counts (`include_counts`, true/false): Include counts.
- Unassigned only (`unassigned_only`, true/false): Unassigned only.
- Assigned only (`assigned_only`, true/false): Assigned only.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "assignees": [
          {}
        ],
        "checklist_item_status_counts": {},
        "checklist_items_count": 1,
        "cost_code": {},
        "created_at_unix": 1,
        "created_by": {},
        "due_date": "example",
        "due_dt_unix": 1,
        "geofence": {},
        "has_due_time": true,
        "has_start_time": true,
        "id": 1,
        "is_all_day": true,
        "notes_count": 1,
        "org_id": 1,
        "org_project": {},
        "project_worksite_id": 1,
        "recurrence": "example",
        "start_date": "example",
        "start_dt_unix": 1,
        "status": "incomplete",
        "tags": [
          {}
        ],
        "timezone": "example",
        "title": "example",
        "watchers": [
          {}
        ],
        "work_forms": [
          {}
        ]
      }
    ],
    "meta": {
      "current_page": 1,
      "from": 1,
      "last_page": 1,
      "per_page": 1,
      "to": 1,
      "total": 1
    }
  }
}
```

### List time approvers

List time approvers.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Sort by (`sort_by`, text): Sort by.
- With time off edit (`with_time_off_edit`, text): With time off edit.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "assignment_mode": "manual",
        "display_name": "example",
        "email": "example",
        "employee_groups": [
          {}
        ],
        "employee_id": 1,
        "equipment_tagging_requirement": "off",
        "first_name": "example",
        "identifier": "example",
        "is_breaks_paid": true,
        "is_saas_enabled": true,
        "is_time_tracking_enabled": true,
        "last_name": "example",
        "mobile": "example",
        "org_id": 1,
        "photo_url": "example",
        "require_team_members_to_assign_time_to_cost_codes": true,
        "require_team_members_to_assign_time_to_cost_codes_on_clockout": true,
        "require_team_members_to_assign_time_to_projects": true,
        "requires_cost_allocation": true,
        "title": "example"
      }
    ]
  }
}
```

### List time card activity

List time card activity.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Time card (`time_card_id`, number, required): Time card id.
- Include archived projects (`include_archived_projects`, text): Include archived projects. One of: `true`, `false`, `1`, `0`.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "current_signal_status": "example",
    "first_location_reading": {
      "formatted_place_name": "example",
      "geofence_id": 1,
      "geofence_radius_meters": 1,
      "id": 1,
      "lat": 1,
      "location_provider_id": "example",
      "long": 1,
      "org_projects": [
        {}
      ],
      "polygon_geofence": "example",
      "work_site_id": 1
    },
    "is_working": true,
    "last_battery_percentage": 1,
    "last_signal_seconds_ago": 1,
    "segments": [
      {
        "activity_type": "no_signal",
        "distance_meters": 1,
        "end_dt_unix": 1,
        "id": 1,
        "location_reading": {},
        "merged_no_signal_segments": [
          {}
        ],
        "polyline": "example",
        "start_dt_unix": 1,
        "time_card_id": 1
      }
    ],
    "session_start_dt_unix": 1,
    "timezone": "example",
    "total_no_signal_secs": 1
  }
}
```

### List time cards

List time cards.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Limit (`limit`, number): Limit.
- Page (`page`, number): Page.
- Id (`id`, text): Id.
- Employee (`employee_id`, text): Employee id.
- Time approver ID (`time_approver_id`, text): Time approver id.
- Start time (`start_time`, date and time): Include time cards starting at or after this time.
- End time (`end_time`, date and time): Include time cards starting before this time.
- Status (`status`, text): Status.
- Alerts (`alerts`, text): Alerts.
- Sort by (`sort_by`, text): Sort by.
- Type (`type`, text): Type.
- Include last location (`include_last_location`, true/false): Include last location.
- Include (`include`, text): Include.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "alerts": [
          "clock_started_late"
        ],
        "breaks": [
          {}
        ],
        "clock_in_photo": {},
        "clock_out_photo": {},
        "cost_allocations": [
          {}
        ],
        "cost_allocations_source": "manual",
        "created_at_unix": 1,
        "created_by_device_id": "example",
        "details": {},
        "employee_id": 1,
        "end_dt_unix": 1,
        "equipment_item_usages": [
          {}
        ],
        "id": 1,
        "is_map_hidden": true,
        "is_sample_data": true,
        "last_location": {},
        "logs": [
          {}
        ],
        "mobile_local_id": "example",
        "notes": [
          {}
        ],
        "organization_id": 1,
        "organization_name": "example",
        "session_start_dt_unix": 1,
        "start_dt_unix": 1,
        "status": "working",
        "time_approver": {},
        "time_approver_id": 1,
        "time_summary": {},
        "time_summary_v2": {},
        "timezone": "example",
        "tracking_session_id": "example",
        "type": "manual",
        "update_warning": "example",
        "updated_at_unix": 1,
        "work_form_submissions": [
          {}
        ],
        "worker": {}
      }
    ],
    "meta": {
      "current_page": 1,
      "from": 1,
      "last_page": 1,
      "per_page": 1,
      "to": 1,
      "total": 1
    },
    "should_show_payroll_warning": true,
    "time_summary": {
      "double_time": 1,
      "duration": 1,
      "over_time": 1,
      "paid_break_time": 1,
      "regular": 1
    }
  }
}
```

### List time off requests

List time off requests.

**Inputs**

- Org (`org_id`, number, required): Org id.
- Status (`status`, text): Status. One of: `pending`, `approved`, `rejected`, `cancelled`.
- Limit (`limit`, number): Limit.
- Page (`page`, number): Page.
- Sort by (`sort_by`, text): Sort by.
- Search (`search`, text): Search.
- Employee (`employee_id`, text): Employee id.
- Employee group ID (`employee_group_id`, text): Employee group id.
- Id (`id`, text): Id.
- Range start dt unix (`range_start_dt_unix`, date and time): Range start dt unix.
- Range end dt unix (`range_end_dt_unix`, date and time): Range end dt unix.
- Manager or approver ID (`manager_or_approver_id`, text): Manager or approver id.

**Outputs**

- `data` (object): The response from Workyard.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "approved_by": {},
        "approver": {},
        "created_at_unix": 1,
        "created_by": {},
        "dates": [
          {}
        ],
        "duration": 1,
        "employee": {},
        "end_dt_unix": 1,
        "id": 1,
        "note": {},
        "notes": [
          {}
        ],
        "org_id": 1,
        "reason": {},
        "start_dt_unix": 1,
        "status": "example",
        "updated_at_unix": 1
      }
    ]
  }
}
```
