Workyard

App · 20 actions

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

Actions

ActionWhat it does
Get organizationGet organization.
Get projectGet project.
Get smart formGet smart form.
Get time cardGet time card.
Get time off requestGet time off request.
List cost codesList cost codes.
List customersList customers.
List employeesList employees.
List leave policiesList leave policies.
List organizationsList organizations.
List project cost codesList project cost codes.
List project tasksList project tasks.
List projectsList projects.
List smart formsList smart forms.
List task activityList task activity.
List tasksList tasks.
List time approversList time approvers.
List time card activityList time card activity.
List time cardsList time cards.
List time off requestsList time off requests.

Get organization

Get organization.

Inputs

Orgorg_idnumberRequired
Org id.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Org projectorg_project_idnumberRequired
Org project id.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Formform_idnumberRequired
Form id.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Time cardtime_card_idnumberRequired
Time card id.
Includeincludetext
Include.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Time off requesttime_off_request_idnumberRequired
Time off request id.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Project worksite IDsproject_worksite_idstext
Project worksite ids.
Project IDproject_idnumber
Project id.
Cost code group IDcost_code_group_idtext
Cost code group id.
Searchsearchtext
Search.
Limitlimitnumber
Limit.
Pagepagenumber
Page.
Sort bysort_bytext
Sort by.
Include projectsinclude_projectstext
Include projects.
Include employeesinclude_employeestext
Include employees.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Limitlimitnumber
Limit.
Pagepagenumber
Page.
Ididtext
Id.
Namenametext
Name.
Sort bysort_bytext
Sort by.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Statusstatustext
Status.
Employeeemployee_idtext
Employee id.
Employee group IDemployee_group_idtext
Employee group id.
Profile IDprofile_idtext
Profile id.
Emailemailtext
Email.
Employee display nameemployee_display_nametext
Employee display name.
Role namerole_nametext
Role name.
Has time card start dt unixhas_time_card_start_dt_unixtext
Has time card start dt unix.
Has assigned tasks display dt unixhas_assigned_tasks_display_dt_unixtext
Has assigned tasks display dt unix.
Has pending profilehas_pending_profiletext
Has pending profile.
Includeincludetext
Include.
Limitlimitnumber
Limit.
Pagepagenumber
Page.
Searchsearchtext
Search.
Sort bysort_bytext
Sort by.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Limitlimitnumber
Limit.
Pagepagenumber
Page.
Sort bysort_bytext
Sort by.
Searchsearchtext
Search.
Is activeis_activetext
Is active.
Is archivedis_archivedtrue/false
Is archived.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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

datalist
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Org projectorg_project_idnumberRequired
Org project id.

Outputs

datalist
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Org projectorg_project_idnumberRequired
Org project id.
Limitlimitnumber
Limit.
Pagepagenumber
Page.
Searchsearchtext
Search.
Display dt unixdisplay_dt_unixtext
Display dt unix.
Statusstatustext
Status.
Start dt unixstart_dt_unixtext
Start dt unix.
Due dt unixdue_dt_unixtext
Due dt unix.
Sort bysort_bytext
Sort by.
Include countsinclude_countstrue/false
Include counts.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Limitlimitnumber
Limit.
Pagepagenumber
Page.
Ididtext
Id.
Namenametext
Name.
Sort bysort_bytext
Sort by.
Has external projectshas_external_projectstrue/false
Has external projects.
Is archivedis_archivedtrue/false
Is archived.
Enforce project permissionsenforce_project_permissionstrue/false
Enforce project permissions.
Include computed totalsinclude_computed_totalstrue/false
Include computed totals.
Include IDentifier sourceinclude_identifier_sourcetrue/false
Include identifier source.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Statusstatustext
Status.
Searchsearchtext
Search.
Has submissionshas_submissionstrue/false
Has submissions.
Submission from unixsubmission_from_unixnumber
Submission from unix.
Submission to unixsubmission_to_unixnumber
Submission to unix.
Limitlimitnumber
Limit.
Pagepagenumber
Page.
Sort bysort_bytext
Sort by.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Tasktask_idnumberRequired
Task id.
Task activity typetask_activity_typetextRequired
Task activity type.
Limitlimitnumber
Limit.
Pagepagenumber
Page.
Sort bysort_bytext
Sort by.
Fa upload statefa_upload_statetext
Fa upload state.
Fa include urlsfa_include_urlstrue/falseRequired
Fa include urls.
Fa url custom expiry secsfa_url_custom_expiry_secsnumber
Fa url custom expiry secs.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Limitlimitnumber
Limit.
Pagepagenumber
Page.
Searchsearchtext
Search.
Search include tagssearch_include_tagstrue/false
Search include tags.
Display dt unixdisplay_dt_unixtext
Display dt unix.
Ididtext
Id.
Statusstatustext
Status.
Start dt unixstart_dt_unixtext
Start dt unix.
Due dt unixdue_dt_unixtext
Due dt unix.
Employee group IDsemployee_group_idstext
Employee group ids.
Employee IDsemployee_idstext
Employee ids.
Tag IDstag_idstext
Tag ids.
Project work site IDsproject_work_site_idstext
Project work site ids.
Customer IDscustomer_idstext
Customer ids.
Project group IDsproject_group_idstext
Project group ids.
Sort bysort_bytext
Sort by.
Include countsinclude_countstrue/false
Include counts.
Unassigned onlyunassigned_onlytrue/false
Unassigned only.
Assigned onlyassigned_onlytrue/false
Assigned only.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Sort bysort_bytext
Sort by.
With time off editwith_time_off_edittext
With time off edit.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Time cardtime_card_idnumberRequired
Time card id.
Include archived projectsinclude_archived_projectstext
Include archived projects.One of: true, false, 1, 0.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Limitlimitnumber
Limit.
Pagepagenumber
Page.
Ididtext
Id.
Employeeemployee_idtext
Employee id.
Time approver IDtime_approver_idtext
Time approver id.
Start timestart_timedate and time
Include time cards starting at or after this time.
End timeend_timedate and time
Include time cards starting before this time.
Statusstatustext
Status.
Alertsalertstext
Alerts.
Sort bysort_bytext
Sort by.
Typetypetext
Type.
Include last locationinclude_last_locationtrue/false
Include last location.
Includeincludetext
Include.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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

Orgorg_idnumberRequired
Org id.
Statusstatustext
Status.One of: pending, approved, rejected, cancelled.
Limitlimitnumber
Limit.
Pagepagenumber
Page.
Sort bysort_bytext
Sort by.
Searchsearchtext
Search.
Employeeemployee_idtext
Employee id.
Employee group IDemployee_group_idtext
Employee group id.
Ididtext
Id.
Range start dt unixrange_start_dt_unixdate and time
Range start dt unix.
Range end dt unixrange_end_dt_unixdate and time
Range end dt unix.
Manager or approver IDmanager_or_approver_idtext
Manager or approver id.

Outputs

dataobject
The response from Workyard.
Example output
{
  "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
      }
    ]
  }
}

On this page