> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/integrations/catalog/toggl-track.md).

# Toggl Track

Start and stop timers, log completed time entries, review time tracked over a date range, and create projects to organize it under.

## Connectors

Choose the connector that matches your authentication method. The options below use the names shown in StackAI.

| Connector   | Authentication |
| ----------- | -------------- |
| Toggl Track | API Token      |

### Toggl Track

Connect to Toggl Track to start and stop timers, log completed time entries, review time tracked over a date range, and create projects to organize it under.

#### Set up in Toggl Track

1. Prepare the Toggl Track account or service that the workflow will access. Grant access to the required resources and operations.
2. **API Token:** Your Toggl Track API token, from your profile page. It authenticates as your whole Toggl Track user, so it grants access to every workspace you belong to. Rotate it any time from the same profile page if it is ever exposed.

#### Set up in StackAI

1. Open **Settings → Connections**, add a connection, and select **Toggl Track**.
2. Enter the credentials and connection details in the fields below.
3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

**Connection fields**

| StackAI field | Required | What to enter                                                                                                                                                                                                                                                                             |
| ------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| API Token     | Yes      | Your Toggl Track API token, from your profile page. It authenticates as your whole Toggl Track user, so it grants access to every workspace you belong to. Rotate it any time from the same profile page if it is ever exposed. [Provider instructions](https://track.toggl.com/profile). |

### Verify the connection

Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.

If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.

## Use an action

1. Add the required **Toggl Track** action to the workflow.
2. Select a connection when the action requests one.
3. Complete the required fields. Use the reference picker when a value comes from another workflow step.
4. Run the workflow and inspect the action’s output. Check the result before using it in a later step.

## Actions

### Start Time Entry

Start a running timer in Toggl Track for what you are working on right now.

#### Inputs

| Field       | Type            | Required | Description                                                                                                                              |
| ----------- | --------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Description | string          | No       | What you are working on. Shows up as the time entry's name in Toggl Track.                                                               |
| Workspace   | select (string) | No       | Which Toggl Track workspace to track this time in. Leave empty to use your default workspace. Options load from the selected connection. |
| Project     | select (string) | No       | Project to bill this time to. Leave empty for time with no project. Options load from the selected connection.                           |
| Task        | select (string) | No       | Task within the project. Tasks are a paid-plan feature in Toggl Track. Options load from the selected connection.                        |
| Tags        | string          | No       | Comma-separated tag names. A tag that does not exist yet is created in the workspace automatically.                                      |
| Billable    | boolean         | No       | Mark this time as billable. Requires a paid Toggl Track plan.                                                                            |
| Start Time  | datetime        | No       | When the timer should count from. Leave empty to start now.                                                                              |

#### Outputs

| Field         | Type    | Description                               |
| ------------- | ------- | ----------------------------------------- |
| Time Entry ID | string  | Id of the time entry that is now running. |
| Description   | string  | The entry's description.                  |
| Workspace ID  | string  | Workspace the entry was created in.       |
| Project ID    | string  | Project the entry is assigned to.         |
| Project Name  | string  | Name of the assigned project.             |
| Start Time    | string  | When the timer started.                   |
| Is Running    | boolean | Whether the timer is currently running.   |
| Tags          | string  | Tag names on the entry.                   |
| Billable      | boolean | Whether the entry is billable.            |

### Stop Time Entry

Stop the timer that is currently running, or stop one specific time entry.

#### Inputs

| Field         | Type   | Required | Description                                                                 |
| ------------- | ------ | -------- | --------------------------------------------------------------------------- |
| Time Entry ID | string | No       | Id of the entry to stop. Leave empty to stop the timer that is running now. |

#### Outputs

| Field              | Type    | Description                               |
| ------------------ | ------- | ----------------------------------------- |
| Stopped            | boolean | Whether a timer was stopped by this call. |
| Time Entry ID      | string  | Id of the stopped entry.                  |
| Description        | string  | The entry's description.                  |
| Start Time         | string  | When the entry started.                   |
| Stop Time          | string  | When the entry stopped.                   |
| Duration (seconds) | integer | How long the entry ran, in seconds.       |
| Workspace ID       | string  | Workspace the entry belongs to.           |
| Project ID         | string  | Project the entry is assigned to.         |
| Project Name       | string  | Name of the assigned project.             |
| Billable           | boolean | Whether the entry is billable.            |
| Tags               | string  | Tag names on the entry.                   |

### Get Running Time Entry

Check what is being tracked right now, including how long it has been running.

#### Inputs

No input fields are required in this catalog entry.

#### Outputs

| Field             | Type    | Description                                      |
| ----------------- | ------- | ------------------------------------------------ |
| Is Running        | boolean | Whether a timer is currently running.            |
| Time Entry ID     | string  | Id of the running entry.                         |
| Description       | string  | What is being tracked.                           |
| Start Time        | string  | When the timer started.                          |
| Elapsed (seconds) | integer | How long the timer has been running, in seconds. |
| Workspace ID      | string  | Workspace the entry belongs to.                  |
| Project ID        | string  | Project the entry is assigned to.                |
| Project Name      | string  | Name of the assigned project.                    |
| Tags              | string  | Tag names on the entry.                          |
| Billable          | boolean | Whether the entry is billable.                   |

### Create Time Entry

Log a block of time that has already finished, with a start time and either an end time or a duration.

#### Inputs

| Field              | Type            | Required | Description                                                                                                                            |
| ------------------ | --------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| Start Time         | datetime        | Yes      | When the work started.                                                                                                                 |
| Duration (minutes) | number          | No       | How long the work took, in minutes. Use this or an end time.                                                                           |
| End Time           | datetime        | No       | When the work finished. Use this or a duration.                                                                                        |
| Description        | string          | No       | What the work was. Shows up as the entry's name in Toggl Track.                                                                        |
| Workspace          | select (string) | No       | Which Toggl Track workspace to log this time in. Leave empty to use your default workspace. Options load from the selected connection. |
| Project            | select (string) | No       | Project to bill this time to. Leave empty for time with no project. Options load from the selected connection.                         |
| Task               | select (string) | No       | Task within the project. Tasks are a paid-plan feature in Toggl Track. Options load from the selected connection.                      |
| Tags               | string          | No       | Comma-separated tag names. A tag that does not exist yet is created in the workspace automatically.                                    |
| Billable           | boolean         | No       | Mark this time as billable. Requires a paid Toggl Track plan.                                                                          |

#### Outputs

| Field              | Type    | Description                            |
| ------------------ | ------- | -------------------------------------- |
| Time Entry ID      | string  | Id of the created entry.               |
| Description        | string  | The entry's description.               |
| Workspace ID       | string  | Workspace the entry was created in.    |
| Project ID         | string  | Project the entry is assigned to.      |
| Project Name       | string  | Name of the assigned project.          |
| Start Time         | string  | When the entry started.                |
| End Time           | string  | When the entry ended.                  |
| Duration (seconds) | integer | How long the entry lasted, in seconds. |
| Tags               | string  | Tag names on the entry.                |
| Billable           | boolean | Whether the entry is billable.         |

### Update Time Entry

Correct an existing time entry: its description, project, times, tags, or billable flag.

#### Inputs

| Field              | Type            | Required | Description                                                                                                            |
| ------------------ | --------------- | -------- | ---------------------------------------------------------------------------------------------------------------------- |
| Time Entry ID      | string          | Yes      | Id of the entry to change.                                                                                             |
| Description        | string          | No       | New description. Set to an empty string to clear it.                                                                   |
| Project            | select (string) | No       | Move the entry to this project. Options load from the selected connection.                                             |
| Start Time         | datetime        | No       | New start time.                                                                                                        |
| End Time           | datetime        | No       | New end time.                                                                                                          |
| Duration (minutes) | number          | No       | New duration in minutes.                                                                                               |
| Tags               | string          | No       | Comma-separated tag names, replacing the entry's current tags. A tag that does not exist yet is created automatically. |
| Billable           | boolean         | No       | Change the billable flag. Leave unset to keep it as it is.                                                             |

#### Outputs

| Field              | Type    | Description                               |
| ------------------ | ------- | ----------------------------------------- |
| Time Entry ID      | string  | Id of the updated entry.                  |
| Description        | string  | The entry's description after the update. |
| Workspace ID       | string  | Workspace the entry belongs to.           |
| Project ID         | string  | Project the entry is assigned to.         |
| Project Name       | string  | Name of the assigned project.             |
| Start Time         | string  | Start time after the update.              |
| End Time           | string  | End time after the update.                |
| Duration (seconds) | integer | Duration after the update, in seconds.    |
| Tags               | string  | Tag names after the update.               |
| Billable           | boolean | Billable flag after the update.           |

### List Time Entries

Review your tracked time over a date range, newest first.

#### Inputs

| Field           | Type    | Required | Description                                                   |
| --------------- | ------- | -------- | ------------------------------------------------------------- |
| Start Date      | date    | No       | Only include entries that started on or after this date.      |
| End Date        | date    | No       | Only include entries that started before this date.           |
| Maximum Entries | integer | No       | How many entries to return at most. Minimum: 1. Maximum: 500. |

#### Outputs

| Field                    | Type          | Description                                                  |
| ------------------------ | ------------- | ------------------------------------------------------------ |
| Time Entries             | object\_array | The matching time entries, newest first.                     |
| Count                    | integer       | How many entries were returned.                              |
| Total Duration (seconds) | integer       | Total tracked seconds across the returned completed entries. |
| Truncated                | boolean       | Whether more entries matched than were returned.             |

### Create Project

Create a project in a Toggl Track workspace so time can be tracked against it.

#### Inputs

| Field        | Type            | Required | Description                                                                                                                     |
| ------------ | --------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------- |
| Project Name | string          | Yes      | Name of the new project.                                                                                                        |
| Workspace    | select (string) | No       | Which workspace to create the project in. Leave empty to use your default workspace. Options load from the selected connection. |
| Client       | select (string) | No       | Client this project belongs to. Leave empty for an internal project. Options load from the selected connection.                 |
| Private      | boolean         | No       | Keep the project visible only to members who are added to it.                                                                   |
| Billable     | boolean         | No       | Track time on this project as billable by default. Requires a paid Toggl Track plan.                                            |
| Start Date   | date            | No       | First day of the project's timeframe.                                                                                           |
| End Date     | date            | No       | Last day of the project's timeframe.                                                                                            |
| Active       | boolean         | No       | Whether the project is active and available for tracking. Turn off to create it archived. Default: true.                        |

#### Outputs

| Field        | Type    | Description                                       |
| ------------ | ------- | ------------------------------------------------- |
| Project ID   | string  | Id of the created project.                        |
| Project Name | string  | Name of the created project.                      |
| Workspace ID | string  | Workspace the project was created in.             |
| Client ID    | string  | Client the project belongs to.                    |
| Client Name  | string  | Name of the client.                               |
| Active       | boolean | Whether the project is active.                    |
| Billable     | boolean | Whether time on the project defaults to billable. |
| Private      | boolean | Whether the project is private.                   |

### List Projects

Browse the projects in a workspace, optionally filtered by name.

#### Inputs

| Field            | Type            | Required | Description                                                                                                                  |
| ---------------- | --------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------- |
| Workspace        | select (string) | No       | Which workspace to list projects from. Leave empty to use your default workspace. Options load from the selected connection. |
| Name Contains    | string          | No       | Only return projects whose name contains this text.                                                                          |
| Status           | select (string) | No       | Whether to list active projects, archived ones, or both. Available values: Active, Inactive, Both. Default: active.          |
| Maximum Projects | integer         | No       | How many projects to return at most. Minimum: 1. Maximum: 200.                                                               |
| Page             | integer         | No       | Which page of results to start from. Leave empty for the first page. Minimum: 1.                                             |

#### Outputs

| Field     | Type          | Description                                                         |
| --------- | ------------- | ------------------------------------------------------------------- |
| Projects  | object\_array | The matching projects.                                              |
| Count     | integer       | How many projects were returned.                                    |
| Next Page | integer       | Page number to request next, empty when there are no more projects. |

## Triggers

A trigger starts a workflow when its configured event occurs. Configure the event and filters before enabling the trigger.

### Time Entry Completed

Runs whenever one of your Toggl Track time entries is finished, so downstream steps can invoice, report, or archive the tracked time.

Optionally limit this to one workspace or project. Leave both blank to watch every workspace the connected account belongs to.

#### Configuration

| Field     | Type            | Required | Description                                                                                                                        |
| --------- | --------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Workspace | select (string) | No       | Only fire for entries in this workspace. Leave empty for every workspace you belong to. Options load from the selected connection. |
| Project   | select (string) | No       | Only fire for entries on this project. Leave empty for every project. Options load from the selected connection.                   |

#### Event inputs

| Field              | Type    | Required | Description                                         |
| ------------------ | ------- | -------- | --------------------------------------------------- |
| Time Entry ID      | string  | Yes      | Id of the completed entry. Default: .               |
| Description        | string  | No       | What was tracked.                                   |
| Workspace ID       | string  | Yes      | Workspace the entry belongs to. Default: .          |
| Project ID         | string  | No       | Project the entry is assigned to.                   |
| Project Name       | string  | No       | Name of the assigned project.                       |
| Start Time         | string  | Yes      | When the entry started. Default: .                  |
| End Time           | string  | Yes      | When the entry ended. Default: .                    |
| Duration (seconds) | integer | Yes      | How long the entry lasted, in seconds. Default: 0.  |
| Tags               | string  | No       | Tag names on the entry.                             |
| Billable           | boolean | No       | Whether the entry is billable.                      |
| Updated At         | string  | Yes      | When Toggl Track last changed the entry. Default: . |

#### Outputs

| Field              | Type    | Description                              |
| ------------------ | ------- | ---------------------------------------- |
| Time Entry ID      | string  | Id of the completed entry.               |
| Description        | string  | What was tracked.                        |
| Workspace ID       | string  | Workspace the entry belongs to.          |
| Project ID         | string  | Project the entry is assigned to.        |
| Project Name       | string  | Name of the assigned project.            |
| Start Time         | string  | When the entry started.                  |
| End Time           | string  | When the entry ended.                    |
| Duration (seconds) | integer | How long the entry lasted, in seconds.   |
| Tags               | string  | Tag names on the entry.                  |
| Billable           | boolean | Whether the entry is billable.           |
| Updated At         | string  | When Toggl Track last changed the entry. |

### Time Entry Started

Runs whenever you start a timer in Toggl Track, so downstream steps can post a status, open a document, or notify a channel.

Optionally limit this to one workspace or project. Leave both blank to watch every workspace the connected account belongs to.

#### Configuration

| Field     | Type            | Required | Description                                                                                                                       |
| --------- | --------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------- |
| Workspace | select (string) | No       | Only fire for timers in this workspace. Leave empty for every workspace you belong to. Options load from the selected connection. |
| Project   | select (string) | No       | Only fire for timers on this project. Leave empty for every project. Options load from the selected connection.                   |

#### Event inputs

| Field         | Type    | Required | Description                                         |
| ------------- | ------- | -------- | --------------------------------------------------- |
| Time Entry ID | string  | Yes      | Id of the running entry. Default: .                 |
| Description   | string  | No       | What is being tracked.                              |
| Workspace ID  | string  | Yes      | Workspace the entry belongs to. Default: .          |
| Project ID    | string  | No       | Project the entry is assigned to.                   |
| Project Name  | string  | No       | Name of the assigned project.                       |
| Start Time    | string  | Yes      | When the timer started. Default: .                  |
| Tags          | string  | No       | Tag names on the entry.                             |
| Billable      | boolean | No       | Whether the entry is billable.                      |
| Updated At    | string  | Yes      | When Toggl Track last changed the entry. Default: . |

#### Outputs

| Field         | Type    | Description                              |
| ------------- | ------- | ---------------------------------------- |
| Time Entry ID | string  | Id of the running entry.                 |
| Description   | string  | What is being tracked.                   |
| Workspace ID  | string  | Workspace the entry belongs to.          |
| Project ID    | string  | Project the entry is assigned to.        |
| Project Name  | string  | Name of the assigned project.            |
| Start Time    | string  | When the timer started.                  |
| Tags          | string  | Tag names on the entry.                  |
| Billable      | boolean | Whether the entry is billable.           |
| Updated At    | string  | When Toggl Track last changed the entry. |

## Important behavior

Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.

The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/integrations/catalog/toggl-track.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
