> Calendly developer docs. For page Markdown, append .md to any URL.
> Index: https://developer.calendly.com/llms.txt
> API catalog: https://developer.calendly.com/.well-known/api-catalog
> OpenAPI: https://developer.calendly.com/openapi/calendly-api.yaml
> OAuth authorization server: https://calendly.com/.well-known/oauth-authorization-server
> MCP protected resource: https://mcp.calendly.com/.well-known/oauth-protected-resource
> Scheduling MCP endpoint: https://mcp.calendly.com
> Docs search MCP: https://developer.calendly.com/_mcp/server

# List User Holidays

GET https://api.calendly.com/user_holidays

Returns a list of holidays in the holiday country for the user that you specify in `user`. The collection includes every holiday in that country, whether or not the user observes it. Holidays the user does not observe have `enabled: false`. If the user has turned off holidays for their country, every item has `enabled: false`. The collection is not empty.

The response returns the full collection. Calendly returns at most one entry per predefined holiday in the user's country, so the collection has fewer than 100 items. It does not support `count`, `page_token`, or a `pagination` object.

The default order matches Calendly's predefined holiday order for that country.

> `availability:read`

Reference: https://developer.calendly.com/api-docs/calendly-api/availability/list-user-holidays

## Authentication

- `Authorization` header (bearer token, required) — OAuth 2.0
- `Authorization` header (bearer token, required) — Personal Access Token

## Request

### Query parameters

- `user` (string, required) — The URI of the user whose holidays should be returned. Must be the authenticated user. Another user returns 403.

## Response

### 200

OK

- `collection` (list of UserHoliday, required) — The holidays for the user that you specify in `user` in their holiday country. Calendly returns at most one entry per predefined holiday in that country, so the array has fewer than 100 items. The response is not paginated. It does not support `count`, `page_token`, or a `pagination` object.

## Errors

### 400 Bad Request Error

Request is not valid

- `title` (enum, required)
  - Allowed values: `Invalid Argument`
- `message` (enum, required)
  - Allowed values: `The supplied parameters are invalid.`
- `details` (list of ErrorResponseDetailsItem, optional)

### 401 Unauthorized Error

Cannot authenticate caller

- `title` (enum, required)
  - Allowed values: `Unauthenticated`
- `message` (enum, required)
  - Allowed values: `The access token is invalid`, `The access token expired`, `The access token was revoked`
- `details` (list of ErrorResponseDetailsItem, optional)

### 403 Forbidden Error

Permission denied or insufficient scope

- `List-user-holidaysRequestForbiddenError`
  - ListUserHolidaysRequestForbiddenError0
  - InsufficientScopeError: InsufficientScopeError

### 404 Not Found Error

Requested resource not found

- `title` (enum, required)
  - Allowed values: `Resource Not Found`
- `message` (enum, required)
  - Allowed values: `The server could not find the requested resource.`
- `details` (list of ErrorResponseDetailsItem, optional)

### 429 Too Many Requests Error

Too Many Requests

- `title` (enum, required)
  - Allowed values: `Too Many Requests`
- `message` (enum, required)
  - Allowed values: `Rate limit exceeded. Please retry after some time.`
- `details` (list of ErrorResponseDetailsItem, optional)

### 500 Internal Server Error

An error has occurred on the server

- `title` (enum, required)
  - Allowed values: `Internal Server Error`
- `message` (enum, required)
  - Allowed values: `The server encountered an unexpected condition that prevented it from fulfilling the request.`
- `details` (list of ErrorResponseDetailsItem, optional)

## Types

### UserHoliday

A holiday from Calendly's predefined list for the user's country, and whether the user observes it. The response does not include a `uri` field.

- `key` (string, required) — Calendly's identifier for the holiday, including its country, for example `US.IND`. Unique across countries.
- `name` (string, required) — Holiday name, for example Independence Day.
- `country` (string, required) — ISO 3166-1 alpha-2 code of the holiday's country, for example `US`.
- `enabled` (boolean, required) — Whether the user observes this holiday. When `true`, the user is unavailable on `next_date` for every schedule and Event Type, and date-specific hours on that date do not open any time.
- `next_date` (string, required) — Next date the holiday is observed, in `YYYY-MM-DD` format.
- `observed` (boolean, required) — `true` when `next_date` has been moved from the holiday's actual date, for example to the nearest weekday.

### ErrorResponseDetailsItem

- `message` (string, required)
- `parameter` (string, optional)
- `code` (string, optional)

### ListUserHolidaysRequestForbiddenError0

Error Object

- `title` (enum, required)
  - Allowed values: `Permission Denied`
- `message` (enum, required)
  - Allowed values: `You do not have permission to access this resource.`, `You do not have permission`
- `details` (list of ErrorResponseDetailsItem, optional)

### InsufficientScopeError

Caller does not have required oauth scopes

- `title` (enum, required)
  - Allowed values: `Insufficient scope`
- `message` (enum, required)
  - Allowed values: `This operation requires the scopes listed in the 'required_scopes' array.`
- `required_scopes` (list of string, required)

## Examples

**Response**

```json
{
  "collection": [
    {
      "key": "US.IND",
      "name": "Independence Day",
      "country": "US",
      "enabled": true,
      "next_date": "2027-07-04",
      "observed": false
    },
    {
      "key": "US.JNT",
      "name": "Juneteenth National Independence Day",
      "country": "US",
      "enabled": true,
      "next_date": "2027-06-18",
      "observed": true
    }
  ]
}
```

**SDK Code**

```python User Holidays
import requests

url = "https://api.calendly.com/user_holidays"

querystring = {"user":"https://api.calendly.com/users/AAAAAAAAAAAAAAAA"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript User Holidays
const url = 'https://api.calendly.com/user_holidays?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go User Holidays
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.calendly.com/user_holidays?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby User Holidays
require 'uri'
require 'net/http'

url = URI("https://api.calendly.com/user_holidays?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java User Holidays
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.calendly.com/user_holidays?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php User Holidays
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.calendly.com/user_holidays?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp User Holidays
using RestSharp;

var client = new RestClient("https://api.calendly.com/user_holidays?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift User Holidays
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.calendly.com/user_holidays?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```