Toggl Track

Create time entries and list projects in Toggl Track.

Project managementAPI key13 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (13)
  4. create_time_entry
  5. create_client
  6. create_project
  7. create_tag
  8. create_task
  9. find_client
  10. find_project
  11. find_tag
  12. find_task
  13. find_time_entry
  14. find_user
  15. start_time_entry
  16. stop_time_entry
  17. Details

Connect

Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.

  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("toggl_track", action, input) resolves with the provider's answer and rejects when Toggl Track isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "toggl_track"} says whether yours can call it.

Workflow
// workflows/notify.ts: call Toggl Track when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellTogglTrack = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when Toggl Track isn't connected.
  const output = await step.run("Toggl Track", () =>
    step.ctx.integrations.invoke("toggl_track", "create_time_entry", {
      "workspace_id": "<workspace_id>",
      "start": "2026-10-12T09:00:00Z",
      "duration": 1
    }),
  );
  step.ctx.log("Toggl Track answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "toggl_track",
    "piece_action": "create_time_entry",
    "input": {
      "workspace_id": "<workspace_id>",
      "start": "2026-10-12T09:00:00Z",
      "duration": 1
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/toggl_track/create_time_entry" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"workspace_id":"<workspace_id>","start":"2026-10-12T09:00:00Z","duration":1}}'

Actions

create_time_entry

Create Time Entry. Create a new time entry in a workspace.

InputTypeDescription
workspace_idrequiredid (picked from your account)The workspace to operate in.
descriptionoptionallong textDescription
startrequireddate-time (ISO)The start time of the entry in UTC.
durationrequirednumberDuration of the time entry. Use a negative number (e.g., -1) to start a running timer.
stopoptionaldate-time (ISO)The stop time of the entry in UTC. Can be omitted if still running.
task_idoptionalid (picked from your account)The task to select.
project_idoptionalid (picked from your account)The project to associate the time entry with.
tagsoptionalids (picked from your account)Tags to associate with the time entry. You can create new tags by typing them.
billableoptionalbooleanWhether the time entry is marked as billable.
user_idoptionalnumberTime entry creator ID. If omitted, will use requester user ID.

create_client

Create Client. Create a new client in a workspace.

InputTypeDescription
workspace_idrequiredid (picked from your account)The workspace to operate in.
namerequiredtextThe name of the new client.
external_referenceoptionaltextExternal reference to link this client with external systems.
notesoptionallong textNotes for the client.

create_project

Create Project. Create a new project in a workspace.

InputTypeDescription
workspace_idrequiredid (picked from your account)The workspace to operate in.
namerequiredtextThe name of the new project.
client_idoptionalid (picked from your account)The client to associate the project with.
is_privateoptionalbooleanWhether the project is private or not.
billableoptionalbooleanWhether the project is billable. (Premium feature)
templateoptionalbooleanWhether the project is a template. (Premium feature)
external_referenceoptionaltextExternal reference to link this project with external systems.
coloroptionaltextProject color in hex format (e.g. #ff0000).
activeoptionalbooleanWhether the project is active.
auto_estimatesoptionalbooleanWhether estimates are based on task hours. (Premium feature)
estimated_hoursoptionalnumberEstimated hours for the project. (Premium feature)
rateoptionalnumberHourly rate for the project. (Premium feature)
fixed_feeoptionalnumberProject fixed fee. (Premium feature)
start_dateoptionaltextStart date of project timeframe (YYYY-MM-DD).
end_dateoptionaltextEnd date of project timeframe (YYYY-MM-DD).

create_tag

Create Tag. Create a new tag in the workspace.

InputTypeDescription
workspace_idrequiredid (picked from your account)The workspace to operate in.
namerequiredtextThe name of the new tag.

create_task

Create Task. Create a new task under a project.

InputTypeDescription
workspace_idrequiredid (picked from your account)The workspace to operate in.
project_idrequiredid (picked from your account)The project to create the task under.
namerequiredtextThe name of the new task.
estimated_secondsoptionalnumberThe estimated time for the task in seconds.
external_referenceoptionaltextExternal reference to link this task with external systems.
activeoptionalbooleanWhether the task is active. Use false to mark as done.
user_idoptionalnumberCreator ID, if omitted, will use requester user ID.

find_client

Find Client. Find a client by name or status in a workspace.

InputTypeDescription
workspace_idrequiredid (picked from your account)The workspace to operate in.
nameoptionaltextThe name of the client to find (case-insensitive).
statusoptionalone of "active" | "archived" | "both"Filter clients by their status.

find_project

Find Project. Find a project in a workspace by its name.

InputTypeDescription
workspace_idrequiredid (picked from your account)The workspace to operate in.
nameoptionaltextThe name of the project to find.
activeoptionalone of "true" | "false" | "both"Return active, inactive, or both types of projects.
billableoptionalbooleanReturn only billable projects.
only_meoptionalbooleanGet only projects assigned to the current user.
only_templatesoptionalbooleanReturn only template projects.
pageoptionalnumberPage number for pagination.
per_pageoptionalnumberNumber of items per page (max 200).

find_tag

Find Tag. Find a tag by name in a workspace.

InputTypeDescription
workspace_idrequiredid (picked from your account)The workspace to operate in.
searchoptionaltextSearch by tag name.
pageoptionalnumberPage number for pagination.
per_pageoptionalnumberNumber of items per page.

find_task

Find Task. Find a task by name and status.

InputTypeDescription
workspace_idrequiredid (picked from your account)The workspace to operate in.
searchoptionaltextSearch by task name.
project_idoptionalnumberFilter by project ID.
activeoptionalone of "true" | "false" | "both"Filter by active state.
pageoptionalnumberPage number for pagination.
per_pageoptionalnumberNumber of items per page (default 50).
sort_fieldoptionalone of "name" | "created_at"Field used for sorting.
sort_orderoptionalone of "ASC" | "DESC"Sort order.
start_dateoptionaltextSmallest boundary date (YYYY-MM-DD).
end_dateoptionaltextBiggest boundary date (YYYY-MM-DD).

find_time_entry

Find Time Entry. Find time entries by description.

InputTypeDescription
descriptionoptionaltextSearch for time entries containing this text in description.
start_dateoptionaltextGet entries from start_date (YYYY-MM-DD or RFC3339 format).
end_dateoptionaltextGet entries until end_date (YYYY-MM-DD or RFC3339 format).
beforeoptionaltextGet entries before given date (YYYY-MM-DD or RFC3339 format).
sinceoptionalnumberGet entries modified since this UNIX timestamp.
metaoptionalbooleanShould the response contain data for meta entities.
include_sharingoptionalbooleanInclude sharing details in the response.

find_user

Find User. Find a user in a workspace by their name or email.

InputTypeDescription
workspace_idrequiredid (picked from your account)The workspace to operate in.
organization_idrequiredid (picked from your account)The organization to operate in.
search_termoptionaltextThe name or email of the user to find.
activeoptionalbooleanReturn only active users.
pageoptionalnumberPage number for pagination.
per_pageoptionalnumberNumber of items per page.

start_time_entry

Start Time Entry. Start a new time entry (live timer).

InputTypeDescription
workspace_idrequiredid (picked from your account)The workspace to operate in.
descriptionoptionallong textDescription
project_idoptionalid (picked from your account)The project to associate the time entry with.
tagsoptionalids (picked from your account)Tags to associate with the time entry. You can create new tags by typing them.
billableoptionalbooleanWhether the time entry is marked as billable.
task_idoptionalid (picked from your account)The task to select.

stop_time_entry

Stop Time Entry. Stops the currently running time entry.

InputTypeDescription
workspace_idrequiredid (picked from your account)The workspace to operate in.

Details

Id
toggl_track
Category
Project management
Tags
time-tracking, timesheets, productivity
Package
@activepieces/piece-toggl-track@0.1.5
Runs
Through the integration runner