---
title: "When people are away"
method: GET
path: "/api/{org_id}/oncall/unavailability"
tags: ["OnCall"]
---

# When people are away

`GET /api/{org_id}/oncall/unavailability`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/oncall/unavailability`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/oncall/unavailability/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `org_id` string, required

## Query parameters

- `user_email` string
- `from` integer
- `to` integer

## Response `200`

Success

- Unavailability[]
  - `created_at` integer, required
  - `created_by` string, required
  - `end_at` integer, required: Exclusive, matching every other boundary here: the end instant already belongs to the shift they are back for.
  - `id` string, required
  - `org_id` string, required
  - `reason` string, nullable
  - `start_at` integer, required: Inclusive.
  - `user_email` string, required: Whose absence. Email, because email is the login.

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
