Skip to main content
Languages: every operation supports cURL, Node.js (TypeScript), Python, Go, Ruby, and PHP. The first 15 operations on this page show all six languages; the remaining 70 show cURL and TypeScript — the two most-used.

Wfm API

Wfm endpoints exposed by the Devotel CPaaS API Base path: /api/v1/wfm Endpoint count: 83

Overview summary response shape

GET /api/v1/wfm/summary aggregates the whole scheduling overview in one response. The blocks below are the same shape the endpoint returns — every count is as-of-query-time, mirroring the list endpoints it reads from, so the KPI chip on the dashboard and the drill-in page it links to never disagree. Pass ?date=YYYY-MM-DD to pin a day; omit it and the date resolves to the tenant’s local operating day (same resolution the intraday panels use). The Node SDK has no typed summary() helper — call it through the generic request() escape hatch below. Request
Field semantics:
  • operating_date_is_override — true when you passed ?date=YYYY-MM-DD explicitly; false when the date resolved to your tenant’s local operating day (the same resolution the intraday staffing and adherence panels use).
  • forecast — null when no forecast rows exist for the day; otherwise per-channel required agent-minutes (required_agents × interval), resolved with the same math the forecast scheduler writes.
  • staffing — null when no roster exists for the day; otherwise the distinct agents rostered, assignment rows, and shift-window minutes (paid-included) resolved in each shift’s local timezone — matching the adherence scorer exactly across DST boundaries and midnight-spanning shifts.
  • requests — the agent self-serve queue; scoped to the caller. Managers (“owner”/“admin”) see org-wide counts; agents see only their own pending requests — the same scoping /wfm/requests applies, so the chip total and the page count cannot diverge.
  • adherence — live open events right now, split into currently non-adherent and awaiting-the-scorer buckets.
  • exceptions — adherence exceptions pending supervisor review only; approved/denied/cancelled close them, mirroring /wfm/adherence-exceptions.

Worked request and response samples

Copy the request as written, substitute your own ids, and compare the response envelope — a success in the same shape the numbered error sections spell out.

Open a shift for bids

POST /api/v1/wfm/open-shifts
Publish the shift to agents holding the required skill; the bid list endpoint tracks the claims until you fill it. Request

List adherence

GET /api/v1/wfm/adherence

List adherence-exceptions

GET /api/v1/wfm/adherence-exceptions

GET /api/v1/wfm/adherence-exceptions/trends

List conformance

GET /api/v1/wfm/adherence/conformance

List intraday

GET /api/v1/wfm/adherence/intraday

List team

GET /api/v1/wfm/adherence/team

List agent-flight-risk

GET /api/v1/wfm/agent-flight-risk

List the per-agent skill registry

GET /api/v1/wfm/agent-skills
Lists agent-skill rows — the registry schedule generation matches against each shift’s required_skills list. An agent is only proposed for a generated assignment when their registry skills cover the shift’s requirements. Skills are free-form tenant-defined text (up to 64 characters); proficiency_level runs 1 (novice) to 5 (expert). Filterable by agent_id and/or skill; composite-key cursor pagination stays stable across concurrent upserts/deletes. Available to all roles.

List agent-wellness

GET /api/v1/wfm/agent-wellness

List assignments

GET /api/v1/wfm/assignments

Get assignments

GET /api/v1/wfm/assignments/{id}
string
required
—

List forecasts

GET /api/v1/wfm/forecasts

List accuracy

GET /api/v1/wfm/forecasts/accuracy

List staffing

GET /api/v1/wfm/intraday/staffing

List leave-balances

GET /api/v1/wfm/leave-balances

Get leave-balances

Need this flow in Python, Go, Ruby, or PHP? The Worked sequences section renders this surface’s hero flows in the full six-language group.
GET /api/v1/wfm/leave-balances/{agentId}
string
required
Obtain from GET /api/v1/voice/agents.

List leave-policies

GET /api/v1/wfm/leave-policies

List open-shifts

GET /api/v1/wfm/open-shifts

Get open-shifts

GET /api/v1/wfm/open-shifts/{id}
string
required
—

List bids

GET /api/v1/wfm/open-shifts/{id}/bids
string
required
—

List overtime-offers

GET /api/v1/wfm/overtime-offers

Get overtime-offers

GET /api/v1/wfm/overtime-offers/{id}
string
required
—

List claims

GET /api/v1/wfm/overtime-offers/{id}/claims
string
required
—

List requests

GET /api/v1/wfm/requests

Get requests

GET /api/v1/wfm/requests/{id}
string
required
—

List breaches

GET /api/v1/wfm/rta/breaches

List stream

GET /api/v1/wfm/rta/stream

List shifts

GET /api/v1/wfm/shifts

Get shifts

GET /api/v1/wfm/shifts/{id}
string
required
—

List activities

GET /api/v1/wfm/shifts/{shiftId}/activities
string
required
—

List shrinkage

GET /api/v1/wfm/shrinkage

Get the WFM overview summary

GET /api/v1/wfm/summary
Single-request aggregate behind the scheduling overview: forecast coverage, rostered staffing, live adherence, pending requests, open shifts, unfilled overtime/VTO offers, and pending adherence exceptions for the operating day. Counts follow the same role scoping as the underlying list endpoints — non-managers see their own queue counts.
string
Operating-date override (YYYY-MM-DD). Defaults to the tenant’s local operating day — the same resolution the intraday staffing and adherence panels use.

List timesheets

GET /api/v1/wfm/timesheets

List payroll-export.csv

GET /api/v1/wfm/timesheets/payroll-export.csv

List vto-offers

GET /api/v1/wfm/vto-offers

Get vto-offers

GET /api/v1/wfm/vto-offers/{id}
string
required
—

List claims

GET /api/v1/wfm/vto-offers/{id}/claims
string
required
—

Adherence-exceptions wfm

POST /api/v1/wfm/adherence-exceptions

Create approve

POST /api/v1/wfm/adherence-exceptions/{id}/approve
string
required
—

Create cancel

POST /api/v1/wfm/adherence-exceptions/{id}/cancel
string
required
—

Create deny

POST /api/v1/wfm/adherence-exceptions/{id}/deny
string
required
—

Assignments wfm

POST /api/v1/wfm/assignments

Bulk assignments

POST /api/v1/wfm/assignments/bulk

Plan capacity

POST /api/v1/wfm/capacity/plan

Recompute forecasts

POST /api/v1/wfm/forecasts/recompute

What-if forecasts

POST /api/v1/wfm/forecasts/what-if

Create adjust

POST /api/v1/wfm/leave-balances/{agentId}/adjust
string
required
Obtain from GET /api/v1/voice/agents.

Leave-policies wfm

POST /api/v1/wfm/leave-policies

Open-shifts wfm

POST /api/v1/wfm/open-shifts

Create award

POST /api/v1/wfm/open-shifts/{id}/award
string
required
—

Create bids

POST /api/v1/wfm/open-shifts/{id}/bids
string
required
—

Create withdraw

POST /api/v1/wfm/open-shifts/{id}/bids/{bidId}/withdraw
string
required
—
string
required
—

Create cancel

POST /api/v1/wfm/open-shifts/{id}/cancel
string
required
—

Overtime-offers wfm

POST /api/v1/wfm/overtime-offers

Create award

POST /api/v1/wfm/overtime-offers/{id}/award
string
required
—

Create cancel

POST /api/v1/wfm/overtime-offers/{id}/cancel
string
required
—

Create claims

POST /api/v1/wfm/overtime-offers/{id}/claims
string
required
—

Create withdraw

POST /api/v1/wfm/overtime-offers/{id}/claims/{claimId}/withdraw
string
required
—
string
required
—

Apply rebalancing

POST /api/v1/wfm/rebalancing/apply

Recommend rebalancing

POST /api/v1/wfm/rebalancing/recommend

Requests wfm

POST /api/v1/wfm/requests

Create accept-swap

POST /api/v1/wfm/requests/{id}/accept-swap
string
required
—

Create approve

POST /api/v1/wfm/requests/{id}/approve
string
required
—

Create cancel

POST /api/v1/wfm/requests/{id}/cancel
string
required
—

Create deny

POST /api/v1/wfm/requests/{id}/deny
string
required
—

Generate schedules

POST /api/v1/wfm/schedules/generate

Commit generate

POST /api/v1/wfm/schedules/generate/commit

Shifts wfm

POST /api/v1/wfm/shifts

Create activities

POST /api/v1/wfm/shifts/{shiftId}/activities
string
required
—

Recompute shrinkage

POST /api/v1/wfm/shrinkage/recompute

Optimize staffing

POST /api/v1/wfm/staffing/optimize

Vto-offers wfm

POST /api/v1/wfm/vto-offers

Create award

POST /api/v1/wfm/vto-offers/{id}/award
string
required
—

Create cancel

POST /api/v1/wfm/vto-offers/{id}/cancel
string
required
—

Create claims

POST /api/v1/wfm/vto-offers/{id}/claims
string
required
—

Create withdraw

POST /api/v1/wfm/vto-offers/{id}/claims/{claimId}/withdraw
string
required
—
string
required
—

Upsert one agent-skill row (set or re-rate proficiency)

PUT /api/v1/wfm/agent-skills/{agentId}/{skill}
Upserts the (agent_id, skill) pair with the given proficiency_level — idempotent on the composite key, so re-rating an agent’s proficiency is a single PUT with no read-then-write race. Schedule generation only proposes an agent for a generated assignment when the agent’s registry skills cover the shift’s required_skills. Owner/admin only.
string
required
Obtain from GET /api/v1/voice/agents.
string
required
—

Patch assignments

PATCH /api/v1/wfm/assignments/{id}
string
required
—

Patch shifts

PATCH /api/v1/wfm/shifts/{id}
string
required
—

Remove one agent-skill row

DELETE /api/v1/wfm/agent-skills/{agentId}/{skill}
Removes the (agent_id, skill) pair from the registry. Returns 404 when the pair is not registered. Owner/admin only.
string
required
Obtain from GET /api/v1/voice/agents.
string
required
—

Delete assignments

DELETE /api/v1/wfm/assignments/{id}
string
required
—

Delete shifts

DELETE /api/v1/wfm/shifts/{id}
string
required
—

Delete activities

DELETE /api/v1/wfm/shifts/{shiftId}/activities/{id}
string
required
—
string
required
—

Worked sequences

The page above trims every operation past the fifteenth to cURL plus TypeScript. This section renders the first hero flow(s) past the cut in the full six-language group, so the operation a pipeline reaches next is copy-paste complete.

Get leave-balances

List leave-policies