> 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/workday.md).

# Workday

Connect to Workday to access HR, finance, and planning data.

## Connectors

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

| Connector | Authentication |
| --------- | -------------- |
| Workday   | Credentials    |

### Workday

Connect to Workday API using refresh token authentication to access HR, finance, and planning data.

#### Set up in Workday

1. In Workday, run the Register API Client for Integrations task. Select System in Scope (Functional Areas), then copy the Client ID and Client Secret.
2. Give the Workday account used for the refresh token access to execute reports and the Workday Query Language domain in the System functional area. Also grant access to every data source and field that your WQL queries use.
3. In View API Clients, open the registered client, choose Manage Refresh Tokens for Integrations, select the Workday account, and generate a refresh token.
4. Copy the exact Token Endpoint shown in View API Clients. A tenant endpoint commonly has the form `https://<host>/ccx/oauth2/<tenant>/token`; a WCP Gateway client uses its assigned regional authorization endpoint, such as `https://<region-auth-host>/v1/token`. Do not derive this value from the Base URL.

#### Set up in StackAI

1. Open **Settings → Connections**, add a connection, and select **Workday**.
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                                                                                                                                       |
| ------------------------- | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| Refresh Token             | Yes                      | A valid refresh token obtained from Workday OAuth flow. Workday may rotate it on use, in which case the new value is stored automatically.          |
| Client Secret             | Yes                      | Your Workday API Client Secret.                                                                                                                     |
| Client ID                 | Yes                      | Your Workday API Client ID.                                                                                                                         |
| Base URL                  | Yes                      | Your HTTPS Workday host or exact WQL base URL. Host-only, legacy /ccx/api, current /api/wql, and api.workday.com WQL Gateway formats are supported. |
| Tenant                    | Yes                      | Your case-sensitive Workday tenant identifier.                                                                                                      |
| Token Endpoint            | Yes                      | The exact HTTPS OAuth token endpoint copied from Workday View API Clients.                                                                          |
| Request Timeout (seconds) | Optional / as applicable | Timeout for each Workday HTTP attempt, in seconds.                                                                                                  |

**Provider documentation:** [Setup reference](https://developer.workday.com/documentation/GUID-6546152a-bcf0-447d-8d64-230f9e2ac291-enHYPHENus).

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

### Detailed setup guides

* [Connect Workday](https://docs.stackai.com/integrations/catalog/workday/connect-workday.md)

## Use an action

1. Add the required **Workday** 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

### Run WQL Query

Execute a WQL (Workday Query Language) query against Workday to retrieve HR, finance, and planning data

#### Inputs

| Field     | Type     | Required | Description                                                    |
| --------- | -------- | -------- | -------------------------------------------------------------- |
| WQL Query | textarea | Yes      | Workday Query Language (WQL) query to execute.                 |
| Page Size | number   | No       | Maximum rows to return in this page. Minimum: 1. Maximum: 100. |
| Offset    | number   | No       | Zero-based row offset for this page. Minimum: 0.               |

#### Outputs

| Field            | Type        | Description                                                    |
| ---------------- | ----------- | -------------------------------------------------------------- |
| Query            | string      | The WQL query that was executed.                               |
| Results          | dict\_array | Rows returned in this page.                                    |
| Results Returned | number      | Number of rows returned in this page.                          |
| Total Available  | number      | Total rows reported by Workday for the complete query.         |
| Next Offset      | number      | Offset for the next page, or empty when this is the last page. |
| Has More         | boolean     | Whether Workday reports more rows after this page.             |

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