# Get holiday mode

Get whether a team member's holiday mode is on, and when it ends.

[endpoint]
method = "GET"
base_url = "https://incidents.betterstack.com"
path = "/api/v3/holiday-mode"

[[query_param]]
name = "user_id"
type = "string"
description = "The team member whose holiday mode this is, as `u123` or their e-mail address. Required with an organization API token. With OAuth, leave it out to use your own holiday mode. Get the user ID via [List team members](/docs/uptime/api/team-members/list/). Letter case doesn't matter in an e-mail address."

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"
[/endpoint]

[responses]
[[response]]
status = 200
description = "Returns the holiday mode."
body = '''
{
  "data": {
    "id": "u123",
    "type": "holiday_mode",
    "attributes": {
      "on_holiday": true,
      "holiday_ends_at": "2026-12-24T09:00:00Z"
    }
  }
}
'''

[[response]]
status = 401
description = "The API token is missing or invalid."
body = '''
{
  "errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-an-incidents-api-token"
}
'''

[[response]]
status = 403
description = "Your role doesn't allow viewing this, or the token can't be used for this API. A team API token can't be used, and an OAuth token can't name someone else in `user_id`."
body = '''
{
  "errors": "Holiday mode belongs to a person, so it needs an OAuth token that signs in as them, or an organization API token with `user_id`. Team API tokens and agent tokens are refused."
}
'''

[[response]]
status = 422
description = "An organization API token sent no `user_id`, or it names no team member of the organization."
body = '''
{
  "errors": "`user_id` names no team member of your organization. Give their `u123` id or e-mail."
}
'''
[/responses]

[params]
title = "Response attributes"

[[param]]
name = "id"
type = "string"
description = "The ID of the holiday mode, such as `u123`."

[[param]]
name = "type"
type = "string"
description = "Always `holiday_mode`."

[[param]]
name = "on_holiday"
type = "boolean"
description = "Whether the team member is on holiday now."

[[param]]
name = "holiday_ends_at"
type = "datetime or null"
description = "When the holiday ends, rounded up to the whole second. `null` when holiday mode is off. In ISO 8601 format, such as `2026-07-01T12:00:00Z`."
[/params]

#### Example cURL

```shell
[label Get holiday mode]
curl --request GET \
  --url https://incidents.betterstack.com/api/v3/holiday-mode \
  --header "Authorization: Bearer $TOKEN"
```
