# Toggl (v1)

Information note **Toggl is supported by the Singer community**   
This integration is powered by [Singer's](https://www.singer.io/) Toggl tap. For support, [visit the GitHub repo](https://github.com/singer-io/tap-toggl) or [join the Singer Slack](https://singer-slackin.herokuapp.com/).

## Toggl integration summary

Stitch’s Toggl integration replicates data using the [Toggl API v8](https://github.com/toggl/toggl_api_docs/blob/master/toggl_api.md). Refer to the [Schema](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#schema) section for a list of objects available for replication.

## Toggl feature snapshot

A high-level look at Stitch's Toggl (v1) integration, including release status, useful links, and the features supported in Stitch.

| **STITCH** |  |  |  |
| --- | --- | --- | --- |
| **[Release status](https://help.qlik.com/en-US/stitch/integrations/identify-an-integration-version)** | Released on February 13, 2019 | **Supported by**<br><br>the Info icon<br><br>Indicates if the integration is supported by Stitch or the Singer community. | [Singer Community](https://www.singer.io/) |
| **Stitch plan**<br><br>the Info icon<br><br>The type of Stitch plan required to use the integration. | Standard | **[API availability](https://help.qlik.com/en-US/stitch/developers/stitch-connect/guides/source-destination-reference)**<br><br>the Info icon<br><br>Indicates if the integration is available as a source in Stitch Connect. | the Success icon<br><br>This version of the integration is available via the API.<br><br><br>Available |
| **Singer GitHub repository** | [singer-io/tap-toggl](https://github.com/singer-io/tap-toggl) |  |  |
| **REPLICATION SETTINGS** |  |  |  |
| **[Anchor Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/anchor-scheduling)**<br><br>the Info icon<br><br>A type of replication scheduling where an integration's Replication Frequency is anchored to a time you select. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **[Advanced Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/advanced-scheduling)**<br><br>the Info icon<br><br>A type of replication scheduling that allows you to specify granular start times for data extraction using cron expressions. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |
| **Table-level reset**<br><br>the Info icon<br><br>Indicates if data can be reset at the table level. If unsupported, data can only be reset at the integration level. | the Remove icon<br><br>Table-level resets are not supported for this integration. Resets are only supported at the integration level.<br><br><br>Unsupported | **[Configurable Replication Methods](https://help.qlik.com/en-US/stitch/replication/replication-methods)**<br><br>the Info icon<br><br>Indicates if Replication Methods can be defined by you for tables in the integration. | the Remove icon<br><br>Configurable Replication Methods are not supported for this integration. Stitch will use pre-defined replication methods for tables you set to replicate.<br><br><br>Unsupported |
| **DATA SELECTION** |  |  |  |
| **Table selection**<br><br>the Info icon<br><br>The ability to select individual tables for replication in the Stitch interface. If table selection is unavailable, all tables and all the columns they contain will be set to replicate by default. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **Column selection**<br><br>the Info icon<br><br>The ability to select individual columns for replication in the Stitch interface. If column selection is unavailable, all columns will be set to replicate by default. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |
| **Select all**<br><br>the Info icon<br><br>Indicates if the integration supports selecting all available tables and columns. | the Success icon<br><br>Supported<br><br><br>Supported |  |  |
| **TRANSPARENCY** |  |  |  |
| **[Extraction Logs](https://help.qlik.com/en-US/stitch/replication/extractions/integration-extraction-logs)**<br><br>the Info icon<br><br>Logs detailing the Extraction phase of the replication process for a given integration. Includes error info, should an error occur. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **[Loading Reports](https://help.qlik.com/en-US/stitch/replication/integration-loading-reports)**<br><br>the Info icon<br><br>Reports detailing the Loading phase of the replication process for a given integration. Includes the number of rows loaded for each table and error info, should an error occur. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |

## Connecting Toggl

### Toggl setup requirements

To set up Toggl in Stitch, you need:

* **Admin access to the workspaces you want to replicate time entry data from, if replicating from multiple workspaces.** Stitch is only able to access the same data as the user whose API token is used to authenticate the integration. Toggl’s API limits retrieving time entry data to the user’s own time entries and the time entries in a workspace where they are also an Admin.

### Step 1: Retrieve your Toggl API token

Information note

**Verify your Toggl workspace permissions:**

Your Toggl API token is specific to you. When replicating data, Stitch will only be able to access the same data as you in Toggl.

To replicate time entry data from multiple workspaces, you must be an Admin in the workspace you want to replicate data from. Verify that you have this permission in Toggl before proceeding.

1. [Sign into your Toggl account](https://toggl.com/login/).

2. Click the **Workspace** menu in the lower left corner.

3. Click **Profile settings**.

4. Locate the **API token** field, which is highlighted in the image below:

   ![The API token field, highlighted in the Toggl Profile Settings page](https://help.qlik.com/en-US/stitch/images/integrations/toggl-profile-settings-api-token.png)The API token field, highlighted in the Toggl Profile Settings pageThe API token field, highlighted in the Toggl Profile Settings page

5. Copy the API token.

Keep this handy - you’ll need it to complete the next step.

### Step 2: Add Toggl as a Stitch data source

1. [Sign into your Stitch account](https://app.stitchdata.com/).

2. On the Stitch Dashboard page, click the **Add Integration** button.

3. Click the **Toggl** icon.

4. Enter a name for the integration. This is the name that will display on the Stitch Dashboard for the integration; it’ll also be used to create the schema in your destination.

   For example, the name “Stitch Toggl” would create a schema called `stitch_toggl` in the destination. **Note**: Schema names cannot be changed after you save the integration.

5. In the **API Token** field, paste the API token you retrieve in [Step 1](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#retrieve-toggl-api-token).

6. In the **Trailing Days** field, enter the number of days Stitch should use as an attribution window when replicating time entry data. **Note**: This is only applicable to the `time_entries` table.

   For example: If this value is `5`, Stitch will replicate the past five days’ worth of data for the `time_entries` table during every replication job.

### Step 3: Define the historical replication start date

The Sync Historical Data setting defines the starting date for your Toggl integration. This means that data **equal to or newer than this date** will be replicated to your data warehouse.

Change this setting if you want to replicate data beyond Toggl’s default setting of **1 year**. For a detailed look at historical replication jobs, check out the [Syncing Historical SaaS Data](https://help.qlik.com/en-US/stitch/replication/syncing-historical-saas-data-resetting-replication-keys) guide.

### Step 4: Create a replication schedule

Information note Replication schedules affect the time Extraction begins, not the time to data loaded. Refer to the [Replication Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling) documentation for more information.

In the **Replication Frequency** section, you’ll create the integration’s [replication schedule](https://help.qlik.com/en-US/stitch/replication/replication-scheduling). An integration’s replication schedule determines how often Stitch runs a replication job, and the time that job begins.

Toggl integrations support the following replication scheduling methods:

* [Replication Frequency](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/replication-frequency)

* [Anchor Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/anchor-scheduling)

* [Advanced Scheduling using Cron](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/advanced-scheduling) (Advanced or Premium plans only)

To keep your row usage low, consider setting the integration to replicate less frequently. See the [Understanding and Reducing Your Row Usage guide](https://help.qlik.com/en-US/stitch/getting-started/understanding-stitch-usage) for tips on reducing your usage.

### Step 5: Set objects to replicate

Information note **Is an object missing or not replicating?** Verify that the object meets the requirements for [selection](https://help.qlik.com/en-US/stitch/replication/extractions/data-selection/setting-tables-and-columns-to-replicate#selection-requirements) and [replication](https://help.qlik.com/en-US/stitch/replication/extractions/data-selection/setting-tables-and-columns-to-replicate#replication-requirements).

The last step is to select the tables and columns you want to replicate. [Learn about the available tables for this integration.](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#schema)

**Note**: If a replication job is currently in progress, new selections won’t be used until the next job starts.

* Selection options
* Individual tables and columns
* All tables and columns

For Toggl integrations, you can select:

1. **Individual tables and columns**

2. **All tables and columns**

Click the tabs to view instructions for each selection method.

1. In the integration’s **Tables to Replicate tab**, locate a table you want to replicate.

2. To track a table, click the **checkbox** next to the table’s name. A blue checkmark means the table is set to replicate.

3. To track a column, click the **checkbox** next to the column’s name. A blue checkmark means the column is set to replicate.

4. Repeat this process for all the tables and columns you want to replicate.

5. When finished, click the **Finalize Your Selections** button at the bottom of the screen to save your selections.

Information note **Important**: Using the **Select All** feature will overwrite any previous selections. However, selections aren’t final until **Finalize Your Selections** is clicked. Clicking **Cancel** will restore your previous selections. Refer to the [Select All guide](https://help.qlik.com/en-US/stitch/replication/extractions/data-selection/setting-tables-and-columns-to-replicate#set-all-data-to-replicate) for more info about this feature.

1. Click into the integration from the Stitch Dashboard page.

2. Click the **Tables to Replicate** tab.

3. In the list of tables, click the box next to the **Table Names** column.

4. In the menu that displays, click **Track all Tables and Fields**:

   ![The Track all Tables and Fields menu in the Tables to Replicate tab](https://help.qlik.com/en-US/stitch/images/replication/select-all-tables-menu.png)The Track all Tables and Fields menu in the Tables to Replicate tabThe Track all Tables and Fields menu in the Tables to Replicate tab

5. Click the **Finalize Your Selections** button at the bottom of the page to save your data selections.

### Initial and historical replication jobs

After you finish setting up Toggl, its **Sync Status** may show as **Pending** on either the Stitch Dashboard or in the Integration Details page.

For a new integration, a **Pending** status indicates that Stitch is in the process of scheduling the initial replication job for the integration. **This may take some time to complete.**

Information note

**Initial replication jobs with Anchor Scheduling**

If using Anchor Scheduling, an initial replication job may not kick off immediately. This depends on the selected Replication Frequency and Anchor Time. Refer to the [Anchor Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling#job-scheduling-and-anchor-times) documentation for more information.

#### Free historical data loads

The first seven days of replication, beginning when data is first replicated, are free. Rows replicated from the new integration during this time won’t count towards your quota. Stitch offers this as a way of testing new integrations, measuring usage, and ensuring historical data volumes don’t quickly consume your quota.

Information note **Replication will continue after the seven days are over**. If you’re no longer interested in this source, be sure to **pause** or **delete** the integration to prevent unwanted usage.

## Toggl replication

### Replicating time entry data

The `time_entries` table uses the **Trailing Days** setting as an attribution window during replication. This means that the number entered into the **Trailing Days** field in the Integration Settings page is the number of days Stitch will query time entry data for during every replication job.

For example: If you set **Trailing Days** to `5`, Stitch will query for and replicate the past five days’ worth of data during every replication job for the `time_entries` table.

While `time_entries` is replicated incrementally - in that only data from the number of trailing days is replicated during each job - a high number of days being used as the attribution window can increase your row usage.

## Toggl table reference

Information note

**Schemas and versioning**

Schemas and naming conventions can change from version to version, so we recommend verifying your integration’s version before continuing.

The schema and info displayed below is for **version 1** of this integration.

This is the latest version of the Toggl integration.

Information note

**Table and column names in your destination**

Depending on your destination, table and column names may not appear as they are outlined below.

For example: Object names are lowercased in Redshift (`CusTomERs` &gt; `customers`), while case is maintained in PostgreSQL destinations (`CusTomERs` &gt; `CusTomERs`). Refer to the [Loading Guide](https://help.qlik.com/en-US/stitch/replication/loading/destination-guides) for your destination for more info.

### clients

The `clients` table contains info about the clients in your Toggl account.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | at |
| **Useful links** | [Toggl documentation](https://github.com/toggl/toggl_api_docs/blob/master/chapters/clients.md "Opens in new tab: Toggl documentation")<br><br><br>[clients schema on GitHub](https://github.com/singer-io/tap-toggl/blob/master/tap_toggl/schemas/clients.json "Opens in new tab: clients schema on GitHub")<br><br><br>[Toggl API method](https://github.com/toggl/toggl_api_docs/blob/master/chapters/workspaces.md#get-workspace-clients "Opens in new tab: Toggl API method") |

clients table foreign keys

| Join clients with | on |
| --- | --- |
| [workspaces](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#workspaces) | ```<br>clients.wid = workspaces.id<br>``` |
| [groups](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#groups) | ```<br>clients.wid = groups.wid<br>``` |
| [projects](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#projects) | ```<br>clients.wid = projects.wid<br>```<br><br>```<br>clients.id = projects.cid<br>``` |
| [tags](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#tags) | ```<br>clients.wid = tags.wid<br>``` |
| [tasks](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#tasks) | ```<br>clients.wid = tasks.wid<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#users) | ```<br>clients.wid = users.default_wid<br>``` |
| [workspace_users](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#workspace-users) | ```<br>clients.wid = workspace_users.wid<br>``` |

clients table schema

| **id**<br><br><br>INTEGER |
| --- |
| **wid**<br><br><br>INTEGER |
| **archived**<br><br><br>BOOLEAN |
| **name**<br><br><br>STRING |
| **at**<br><br><br>STRING |
| **notes**<br><br><br>STRING |
| **creator\_id**<br><br><br>INTEGER |
| **external\_reference**<br><br><br>STRING |
| **integration\_ext\_id**<br><br><br>STRING |
| **integration\_ext\_type**<br><br><br>STRING |
| **integration\_provider**<br><br><br>STRING |
| **permissions**<br><br><br>STRING |
| **total\_count**<br><br><br>INTEGER |

### groups

The `groups` table contains info about the groups in your Toggl account.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | at |
| **Useful links** | [Toggl documentation](https://github.com/toggl/toggl_api_docs/blob/master/chapters/groups.md "Opens in new tab: Toggl documentation")<br><br><br>[groups schema on GitHub](https://github.com/singer-io/tap-toggl/blob/master/tap_toggl/schemas/groups.json "Opens in new tab: groups schema on GitHub")<br><br><br>[Toggl API method](https://github.com/toggl/toggl_api_docs/blob/master/chapters/workspaces.md#get-workspace-groups "Opens in new tab: Toggl API method") |

groups table foreign keys

| Join groups with | on |
| --- | --- |
| [workspaces](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#workspaces) | ```<br>groups.wid = workspaces.id<br>``` |
| [clients](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#clients) | ```<br>groups.wid = clients.wid<br>``` |
| [projects](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#projects) | ```<br>groups.wid = projects.wid<br>``` |
| [tags](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#tags) | ```<br>groups.wid = tags.wid<br>``` |
| [tasks](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#tasks) | ```<br>groups.wid = tasks.wid<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#users) | ```<br>groups.wid = users.default_wid<br>``` |
| [workspace_users](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#workspace-users) | ```<br>groups.wid = workspace_users.wid<br>``` |

groups table schema

| **group\_id**<br><br><br>INTEGER |
| --- |
| **name**<br><br><br>STRING |
| **at**<br><br><br>STRING |
| **workspaces**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **permissions**<br><br><br>STRING |
| **users**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand users<br><br><table> <tr> <td> <p> <strong>								user_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								avatar_url							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								inactive							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								joined							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								active							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								created_at							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								deleted_at							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								email							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								invited_at							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								organization_user_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								role_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								role_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								role_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								status							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								suspended_at							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								updated_at							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |

### projects

The `projects` table contains info about the projects in your Toggl account.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | at |
| **Useful links** | [Toggl documentation](https://github.com/toggl/toggl_api_docs/blob/master/chapters/projects.md "Opens in new tab: Toggl documentation")<br><br><br>[projects schema on GitHub](https://github.com/singer-io/tap-toggl/blob/master/tap_toggl/schemas/projects.json "Opens in new tab: projects schema on GitHub")<br><br><br>[Toggl API method](https://github.com/toggl/toggl_api_docs/blob/master/chapters/workspaces.md#get-workspace-projects "Opens in new tab: Toggl API method") |

projects table foreign keys

| Join projects with | on |
| --- | --- |
| [workspaces](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#workspaces) | ```<br>projects.wid = workspaces.id<br>``` |
| [clients](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#clients) | ```<br>projects.wid = clients.wid<br>```<br><br>```<br>projects.cid = clients.id<br>``` |
| [groups](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#groups) | ```<br>projects.wid = groups.wid<br>``` |
| [tags](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#tags) | ```<br>projects.wid = tags.wid<br>``` |
| [tasks](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#tasks) | ```<br>projects.wid = tasks.wid<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#users) | ```<br>projects.wid = users.default_wid<br>``` |
| [workspace_users](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#workspace-users) | ```<br>projects.wid = workspace_users.wid<br>``` |

projects table schema

| **id**<br><br><br>INTEGER |
| --- |
| **workspace\_id**<br><br><br>INTEGER |
| **cid**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **billable**<br><br><br>BOOLEAN |
| **is\_private**<br><br><br>BOOLEAN |
| **active**<br><br><br>BOOLEAN |
| **at**<br><br><br>STRING |
| **actual\_hours**<br><br><br>INTEGER |
| **actual\_seconds**<br><br><br>INTEGER |
| **auto\_estimates**<br><br><br>BOOLEAN |
| **can\_track\_time**<br><br><br>BOOLEAN |
| **client\_id**<br><br><br>INTEGER |
| **client\_name**<br><br><br>STRING |
| **color**<br><br><br>STRING |
| **created\_at**<br><br><br>STRING |
| **currency**<br><br><br>STRING |
| **estimated\_hours**<br><br><br>INTEGER |
| **estimated\_seconds**<br><br><br>INTEGER |
| **fixed\_fee**<br><br><br>NUMBER |
| **pinned**<br><br><br>BOOLEAN |
| **rate**<br><br><br>NUMBER |
| **rate\_last\_updated**<br><br><br>STRING |
| **recurring**<br><br><br>BOOLEAN |
| **start\_date**<br><br><br>STRING |
| **status**<br><br><br>STRING |
| **template**<br><br><br>BOOLEAN |
| **template\_id**<br><br><br>INTEGER |
| **wid**<br><br><br>INTEGER |
| **gid**<br><br><br>INTEGER |
| **group\_id**<br><br><br>INTEGER |
| **labor\_cost**<br><br><br>NUMBER |
| **labor\_cost\_last\_updated**<br><br><br>STRING |
| **manager**<br><br><br>BOOLEAN |
| **project\_id**<br><br><br>INTEGER |
| **user\_id**<br><br><br>INTEGER |
| **active\_tasks**<br><br><br>INTEGER |
| **archieved**<br><br><br>BOOLEAN |
| **creator**<br><br><br>STRING |
| **deleted\_at**<br><br><br>STRING |
| **project\_name**<br><br><br>STRING |
| **updated\_at**<br><br><br>STRING |
| **visibility**<br><br><br>STRING |

### tags

The `tags` table contains info about the tags in your Toggl account.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Useful links** | [Toggl documentation](https://github.com/toggl/toggl_api_docs/blob/master/chapters/tags.md "Opens in new tab: Toggl documentation")<br><br><br>[tags schema on GitHub](https://github.com/singer-io/tap-toggl/blob/master/tap_toggl/schemas/tags.json "Opens in new tab: tags schema on GitHub")<br><br><br>[Toggl API method](https://github.com/toggl/toggl_api_docs/blob/master/chapters/workspaces.md#get-workspace-tags "Opens in new tab: Toggl API method") |

tags table foreign keys

| Join tags with | on |
| --- | --- |
| [workspaces](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#workspaces) | ```<br>tags.wid = workspaces.id<br>``` |
| [clients](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#clients) | ```<br>tags.wid = clients.wid<br>``` |
| [groups](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#groups) | ```<br>tags.wid = groups.wid<br>``` |
| [projects](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#projects) | ```<br>tags.wid = projects.wid<br>``` |
| [tasks](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#tasks) | ```<br>tags.wid = tasks.wid<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#users) | ```<br>tags.wid = users.default_wid<br>``` |
| [workspace_users](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#workspace-users) | ```<br>tags.wid = workspace_users.wid<br>``` |

tags table schema

| **id**<br><br><br>INTEGER |
| --- |
| **workspace\_id**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **at**<br><br><br>STRING |
| **creator\_id**<br><br><br>INTEGER |
| **deleted\_at**<br><br><br>STRING |
| **integration\_ext\_id**<br><br><br>STRING |
| **integration\_ext\_type**<br><br><br>STRING |
| **integration\_provider**<br><br><br>STRING |
| **permissions**<br><br><br>STRING |

### tasks

The `tasks` table contains info about the tasks in your Toggl account.

**Note**: Tasks are only available for Toggl starter and other paid workspaces.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | at |
| **Useful links** | [Toggl documentation](https://github.com/toggl/toggl_api_docs/blob/master/chapters/tasks.md "Opens in new tab: Toggl documentation")<br><br><br>[tasks schema on GitHub](https://github.com/singer-io/tap-toggl/blob/master/tap_toggl/schemas/tasks.json "Opens in new tab: tasks schema on GitHub")<br><br><br>[Toggl API method](https://github.com/toggl/toggl_api_docs/blob/master/chapters/workspaces.md#get-workspace-tasks "Opens in new tab: Toggl API method") |

tasks table foreign keys

| Join tasks with | on |
| --- | --- |
| [workspaces](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#workspaces) | ```<br>tasks.wid = workspaces.id<br>``` |
| [clients](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#clients) | ```<br>tasks.wid = clients.wid<br>``` |
| [groups](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#groups) | ```<br>tasks.wid = groups.wid<br>``` |
| [projects](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#projects) | ```<br>tasks.wid = projects.wid<br>``` |
| [tags](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#tags) | ```<br>tasks.wid = tags.wid<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#users) | ```<br>tasks.wid = users.default_wid<br>```<br><br>```<br>tasks.uid = users.id<br>``` |
| [workspace_users](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#workspace-users) | ```<br>tasks.wid = workspace_users.wid<br>``` |
| [time_entries](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#time-entries) | ```<br>tasks.id = time_entries.tid<br>```<br><br>```<br>tasks.uid = time_entries.uid<br>``` |

tasks table schema

| **name**<br><br><br>STRING |
| --- |
| **id**<br><br><br>INTEGER |
| **workspace\_id**<br><br><br>INTEGER |
| **project\_id**<br><br><br>INTEGER |
| **user\_id**<br><br><br>INTEGER |
| **recurring**<br><br><br>BOOLEAN |
| **active**<br><br><br>BOOLEAN |
| **at**<br><br><br>STRING |
| **server\_deleted\_at**<br><br><br>STRING |
| **estimated\_seconds**<br><br><br>INTEGER |
| **tracked\_seconds**<br><br><br>INTEGER |
| **toggl\_accounts\_id**<br><br><br>STRING |
| **user\_name**<br><br><br>STRING |
| **avatar\_url**<br><br><br>STRING |
| **client\_name**<br><br><br>STRING |
| **integration\_ext\_id**<br><br><br>STRING |
| **integration\_ext\_type**<br><br><br>STRING |
| **integration\_provider**<br><br><br>STRING |
| **permissions**<br><br><br>STRING |
| **project\_billable**<br><br><br>BOOLEAN |
| **project\_color**<br><br><br>STRING |
| **project\_is\_private**<br><br><br>BOOLEAN |
| **project\_name**<br><br><br>STRING |
| **rate**<br><br><br>NUMBER |
| **rate\_last\_updated**<br><br><br>STRING |

### time\_entries

The `time_entries` table contains info about time entries. **Note**: This table uses an attribution window to replicate data. Refer to the [Replicating time entry data](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#replicating-time-entry-data) section for more info.

#### Time entries and user permissions

The time entries Stitch replicates are dependent upon the user whose API token is used to create the integration in Stitch. Stitch is only able to access the same data as the user whose token is used.

For example: If the user is unable to access a workspace, or is not an Admin in that workspace, Stitch will not be able to replicate time entry data for those workspaces. In this case, only the user’s own time entries will be accessible by Stitch.

If data from a workspace is missing, verify that the user whose API token is being used in Stitch has Admin permissions in that workspace.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | updated |
| **Useful links** | [time_entries schema on GitHub](https://github.com/singer-io/tap-toggl/blob/master/tap_toggl/schemas/time_entries.json "Opens in new tab: time_entries schema on GitHub")<br><br><br>[Toggl API method](https://github.com/toggl/toggl_api_docs/blob/master/reports/detailed.md "Opens in new tab: Toggl API method") |

time\_entries table foreign keys

| Join time\_entries with | on |
| --- | --- |
| [tasks](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#tasks) | ```<br>time_entries.tid = tasks.id<br>```<br><br>```<br>time_entries.uid = tasks.uid<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#users) | ```<br>time_entries.uid = users.id<br>``` |

time\_entries table schema

| **id**<br><br><br>INTEGER |
| --- |
| **pid**<br><br><br>INTEGER |
| **uid**<br><br><br>INTEGER |
| **description**<br><br><br>STRING |
| **start**<br><br><br>STRING |
| **at**<br><br><br>STRING |
| **billable**<br><br><br>BOOLEAN |
| **duration**<br><br><br>INTEGER |
| **duronly**<br><br><br>BOOLEAN |
| **project\_id**<br><br><br>INTEGER |
| **stop**<br><br><br>STRING |
| **tag\_ids**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **tags**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **task\_id**<br><br><br>INTEGER |
| **user\_id**<br><br><br>INTEGER |
| **wid**<br><br><br>INTEGER |
| **workspace\_id**<br><br><br>INTEGER |
| **client\_name**<br><br><br>STRING |
| **expense\_ids**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **permissions**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **project\_active**<br><br><br>BOOLEAN |
| **project\_billable**<br><br><br>BOOLEAN |
| **project\_color**<br><br><br>STRING |
| **project\_name**<br><br><br>STRING |
| **shared\_with**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **task\_name**<br><br><br>STRING |
| **tid**<br><br><br>INTEGER |
| **user\_avatar\_url**<br><br><br>STRING |
| **user\_name**<br><br><br>STRING |

### users

The `users` table contains info about the users in your Toggl account.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | at |
| **Useful links** | [Toggl documentation](https://github.com/toggl/toggl_api_docs/blob/master/chapters/users.md "Opens in new tab: Toggl documentation")<br><br><br>[users schema on GitHub](https://github.com/singer-io/tap-toggl/blob/master/tap_toggl/schemas/users.json "Opens in new tab: users schema on GitHub")<br><br><br>[Toggl API method](https://github.com/toggl/toggl_api_docs/blob/master/chapters/workspaces.md#get-workspace-users "Opens in new tab: Toggl API method") |

users table foreign keys

| Join users with | on |
| --- | --- |
| [workspaces](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#workspaces) | ```<br>users.default_wid = workspaces.id<br>``` |
| [clients](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#clients) | ```<br>users.default_wid = clients.wid<br>``` |
| [groups](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#groups) | ```<br>users.default_wid = groups.wid<br>``` |
| [projects](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#projects) | ```<br>users.default_wid = projects.wid<br>``` |
| [tags](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#tags) | ```<br>users.default_wid = tags.wid<br>``` |
| [tasks](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#tasks) | ```<br>users.default_wid = tasks.wid<br>```<br><br>```<br>users.id = tasks.uid<br>``` |
| [workspace_users](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#workspace-users) | ```<br>users.default_wid = workspace_users.wid<br>``` |
| [time_entries](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#time-entries) | ```<br>users.id = time_entries.uid<br>``` |

users table schema

| **id**<br><br><br>INTEGER |
| --- |
| **email**<br><br><br>STRING |
| **fullname**<br><br><br>STRING |
| **is\_active**<br><br><br>BOOLEAN |
| **is\_admin**<br><br><br>BOOLEAN |
| **inactive**<br><br><br>BOOLEAN |
| **role**<br><br><br>STRING |
| **2fa\_enabled**<br><br><br>BOOLEAN |
| **timezone**<br><br><br>STRING |

### workspace\_users

The `workspace_users` table contains info about the users in a workspace.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | at |
| **Useful links** | [Toggl documentation](https://github.com/toggl/toggl_api_docs/blob/master/chapters/workspace_users.md "Opens in new tab: Toggl documentation")<br><br><br>[workspace_users schema on GitHub](https://github.com/singer-io/tap-toggl/blob/master/tap_toggl/schemas/workspace_users.json "Opens in new tab: workspace_users schema on GitHub")<br><br><br>[Toggl API method](https://github.com/toggl/toggl_api_docs/blob/master/chapters/workspace_users.md#get-workspace-users "Opens in new tab: Toggl API method") |

workspace\_users table foreign keys

| Join workspace\_users with | on |
| --- | --- |
| [workspaces](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#workspaces) | ```<br>workspace_users.wid = workspaces.id<br>``` |
| [clients](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#clients) | ```<br>workspace_users.wid = clients.wid<br>``` |
| [groups](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#groups) | ```<br>workspace_users.wid = groups.wid<br>``` |
| [projects](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#projects) | ```<br>workspace_users.wid = projects.wid<br>``` |
| [tags](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#tags) | ```<br>workspace_users.wid = tags.wid<br>``` |
| [tasks](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#tasks) | ```<br>workspace_users.wid = tasks.wid<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#users) | ```<br>workspace_users.wid = users.default_wid<br>``` |

workspace\_users table schema

| **id**<br><br><br>INTEGER |
| --- |
| **uid**<br><br><br>INTEGER |
| **wid**<br><br><br>INTEGER |
| **admin**<br><br><br>BOOLEAN |
| **active**<br><br><br>BOOLEAN |
| **email**<br><br><br>STRING |
| **inactive**<br><br><br>BOOLEAN |
| **at**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **group\_ids**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **invite\_url**<br><br><br>STRING |
| **role**<br><br><br>STRING |
| **2fa\_enabled**<br><br><br>BOOLEAN |
| **avatar\_file\_name**<br><br><br>STRING |
| **invitation\_code**<br><br><br>STRING |
| **is\_direct**<br><br><br>BOOLEAN |
| **labor\_cost**<br><br><br>NUMBER |
| **labor\_cost\_last\_updated**<br><br><br>STRING |
| **organization\_admin**<br><br><br>BOOLEAN |
| **rate**<br><br><br>NUMBER |
| **rate\_last\_updated**<br><br><br>STRING |
| **role\_id**<br><br><br>INTEGER |
| **timezone**<br><br><br>STRING |
| **view\_edit\_billable\_rates**<br><br><br>BOOLEAN |
| **view\_edit\_labor\_costs**<br><br><br>BOOLEAN |
| **working\_hours\_in\_minutes**<br><br><br>INTEGER |
| **workspace\_admin**<br><br><br>BOOLEAN |
| **user\_id**<br><br><br>INTEGER |
| **workspace\_id**<br><br><br>INTEGER |

### workspaces

The `workspaces` table contains info about the workspaces in your Toggl account.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | at |
| **Useful links** | [Toggl documentation](https://github.com/toggl/toggl_api_docs/blob/master/chapters/workspaces.md "Opens in new tab: Toggl documentation")<br><br><br>[workspaces schema on GitHub](https://github.com/singer-io/tap-toggl/blob/master/tap_toggl/schemas/a_workspaces.json "Opens in new tab: workspaces schema on GitHub")<br><br><br>[Toggl API method](https://github.com/toggl/toggl_api_docs/blob/master/chapters/workspaces.md#get-workspaces "Opens in new tab: Toggl API method") |

workspaces table foreign keys

| Join workspaces with | on |
| --- | --- |
| [clients](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#clients) | ```<br>workspaces.id = clients.wid<br>``` |
| [groups](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#groups) | ```<br>workspaces.id = groups.wid<br>``` |
| [projects](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#projects) | ```<br>workspaces.id = projects.wid<br>``` |
| [tags](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#tags) | ```<br>workspaces.id = tags.wid<br>``` |
| [tasks](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#tasks) | ```<br>workspaces.id = tasks.wid<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#users) | ```<br>workspaces.id = users.default_wid<br>``` |
| [workspace_users](https://help.qlik.com/en-US/stitch/integrations/saas/toggl#workspace-users) | ```<br>workspaces.id = workspace_users.wid<br>``` |

workspaces table schema

| **id**<br><br><br>INTEGER |
| --- |
| **organization\_id**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **premium**<br><br><br>BOOLEAN |
| **business\_ws**<br><br><br>BOOLEAN |
| **admin**<br><br><br>BOOLEAN |
| **default\_hourly\_rate**<br><br><br>INTEGER |
| **default\_currency**<br><br><br>STRING |
| **only\_admins\_may\_create\_projects**<br><br><br>BOOLEAN |
| **rounding**<br><br><br>INTEGER |
| **rounding\_minutes**<br><br><br>INTEGER |
| **at**<br><br><br>STRING |
| **logo\_url**<br><br><br>STRING |
| **ical\_url**<br><br><br>STRING |
| **disable\_approvals**<br><br><br>BOOLEAN |
| **disable\_timesheet\_view**<br><br><br>BOOLEAN |
| **hide\_start\_end\_times**<br><br><br>BOOLEAN |
| **ical\_enabled**<br><br><br>BOOLEAN |
| **last\_modified**<br><br><br>STRING |
| **limit\_public\_project\_data**<br><br><br>BOOLEAN |
| **only\_admins\_may\_create\_tags**<br><br><br>BOOLEAN |
| **only\_admins\_see\_team\_dashboard**<br><br><br>BOOLEAN |
| **projects\_billable\_by\_default**<br><br><br>BOOLEAN |
| **projects\_enforce\_billable**<br><br><br>BOOLEAN |
| **projects\_private\_by\_default**<br><br><br>BOOLEAN |
| **rate\_last\_updated**<br><br><br>STRING |
| **reports\_collapse**<br><br><br>BOOLEAN |
| **role**<br><br><br>STRING |
| **server\_deleted\_at**<br><br><br>STRING |
| **profile**<br><br><br>INTEGER |
| **active\_users**<br><br><br>INTEGER |
| **created\_at**<br><br><br>STRING |
| **deleted\_at**<br><br><br>STRING |
| **organization\_name**<br><br><br>INTEGER |
| **role\_code**<br><br><br>STRING |
| **role\_id**<br><br><br>INTEGER |
| **role\_name**<br><br><br>STRING |
| **status**<br><br><br>STRING |
| **total\_users**<br><br><br>INTEGER |
| **updated\_at**<br><br><br>STRING |
| **user\_status**<br><br><br>STRING |