Users: personal presence and schedules
Your personal presence is the state inbound routing checks first, and these endpoints let a script, softphone, or browser widget drive the state for your own account. This section covers the two self-service presence operations — set one status now, or automate a weekly DND envelope — and what each status does to routing. Prefer the header toggle for a one-tap change; the Users API exists to power integrations. If you federated presence from Teams, Slack, Webex, or a calendar, the federation keeps writing the same record — use this page when you need control beyond federation. Authenticate with an API key (X-API-Key: dv_live_sk_…). Each response returns only your own persisted presence under data — this route never touches another user.
Set your presence
status accepts available, busy, away, or dnd, and the refinements below layer only when the status they describe is in force:
Return to available (clearing the refinements in one call):
user.presence.changed realtime event on the tenant channel, and invalidates the inbound-routing DND cache immediately — routing reads the new state on the next lookup. The response always returns your persisted presence, so a busy softphone’s read-back stabilises on the last write.
Example of the persisted shape:
Recurring DND schedule (business hours)
Set the envelope once; a 60-second worker tick flips presence betweenavailable inside the window and dnd outside it:
A manual time-bounded
dnd_until always wins over the schedule — a timed DND you set directly stays in force through its own expiry, then the schedule resumes.
Disable the automation without touching presence:
enabled, timezone, dedup-sorted daysOfWeek, startMinute, endMinute).
What presence does to inbound routing
dnd (or an in-force DND window) removes you from eligible claims the moment it lands — the routing cache invalidation is synchronous, not eventual. busy blocks the voice claim while the digital-assignment ledger still counts your load normally. For the ACD-audit semantics behind these four public values (and the five-state model dispatch actually checks), see Agent presence and aux-code lifecycle.
Related
- Presence federation settings — let Teams, Slack, Webex, Zoom calendars write this same state.
- Agent presence and aux-code lifecycle — the ACD state machine behind the four public values.
- My voice preferences — the sibling “Me” settings endpoints.