DeskTime connects to a Nagent workspace with an API key. Once it is connected, agents can call 11 DeskTime actions, such as "Create Project with Optional Task", "Get Account Details" and "Get All Company Employees". Nothing is enabled on connect: each action is allowed one at a time, and an action with side effects runs or waits for a person according to the agent's level.
Every operation an agent can call against DeskTime, with input parameters and output schema.
DESKTIME_CREATE_PROJECT_WITH_TASKTool to create a new project with an optional initial task. Use when you need to set up a new DeskTime project programmatically.
Input parameters
Optional initial task name to associate with the project
Name of the project to be created
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
DESKTIME_GET_ACCOUNT_DETAILSRetrieves company account configuration including work schedule and timezone settings. This action fetches company-level information such as company name, work hours (start/end times), work duration, working days configuration, time tracking hours, and timezone. No parameters are required. This is useful for understanding the company's work schedule configuration and timezone settings.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
DESKTIME_GET_ALL_COMPANY_EMPLOYEESTool to list all employees in the company, including their roles and statuses. Use after confirming valid credentials to fetch the organization’s roster.
Input parameters
Target date in "YYYY-MM-DD" format. Defaults to today if omitted.
Time period granularity: "day" or "month". Defaults to "day".
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
DESKTIME_GET_EMPLOYEETool to retrieve information about a single employee including user info, work settings, and tracking data for a specific date. Use when you need detailed information for one employee. Returns data for the currently logged-in user if no employee ID is specified.
Input parameters
Employee ID. If omitted, returns data for the currently logged-in user.
Date in YYYY-MM-DD format to retrieve employee data for. If not provided, returns data for today's date.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
DESKTIME_GET_EMPLOYEE_APPSRetrieves employee tracking data including tracked apps for a specific date. Returns data for the currently logged-in user if no employee ID is specified. Use this action to view detailed application usage and productivity data for an employee.
Input parameters
Employee ID. If omitted, returns data for the current API-key user.
Date in YYYY-MM-DD format. If omitted, returns data for today.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
DESKTIME_GET_EMPLOYEE_PROJECTSRetrieves comprehensive employee project tracking data including project assignments, time tracking metrics, work hours, and productivity statistics for a specific employee and date. Returns detailed information about: - Employee profile (ID, name, email, group) - Time tracking metrics (online time, productive time, efficiency) - Work schedule (work start/end times, timezone) - Active project details (current project and task being worked on) - Projects list (all projects tracked on the specified date with durations) - Employee status indicators (online, arrived, left, late) Use this action when you need to: - View an employee's project assignments and tracking data - Check time spent on specific projects by an employee - Monitor employee productivity and work hours - Retrieve historical project tracking data for a specific date Both parameters are optional - defaults to current API-key user and today's date.
Input parameters
Employee ID. If omitted, returns data for the current API-key user.
Date in YYYY-MM-DD format. If omitted, returns data for today.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
DESKTIME_GET_EMPLOYEE_PROJECTS_AND_APPSRetrieve an employee's basic information and daily tracking statistics from DeskTime. Returns employee profile data, work hours, productivity metrics, attendance status, and currently active project. Use this when you need employee time tracking data for a specific date (defaults to today). Note: For detailed project/app usage breakdowns, use the dedicated Get Employee Projects action.
Input parameters
Employee ID. Optional; if omitted, returns data for the authenticated user
Date in YYYY-MM-DD format. Optional; defaults to today's date if omitted
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
DESKTIME_GET_PROJECTS_LISTTool to retrieve all active projects for the company, including related tasks. Use when you need projects overview after authentication.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
DESKTIME_PING_REQUESTTool to check the API's availability and confirm the service is operational. Use when you need to verify that the DeskTime API is reachable and responsive.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
DESKTIME_START_PROJECT_TASKStarts time tracking for a specified project and optional task in DeskTime. This action begins recording time against the specified project. If a task name is provided, time is also tracked at the task level within that project. Both projects and tasks are created automatically if they don't already exist in the DeskTime account. Use this action when a user wants to: - Begin working on a project and track time - Start a specific task within a project - Switch time tracking to a different project or task Note: Only one project/task can be tracked at a time per user. Starting a new project automatically stops tracking on any previously active project.
Input parameters
Optional task name within the project to track time against. If not provided, time is tracked only at the project level. If provided and doesn't exist, it will be created automatically.
Name of the project to start tracking time for. If the project doesn't exist, it will be created automatically by DeskTime.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
DESKTIME_STOP_PROJECT_TASKTool to stop tracking time for a specified project and optional task. Use when you have finished work and need to record end time.
Input parameters
Optional task name to stop tracking time for
Project name to stop tracking time for
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
Agents can call 11 DeskTime actions on Nagent, including "Create Project with Optional Task", "Get Account Details" and "Get All Company Employees". Create Project with Optional Task: Create a new project with an optional initial task. Each action is listed on this page with its input parameters and its output.
DeskTime connects with an API key, under your workspace's own connection. Nothing is enabled on connect: each action is allowed one at a time and can be scoped to the agents that need it.
Create Project with Optional Task takes 1 required input: project. It also takes 1 optional input: task. It returns data, error and successful.