Skip to content
roomify

Engineering

Workday API Explained with Live Demonstrations

Workday holds some of the most sensitive and operationally important data in a company: workers, organizations, jobs, compensation, absence, payroll inputs and financial transactions. The Workday API is the controlled doorway into that data. It is how an identity provider can create a new hire, how a data warehouse can pull a daily headcount report, and how a custom portal can show an employee's current supervisory organization without copying the entire HR system.

That doorway is powerful, but it is not a single API. Workday exposes several integration surfaces, each with its own authentication model, payload format and ideal use case. This guide explains the moving parts and then walks through live demonstrations you can reproduce in a Workday sandbox tenant.

In this guide: API surfaces, authentication, token demo, REST worker demo, SOAP demo, report demo, production checklist.

What the Workday API actually is

Most integration problems start with choosing the wrong surface. Workday's public integration options generally fall into four buckets:

SurfaceBest forPayload
Workday Web ServicesDeep HR, payroll and financial operationsSOAP XML
Workday REST APIReadable worker, organization and staffing dataJSON
Report as a ServiceCurated reports owned by the businessJSON, XML or CSV
Workday ExtendCustom apps inside the Workday experienceREST and GraphQL-style models

The important distinction is not old versus new. SOAP-based Workday Web Services still expose operations that the REST API does not. REST is easier to consume, but it covers a narrower, resource-oriented slice of the platform. Report as a Service is often the fastest route when the business already trusts a report's logic and simply needs the output elsewhere.

Authentication: tokens before requests

Workday integrations are normally authenticated with OAuth 2.0. A confidential integration gets a client ID and client secret, exchanges them for an access token, and sends that token as a bearer credential on subsequent calls. The client credentials grant is common for server-to-server jobs where no human is present.

For SOAP services, you may also encounter WS-Security username tokens. Those are common in older integrations and still appear in enterprise landscapes. The principle is the same: authenticate once, keep credentials out of application code, and grant the integration only the domains it needs.

Before any request works, an administrator usually needs to complete three setup steps in Workday:

  1. Create or identify an Integration System User.
  2. Register an API client and copy the client ID and secret into a secret manager.
  3. Grant the integration security group access to the required domain security policies.

A valid token with the wrong domain permissions will still return an authorization error. Authentication and authorization are separate failures, so log them separately.

Live demonstration 1: exchange credentials for a token

Use a sandbox tenant and replace the host, tenant alias, client ID and client secret with your own values. Never paste real secrets into a shell history that other people can read.

curl -X POST "https://{host}/ccx/oauth2/{tenant}/token" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials" \
  -d "client_id=${WORKDAY_CLIENT_ID}" \
  -d "client_secret=${WORKDAY_CLIENT_SECRET}"

A successful response looks like this, although the exact lifetime and token value will differ:

{
  "access_token": "eyJhbGciOiJSUzI1NiIs...",
  "token_type": "Bearer",
  "expires_in": 3600
}

Store the token in memory only for as long as it is valid. Do not write it to a log, a browser local storage bucket or a support ticket. A token is a temporary password with the integration's permissions attached to it.

Live demonstration 2: look up workers with REST

With a token in hand, the REST API becomes a normal JSON resource. This request asks for a small page of workers:

curl "https://{host}/ccx/api/v1/{tenant}/workers?limit=10&offset=0" \
  -H "Authorization: Bearer ${WORKDAY_ACCESS_TOKEN}" \
  -H "Accept: application/json"

A trimmed response might look like the following. The field names and available properties depend on your tenant, version and security access, so treat this as a shape rather than a guaranteed schema:

{
  "total": 2,
  "data": [
    {
      "id": "3f6c2b1a9d7e4f0c",
      "descriptor": "Avery Chen",
      "href": "https://{host}/ccx/api/v1/{tenant}/workers/3f6c2b1a9d7e4f0c"
    },
    {
      "id": "b81d4e7a2c9f6301",
      "descriptor": "Morgan Patel",
      "href": "https://{host}/ccx/api/v1/{tenant}/workers/b81d4e7a2c9f6301"
    }
  ]
}

To fetch one worker, use the returned ID rather than guessing an employee number:

curl "https://{host}/ccx/api/v1/{tenant}/workers/3f6c2b1a9d7e4f0c" \
  -H "Authorization: Bearer ${WORKDAY_ACCESS_TOKEN}" \
  -H "Accept: application/json"

This is the pattern to remember: list resources, read the stable id and href, then request the detail you need. Do not build integrations around display names or email addresses. Those values change, while the Workday ID remains the reliable join key.

Live demonstration 3: a SOAP request for deeper HR data

Some operations are only available through Workday Web Services. The request is verbose, but the structure is predictable: an envelope, optional security headers, and a versioned service operation.

<soapenv:Envelope
  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:wd="urn:com.workday/bsvc">
  <soapenv:Header/>
  <soapenv:Body>
    <wd:Get_Workers_Request version="v45.0">
      <wd:Request_References>
        <wd:Worker_Reference>
          <wd:ID wd:type="WID">3f6c2b1a9d7e4f0c</wd:ID>
        </wd:Worker_Reference>
      </wd:Request_References>
    </wd:Get_Workers_Request>
  </soapenv:Body>
</soapenv:Envelope>

Send it to the versioned Human Resources endpoint with the content type set to XML:

curl -X POST "https://{host}/ccx/service/{tenant}/Human_Resources/v45.0" \
  -H "Content-Type: text/xml; charset=utf-8" \
  -H "Authorization: Bearer ${WORKDAY_ACCESS_TOKEN}" \
  --data-binary @get-workers.xml

The response contains a Get_Workers_Response with worker data, references and response metadata. A production client should validate the response against the WSDL version it was built for, handle SOAP faults explicitly, and treat optional elements as optional. XML schemas are contracts, but tenants still differ in which fields are populated.

Live demonstration 4: pull a report as a service

Report as a Service is often the most practical integration point. The report owner defines the columns, filters and business logic in Workday. Your integration asks for the result in a machine-readable format.

curl "https://{host}/ccx/service/customreport2/{tenant}/{owner}/{report}?format=json" \
  -H "Authorization: Bearer ${WORKDAY_ACCESS_TOKEN}" \
  -H "Accept: application/json"

A simple report might return an array of objects:

[
  {
    "Employee_ID": "10042",
    "Worker": "Avery Chen",
    "Supervisory_Organization": "Product Design",
    "Location": "Colorado Springs",
    "Hire_Date": "2024-02-12"
  },
  {
    "Employee_ID": "10057",
    "Worker": "Morgan Patel",
    "Supervisory_Organization": "Customer Success",
    "Location": "Denver",
    "Hire_Date": "2023-09-18"
  }
]

This approach has a useful governance benefit: the business owns the report definition, while engineering owns the delivery pipeline. When a column changes, the report owner can update it without forcing a new API client release. The trade-off is that report performance and output shape are only as good as the report design.

For teams that need a broader reporting primer, the workday-reporting-training walkthrough is a useful companion when you are mapping report fields to an external schema.

Pagination, filtering and change detection

Assume every collection is larger than your first page. Workday REST collections commonly use limit and offset, and the response usually includes a total count. A safe loop asks for a modest page size, advances the offset by the number of records returned, and stops when the returned page is empty or the offset reaches the total.

offset = 0
page_size = 50

while True:
    response = get_workers(limit=page_size, offset=offset)
    rows = response["data"]
    if not rows:
        break
    process(rows)
    offset += len(rows)
    if offset >= response["total"]:
        break

For recurring synchronization, avoid downloading the entire population every hour if the API exposes a better change signal. Report as a Service can include a last-updated column, and some Workday objects expose effective-dated or audit-friendly fields. Whatever the mechanism, record the high-water mark and make the job idempotent so a retry does not create duplicates.

Errors, retries and observability

Treat HTTP status codes as categories, not as individual bugs. A 400 usually means the request shape is wrong. 401 means the token is missing, expired or invalid. 403 means the identity is authenticated but not allowed to read that domain or object. 404 means the resource or endpoint is wrong. 429 means you are being throttled. 5xx means the service or an upstream dependency failed.

Retry only the failures that can succeed later. Use exponential backoff with jitter for 429 and transient 5xx responses. Do not retry a 400 or 403 without changing the request. Capture the Workday request ID from the response headers and put it in your logs. When you need vendor support, that ID is often more useful than a screenshot of the error message.

Good integration logs answer four questions without exposing secrets: which tenant and environment was called, which operation ran, how long it took, and what the sanitized outcome was. Never log bearer tokens, client secrets, full worker records or compensation values.

A production checklist

  • Use a dedicated Integration System User, not a real employee account.
  • Grant the narrowest domain permissions that satisfy the use case.
  • Keep client secrets in a managed secret store and rotate them on a schedule.
  • Cache access tokens until shortly before expiry instead of requesting one per call.
  • Page through collections and persist a high-water mark for incremental jobs.
  • Validate identifiers and never use display names as primary keys.
  • Handle 401, 403, 429 and 5xx differently.
  • Run against a sandbox tenant first, then promote the same configuration to production.
  • Monitor failures, latency and record counts so a silent partial sync is visible.

The Workday API rewards a boring, disciplined integration: narrow permissions, short-lived tokens, small pages, idempotent jobs and logs that are useful without being dangerous. Start with one read-only demonstration, prove the authentication and data shape, and only then add writes or scheduled synchronization. That sequence keeps the powerful parts of the platform from becoming the fragile parts of your system.