> ## 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.

# Workday (Refresh Token)

> Integrate your application with the Workday API using refresh token authentication

## 🚀 Quickstart

Connect to Workday (Refresh Token) with Nango and see data flow in 2 minutes.

**1. Create the integration**

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

**2. Authorize Workday (Refresh Token)**

Go to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection* -> *Authorize*, then enter your token domain, tenant, client ID, client secret, and refresh token. Later, you'll let your users do the same directly from your app.

**3. Call the Workday API**

Let's make your first request to the Workday 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/v1/{connectionConfig.tenant}/workers" \
>   -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 connectionId = '<CONNECTION-ID>';
> const providerConfigKey = '<INTEGRATION-ID>';
> const connection = await nango.getConnection(providerConfigKey, connectionId);
>
> const res = await nango.get({
>     endpoint: `/v1/${connection.connection_config['tenant']}/workers`,
>     providerConfigKey,
>     connectionId
> });
>
> console.log(JSON.stringify(res.data, null, 2));
> ```

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/primitives/auth.md) to integrate Nango in your app.

To obtain your own credentials, follow the connect guide linked below.

## 📚 Workday (Refresh Token) Integration Guides

Nango-maintained guides for common use cases.

* [How do I link my account?](https://nango.dev/docs/api-integrations/workday-refresh-token/connect)\
  Connect your Workday account using the Connect UI and configure your refresh token credentials

Official docs: [Workday API documentation](https://community.workday.com/sites/default/files/file-hosting/restapi/index.html)

## 🧩 Pre-built syncs & tools for Workday (Refresh Token)

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

### Others

| Function name | Description | Type |
| - | - | - |
| `execute-wql-query` | Execute a Workday Query Language (WQL) query and return structured tabular results | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-custom-object-definition` | Get a single custom object definition by id. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-job-requisition` | Get a single job requisition by id. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-organization` | Get a single organization by id | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-supervisory-organization` | Get a single supervisory organization by id. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-time-off-detail` | Get a single time-off entry's details. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-worker-compensation` | Get a worker's compensation details (base pay, compensation plans, etc.). | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-worker` | Get a single worker's record by id. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-job-requisitions` | List open/filled job requisitions. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-organizations` | List organizations (cost centers, companies, regions, etc.). | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-supervisory-organizations` | List supervisory organizations (Workday management-hierarchy org units) | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-worker-absence-balances` | List a worker's current absence/PTO plan balances | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-worker-time-off` | List a worker's time-off/absence entries. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-workers` | List worker (employee/contingent worker) records. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `submit-time-off-request` | Submit a new time-off request for a worker | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `organizations` | Sync organizations (cost centers, companies, regions, supervisory orgs, etc.) | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `workers` | Sync worker (employee/contingent worker) records | [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.