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

<Steps>
  <Step title="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)*.
  </Step>

  <Step title="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.
  </Step>

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

    <Tabs>
      <Tab title="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>

      <Tab title="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));
        ```
      </Tab>
    </Tabs>

    Or fetch credentials with the [Node SDK](/docs/reference/sdks/node#get-a-connection-with-credentials) or [API](/docs/reference/api/connection/get).

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

  <Step title="Implement Nango in your app">
    Follow our [Auth implementation guide](/docs/guides/primitives/auth) to integrate Nango in your app.

    To obtain your own production credentials, follow the connect guide linked below.
  </Step>
</Steps>

## 📚 Workday (Refresh Token) Integration Guides

Nango-maintained guides for common use cases.

* [How do I link my account?](/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 & actions for Workday (Refresh Token)

Enable them in your dashboard. Extend and customize to fit your needs.

### Others

| Function name                    | Description                                                                        | Type                                           | Source code                                                                                                                                          |
| -------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| `execute-wql-query`              | Execute a Workday Query Language (WQL) query and return structured tabular results | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/workday-refresh-token/actions/execute-wql-query.ts)              |
| `get-custom-object-definition`   | Get a single custom object definition by id.                                       | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/workday-refresh-token/actions/get-custom-object-definition.ts)   |
| `get-job-requisition`            | Get a single job requisition by id.                                                | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/workday-refresh-token/actions/get-job-requisition.ts)            |
| `get-organization`               | Get a single organization by id                                                    | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/workday-refresh-token/actions/get-organization.ts)               |
| `get-supervisory-organization`   | Get a single supervisory organization by id.                                       | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/workday-refresh-token/actions/get-supervisory-organization.ts)   |
| `get-time-off-detail`            | Get a single time-off entry's details.                                             | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/workday-refresh-token/actions/get-time-off-detail.ts)            |
| `get-worker-compensation`        | Get a worker's compensation details (base pay, compensation plans, etc.).          | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/workday-refresh-token/actions/get-worker-compensation.ts)        |
| `get-worker`                     | Get a single worker's record by id.                                                | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/workday-refresh-token/actions/get-worker.ts)                     |
| `list-job-requisitions`          | List open/filled job requisitions.                                                 | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/workday-refresh-token/actions/list-job-requisitions.ts)          |
| `list-organizations`             | List organizations (cost centers, companies, regions, etc.).                       | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/workday-refresh-token/actions/list-organizations.ts)             |
| `list-supervisory-organizations` | List supervisory organizations (Workday management-hierarchy org units)            | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/workday-refresh-token/actions/list-supervisory-organizations.ts) |
| `list-worker-absence-balances`   | List a worker's current absence/PTO plan balances                                  | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/workday-refresh-token/actions/list-worker-absence-balances.ts)   |
| `list-worker-time-off`           | List a worker's time-off/absence entries.                                          | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/workday-refresh-token/actions/list-worker-time-off.ts)           |
| `list-workers`                   | List worker (employee/contingent worker) records.                                  | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/workday-refresh-token/actions/list-workers.ts)                   |
| `submit-time-off-request`        | Submit a new time-off request for a worker                                         | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/workday-refresh-token/actions/submit-time-off-request.ts)        |
| `organizations`                  | Sync organizations (cost centers, companies, regions, supervisory orgs, etc.)      | [Sync](/docs/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/workday-refresh-token/syncs/organizations.ts)                    |
| `workers`                        | Sync worker (employee/contingent worker) records                                   | [Sync](/docs/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/workday-refresh-token/syncs/workers.ts)                          |

***
