When I Work · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for When I Work API Documentation Time Off Requests API

6 actions 6 updates phrasing extends openapi/when-i-work-time-off-requests-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for When I Work's API. It is a proposal applied on top of the contract, not a document When I Work publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 6

$.info
$.paths['/2/requests'].get
$.paths['/2/requests'].post
$.paths['/2/requests/{request_id}'].get
$.paths['/2/requests/{request_id}'].put
$.paths['/2/requests/{request_id}'].delete

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for When I Work API Documentation Time Off Requests API
  version: 1.0.0
extends: openapi/when-i-work-time-off-requests-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-22'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 5
- target: $.paths['/2/requests'].get
  update:
    x-apievangelist-phrasing:
      intent: List time off requests
      effect: read
      questions:
      - Which employees have requested time off between two dates?
      - Can I filter time off requests by status or location?
      - Is it possible to include requests from users who were deleted?
      instructions:
      - text: List time off requests from {start} to {end}.
        slots:
          start: query.start
          end: query.end
      - text: Show {status} time off requests at location {location_id}.
        slots:
          status: query.status
          location_id: query.location_id
      - text: List time off requests of type {type} for user {user_id}.
        slots:
          type: query.type
          user_id: query.user_id
      method: generated
      generated: '2026-11-22'
- target: $.paths['/2/requests'].post
  update:
    x-apievangelist-phrasing:
      intent: Request time off
      effect: write
      questions:
      - How do I ask for a paid day off for an employee?
      - Can I record sick leave or unpaid time off requests?
      instructions:
      - text: Request {hours} hours of {type} time off for user {user_id}.
        slots:
          hours: requestBody.hours
          type: requestBody.type
          user_id: requestBody.user_id
      - text: Submit a time off request for {user_id} from {start_time} to {end_time}.
        slots:
          user_id: requestBody.user_id
          start_time: requestBody.start_time
          end_time: requestBody.end_time
      method: generated
      generated: '2026-11-22'
- target: $.paths['/2/requests/{request_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a time off request
      effect: read
      questions:
      - What are the details of one time off request?
      - Can I look up a single leave request by its ID?
      instructions:
      - text: Get time off request {request_id}.
        slots:
          request_id: path.request_id
      - text: Show the details of leave request {request_id}.
        slots:
          request_id: path.request_id
      method: generated
      generated: '2026-11-22'
- target: $.paths['/2/requests/{request_id}'].put
  update:
    x-apievangelist-phrasing:
      intent: Update a time off request
      effect: write
      questions:
      - Can I change the dates or hours on an existing time off request?
      - How do I approve or deny a leave request?
      instructions:
      - text: Change the hours on time off request {request_id} to {hours}.
        slots:
          request_id: path.request_id
          hours: requestBody.hours
      - text: Set leave request {request_id} status to {status}.
        slots:
          request_id: path.request_id
          status: requestBody.status
      method: generated
      generated: '2026-11-22'
- target: $.paths['/2/requests/{request_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a time off request
      effect: destructive
      questions:
      - Can I cancel a time off request before it's approved?
      - What happens to a leave request when it's deleted?
      instructions:
      - text: Delete time off request {request_id}.
        slots:
          request_id: path.request_id
      - text: Cancel leave request {request_id}.
        slots:
          request_id: path.request_id
      method: generated
      generated: '2026-11-22'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/when-i-work-time-off-requests-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.