Availability and Out of Office
Each team member has an availability state: on_shift, off_hours (outside their work hours), absent (out of office) or inactive (no longer an active member). The state decides whether a contact owner or assignee receives new conversations: absent members never get automatic assignments, and an out-of-office period can name a substitute.
Contacts show the state of their owner in owner.availability_state.
The team member list (GET /api/v1/users, scope team:read) carries the same summary per member: availability_state, absent_until, substitute, has_work_hours (true when the member has work hours set, so on_shift with has_work_hours: false means "no work hours") and next_shift_start (UTC start of the next work-hours window; null when on shift, without work hours, or unknown).
Endpoints
| Method | Path | Scope |
|---|---|---|
GET / PUT | /api/v1/users/me/availability | none (the token's own user) |
GET / POST | /api/v1/users/me/absences | none (the token's own user) |
PATCH / DELETE | /api/v1/users/me/absences/{absence_id} | none (the token's own user) |
POST | /api/v1/users/me/absences/end-now | none (the token's own user) |
| same paths | /api/v1/users/{user_id}/availability, /absences, ... | team:read to read, team:update to change another member (only an Owner can change another Owner) |
GET | /api/v1/team/absences | team:read |
All endpoints on this page, including the workspace auto-assignment rules, need a plan with conversations (Basic, Professional, Scale or Enterprise). On the API Only plan they return 403 with {"detail": {"code": "feature_disabled", "feature": "conversations"}}, and saved auto-replies are not sent. Availability fields in other responses (availability_state on GET /users, owner.availability_state on contacts) stay present.
The /users/me endpoints act as the user the token belongs to. A token that changes the auto-reply fields (auto_reply_*) on PUT /users/me/availability also needs messages:create, because auto-replies are sent to customers in that user's name.
Work hours (PUT /users/me/availability)
Send only the fields you change.
| Field | Description |
|---|---|
timezone | IANA zone such as Europe/Berlin; null uses the workspace time zone |
work_schedule_enabled | false (default): always on shift |
work_schedule.time_ranges | [{ "days": [0,1,2,3,4], "start": "09:00", "end": "17:00" }], days 0 (Monday) to 6 (Sunday), local time, end before start means overnight |
default_substitute | Substitute suggested for new absences |
auto_reply_absence_enabled / auto_reply_off_hours_enabled | Turn the out-of-office / outside-work-hours auto-reply on or off |
auto_reply_absence_text / auto_reply_off_hours_text | Reply text (max 2000 characters). Variables: {{agent.name}}, {{agent.first_name}}, {{agent.substitute_name}}, {{agent.return_date}}, {{agent.next_shift}} and the standard contact variables ({{contact.first_name}}, {{contact.last_name}}, {{contact.name}}, {{contact.email}}, {{contact.phone}}, {{contact.birthday}}, {{contact.custom.<key>}}). A variable without a value renders empty |
auto_reply_absence_translations / auto_reply_off_hours_translations | { "<language>": "<text>" }, sent when the contact's language matches; same variables |
auto_reply_excluded_channel_types | Channel types that never get an auto-reply, for example ["email"] |
The response adds effective_timezone and status (availability_state, absent_until, next_shift_start, absence, substitute).
Out of office
curl -X POST "https://api.sendseven.com/api/v1/users/me/absences" \
-H "Authorization: Bearer s7_api_a1b2c3d4e5f6789012345678abcdef00" \
-H "Content-Type: application/json" \
-d '{"ends_at": "2026-11-03T08:00:00Z", "substitute_mode": "user", "substitute_user_id": "usr_7f3a9c", "note": "Vacation"}'
| Field | Description |
|---|---|
starts_at | ISO 8601, default now |
ends_at | ISO 8601, or null for "until switched off" |
substitute_mode | none, user, round_robin_inbox, round_robin_tag, least_busy_inbox, least_busy_tag |
substitute_user_id / substitute_inbox_id / substitute_tag_id | The ID the mode needs; a substitute user must be active |
note | Internal reason (max 255 characters), never shown to customers. On /users/{user_id}/... reads it is only returned to callers with team:update; the member sees their own |
mute_notifications | true (the default when omitted on create) pauses the member's notifications while the absence is running; see Notifications while away. PATCH accepts it too |
While absent with a substitute, new conversations of the member's contacts, and their assigned conversations that receive a new customer message, move to the substitute. POST /users/me/absences/end-now ends every running absence and returns {"success": true, "ended": 1}. Overlapping absences are rejected.
Team absences (GET /team/absences)
Current and upcoming out-of-office periods of the whole team, for example to show who is away and who covers for them. Returns every absence that is not cancelled and is running now or starts later (open-ended ones included), oldest start first. Paginated with page (default 1) and page_size (default 50, max 100).
{
"items": [
{
"id": "abs_9c1e",
"user_id": "usr_2b7d",
"user_name": "Ana Silva",
"starts_at": "2026-10-28T08:00:00Z",
"ends_at": null,
"is_open_ended": true,
"is_active": true,
"substitute_mode": "user",
"substitute_user_id": "usr_7f3a9c",
"substitute_user_name": "Ben Weber",
"substitute_inbox_id": null,
"substitute_inbox_name": null,
"substitute_tag_id": null,
"substitute_tag_name": null,
"mute_notifications": true
}
],
"pagination": {"page": 1, "page_size": 50, "total": 1, "total_pages": 1, "has_next": false, "has_prev": false}
}
is_active is true while the absence is running. A name is null when the member, inbox or tag no longer exists. The internal note is never part of this list; read it per member on GET /users/{user_id}/absences (needs team:update).
Notifications while away
An absence with mute_notifications: true pauses the member's notifications while it runs, on every delivery method (mobile push, browser push, email and the in-app bell), even when they have no quiet hours set:
- Push notifications are not sent.
- In-app notifications are still listed, but without a pop-up or sound.
- Notification emails are held and sent as one summary email when the absence ends. A daily or weekly summary email is postponed until then.
- Channel problems and balance alerts always come through (they cannot be switched off in the notification settings either), but still follow the member's normal quiet hours.
GET /api/v1/notifications/settings shows the pause on each delivery method: quiet_now is true, quiet_reason is absence (quiet_hours when the medium's own quiet hours apply) and quiet_until is the end of the absence (null for an open-ended one; when quiet hours also apply, the later of the two ends). A delivery method the member never configured is returned as null and carries no quiet state.
Email only during work hours
The email entry of the notification settings has email_delivery_window_source:
| Value | Emails are sent |
|---|---|
custom (default) | Inside the email_delivery_start_time / email_delivery_end_time / email_delivery_days window when email_delivery_schedule_enabled is true, otherwise at any time |
work_schedule | When email_delivery_schedule_enabled is true: only while the member is on shift according to their work hours (in their availability time zone), ignoring the start/end/days fields. Held while they are outside work hours or out of office. A member without work hours gets emails at any time |
curl -X PATCH "https://api.sendseven.com/api/v1/notifications/settings/email" \
-H "Authorization: Bearer s7_api_a1b2c3d4e5f6789012345678abcdef00" \
-H "Content-Type: application/json" \
-d '{"email_delivery_schedule_enabled": true, "email_delivery_window_source": "work_schedule"}'
Other values return 422; sending it for another delivery method (/settings/in_app and so on) returns 400. On the other entries the field is null.
Workspace auto-assignment rules
How owners, work hours and absences affect automatic assignment is set once per workspace.
curl -X PUT "https://api.sendseven.com/api/v1/settings/auto-assignment" \
-H "Authorization: Bearer s7_api_a1b2c3d4e5f6789012345678abcdef00" \
-H "Content-Type: application/json" \
-d '{"owner_off_hours": "use_routing", "routing_when_nobody_on_shift": "next_shift_first"}'
GET /api/v1/settings/auto-assignment (scope settings:read) returns the current values plus updated_at. PUT (scope settings:update) changes only the keys you send and returns the full settings.
| Key | Values | Meaning |
|---|---|---|
assign_contact_owner_on_new_conversation | true (default) / false | New conversations of an owned contact go to the owner |
owner_off_hours | assign_anyway (default), use_routing, keep_unassigned | When the owner is outside their work hours: assign them anyway, let the normal routing pick someone, or leave the conversation unassigned |
routing_when_nobody_on_shift | keep_unassigned (default), next_shift_first, ignore_schedules | When routing finds nobody on shift: leave unassigned, pick whoever's next shift starts soonest, or ignore work hours |
absent_without_substitute | keep_assigned (default), unassign | When a customer writes into a conversation whose assignee is out of office without a substitute |
Absent and inactive members never receive automatic assignments, whatever these settings say. Invalid values return 422 with detail.code invalid_auto_assignment.
When a member leaves the workspace, their owned contacts and open conversations can be handed over in the same call; see Team Management.