Skip to main content

Overview

SmartHR tools let you manage employees (crews) in SmartHR: list with pagination, get details, create, update, delete, invite, and remove department assignments.

Key Features

  • SMARTHR_LIST_CREWS
    • Retrieve a list of employees (crews) with optional pagination and employment status filter.
  • SMARTHR_GET_CREW
    • Get detailed information for a specific employee by ID.
  • SMARTHR_CREATE_CREW
    • Create a new employee with name, email, gender, and employment details.
  • SMARTHR_UPDATE_CREW
    • Update an existing employee; only specified fields are updated.
  • SMARTHR_DELETE_CREW
    • Delete an employee by ID (some employees may not be deletable depending on status).
  • SMARTHR_INVITE_CREW
    • Send an invitation to an employee; requires the inviter’s user ID.
  • SMARTHR_DELETE_CREW_DEPARTMENTS
    • Remove all department assignments from an employee.

Authentication

For setup details, see SmartHR Credentials. Each tool requires a subdomain (your SmartHR instance URL) and an access token. Store the access token as a SmartHR credential in workspace secrets and reference it in the tool config together with the subdomain. Note: Keep API credentials secure and do not commit them to public repositories.

Example: List Crews and Get One Employee