Workday · Capability

Workday HCM API — Locations

Workday HCM API — Locations. 2 operations. Lead operation: Get Locations. Self-contained Naftiko capability covering one Workday business surface.

Run with Naftiko WorkdayLocations

What You Can Do

GET
Getlocations — Get Locations
/v1/locations
GET
Getlocationbyid — Get Location by Id
/v1/locations/{id}

MCP Tools

get-locations

Get Locations

read-only idempotent
get-location-id

Get Location by Id

read-only idempotent

Capability Spec

hcm-locations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Workday HCM API — Locations
  description: 'Workday HCM API — Locations. 2 operations. Lead operation: Get Locations. Self-contained Naftiko capability
    covering one Workday business surface.'
  tags:
  - Workday
  - Locations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WORKDAY_API_KEY: WORKDAY_API_KEY
capability:
  consumes:
  - type: http
    namespace: hcm-locations
    baseUri: https://wd2-impl-services1.workday.com/ccx/api/v1/{tenant}
    description: Workday HCM API — Locations business capability. Self-contained, no shared references.
    resources:
    - name: locations
      path: /locations
      operations:
      - name: getlocations
        method: GET
        description: Get Locations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: locations-ID
      path: /locations/{ID}
      operations:
      - name: getlocationbyid
        method: GET
        description: Get Location by Id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.WORKDAY_API_KEY}}'
  exposes:
  - type: rest
    namespace: hcm-locations-rest
    port: 8080
    description: REST adapter for Workday HCM API — Locations. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/locations
      name: locations
      description: REST surface for locations.
      operations:
      - method: GET
        name: getlocations
        description: Get Locations
        call: hcm-locations.getlocations
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/locations/{id}
      name: locations-id
      description: REST surface for locations-ID.
      operations:
      - method: GET
        name: getlocationbyid
        description: Get Location by Id
        call: hcm-locations.getlocationbyid
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: hcm-locations-mcp
    port: 9090
    transport: http
    description: MCP adapter for Workday HCM API — Locations. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-locations
      description: Get Locations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hcm-locations.getlocations
      outputParameters:
      - type: object
        mapping: $.
    - name: get-location-id
      description: Get Location by Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hcm-locations.getlocationbyid
      outputParameters:
      - type: object
        mapping: $.