> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Timetastic

> Integrate your application with the Timetastic API

## 🚀 Quickstart

Connect to Timetastic with Nango and see data flow in 2 minutes. Timetastic uses a static bearer token generated directly in your Timetastic account.

**1. Create the integration**

In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *Timetastic*.

**2. Connect your Timetastic account**

Go to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection*. Enter your API key, then save.

**3. Call the Timetastic API**

Let's make your first request to the Timetastic API. Replace the placeholders below with your [Environment API key](https://nango.dev/docs/reference/backend/http-api/api-keys.md), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):

> [tab] cURL
>
> ```bash theme={null}
> curl "https://api.nango.dev/proxy/users" \
>   -H "Authorization: Bearer <NANGO-API-KEY>" \
>   -H "Provider-Config-Key: <INTEGRATION-ID>" \
>   -H "Connection-Id: <CONNECTION-ID>"
> ```

> [tab] Node
>
> Install Nango's backend SDK with `npm i @nangohq/node`. Then run:
>
> ```typescript theme={null}
> import { Nango } from '@nangohq/node';
>
> const nango = new Nango({ apiKey: '<NANGO-API-KEY>' });
>
> const res = await nango.get({
>     endpoint: '/users',
>     providerConfigKey: '<INTEGRATION-ID>',
>     connectionId: '<CONNECTION-ID>'
> });
>
> console.log(res.data);
> ```

Or fetch credentials with the [Node SDK](https://nango.dev/docs/reference/backend/backend-sdk/node.md#get-a-connection-with-credentials) or [API](https://nango.dev/docs/reference/backend/http-api/connections/get.md).

✅ You're connected! Check the [Logs](https://app.nango.dev/dev/logs) tab in Nango to inspect requests.

**4. Implement Nango in your app**

Follow our [Auth implementation guide](https://nango.dev/docs/guides/auth/auth-guide.md) to integrate Nango in your app.

To obtain an API key, follow the setup guide linked below.

## 📚 Timetastic integration guides

Nango maintained guides for common use cases.

* [How to connect your Timetastic account](https://nango.dev/docs/api-integrations/timetastic/connect)\
  Generate an API key in Timetastic and connect it to Nango

Official docs: [Timetastic API docs](https://app.timetastic.co.uk/api-docs/index.html)

## 🧩 Pre-built syncs & tools for Timetastic

Explore Nango-provided tools in your dashboard. Extend and customize them to fit your needs.

### Others

| Function name | Description | Type |
| - | - | - |
| `action-holiday` | Approve, decline, cancel, or delete a leave request. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `add-department` | Create a new department. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `add-locked-date` | Create a locked date period that blocks leave requests. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `add-user-toil` | Add a Time Off In Lieu entry for a user for a year. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `add-user` | Create a new user, optionally sending a welcome email. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `archive-user` | Archive a user, immediately logging them out and blocking further login. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `assign-user-public-holidays` | Turn on and assign a public holiday set (country/region) to a user | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-leave-type` | Create a new leave type. Admin only. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-department` | Delete a department. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-leave-type` | Delete a leave type. Admin only. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-locked-date` | Remove a locked date period. Admin/manager only. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-user-toil` | Delete a TOIL entry for a user. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `edit-department` | Update a department's settings. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `edit-user` | Update fields on an existing user. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-department` | Retrieve a single department. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-holiday` | Retrieve a single leave request. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-leave-type` | Retrieve a single leave type. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-public-holiday` | Retrieve a single public holiday. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-user-allowance-for-year` | Get the allowance, TOIL, and carry-forward for one user for one year. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-user-allowances` | Get allowance, TOIL, and carry-forward records for one user across all years. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-user` | Retrieve a single user, including their work schedule and per-year allowances. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-absences` | Get a chronological, day-by-day list of who is off within a date range. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-departments` | List all departments for the organisation. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-holidays` | Query leave requests for the organisation with rich filters. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-leave-type-colors` | List valid color hex codes for leave types. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-leave-type-icons` | List valid icon names for leave types. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-leave-types` | List leave types for the organisation. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-locked-dates` | List all locked date periods for the organisation. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-public-holiday-countries` | List all countries with public holiday sets available. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-public-holidays` | List public holidays for the organisation. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-user-allowances-for-year` | List allowances, TOIL, and carry-forwards for every user for a single year | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-user-allowances` | List allowances, TOIL, and carry-forwards for every user across all years. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-users` | List users for the organisation. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-webhook-events` | List recent webhook delivery events. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `request-holiday` | Submit a leave request for a user, department, or the whole organisation | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `restore-user` | Restore an archived user so they can log in again. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-leave-type` | Update an existing leave type. Admin only. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-user-allowance` | Update a user's annual leave allowance for a year. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-user-carryforward` | Update a user's carried-forward allowance for a year. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-user-toil` | Update an existing TOIL entry for a user for a year. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `departments` | Sync departments. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `holidays` | Sync leave requests. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `leave-types` | Sync leave types. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `locked-dates` | Sync locked date periods. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `public-holidays` | Sync public holidays. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `user-allowances` | Sync user allowances, TOIL, and carry-forwards. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `users` | Sync users. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.