> 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 Contact Lists

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

Returns the user's saved contact groupings: Lists (`static_list`) and Views (`dynamic_view`). This endpoint returns contact lists, not contacts. To get the contacts in a List or View, use List Contacts with the `contact_list` filter.

All of the user's Lists and Views come back in one response, without pages. A user can have at most 25 Lists and Views. `pagination.count` is the number of Lists and Views returned, and the other `pagination` fields are always `null`.

The order is the same as in the Calendly web app. Views that a CSV import creates are not returned, but they count toward the limit of 25 Lists and Views.

`contact_count` is set for every List. It is `null` for every View.

> `contacts:read`

Reference: https://developer.calendly.com/api-docs/calendly-api/contacts/list-contact-lists

## Authentication

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

## Request

### Query parameters

- `type` (enum, optional) — Return only Lists (`static_list`) or only Views (`dynamic_view`).
  - Allowed values: `static_list`, `dynamic_view`

## Response

### 200

OK

- `collection` (list of ContactList, required)
- `pagination` (Pagination, required)

## Errors

### 400 Bad Request Error

Request is not valid

- `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)

### 401 Unauthorized Error

Cannot authenticate caller

- `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)

### 403 Forbidden Error

Permission Denied or insufficient scope

- `List-contact-listsRequestForbiddenError`
  - ContactsError: ContactsError
  - InsufficientScopeError: InsufficientScopeError

### 429 Too Many Requests Error

Too Many Requests

- `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)

### 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

### ContactList

A saved grouping of contacts. A `static_list` (a List in Calendly) contains the contacts that a user adds and removes. A `dynamic_view` (a View in Calendly) is defined by saved filters, so its contacts change automatically.

- `uri` (string, required) — Canonical reference (unique identifier) for the contact list.
- `name` (string, required) — The name of the List or View.
- `type` (enum, required) — `static_list` for a List. `dynamic_view` for a View.
  - Allowed values: `static_list`, `dynamic_view`
- `contact_count` (integer, required, nullable) — The number of contacts on a `static_list`. Always set for a `static_list`. It is `null` for a `dynamic_view`.

### Pagination

- `count` (integer, required) — The number of rows to return
- `next_page` (string, required, nullable) — URI to return the next page of an ordered list ("null" indicates no additional results are available)
- `previous_page` (string, required, nullable) — URI to return the previous page of an ordered list ("null" indicates no additional results are available)
- `next_page_token` (string, required, nullable) — Token to return the next page of an ordered list ("null" indicates no additional results are available)
- `previous_page_token` (string, required, nullable) — Token to return the previous page of an ordered list ("null" indicates no additional results are available)

### ErrorResponseDetailsItem

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

### ContactsError

Permission Denied

- `title` (enum, required)
  - Allowed values: `Permission Denied`
- `message` (enum, required)
  - Allowed values: `Please upgrade to a paid Calendly account.`, `You do not have permission to access this resource.`, `Contact creation is not available. Required features are not enabled for your account.`

### 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": [
    {
      "uri": "https://api.calendly.com/contact_lists/AAAAAAAAAAAAAAAA",
      "name": "VIP Contacts",
      "type": "static_list",
      "contact_count": 42
    },
    {
      "uri": "https://api.calendly.com/contact_lists/BBBBBBBBBBBBBBBB",
      "name": "Upcoming Meetings",
      "type": "dynamic_view",
      "contact_count": null
    }
  ],
  "pagination": {
    "count": 2,
    "next_page": null,
    "previous_page": null,
    "next_page_token": null,
    "previous_page_token": null
  }
}
```

**SDK Code**

```python Lists and Views
import requests

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

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

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

print(response.json())
```

```javascript Lists and Views
const url = 'https://api.calendly.com/contact_lists';
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 Lists and Views
package main

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

func main() {

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

	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 Lists and Views
require 'uri'
require 'net/http'

url = URI("https://api.calendly.com/contact_lists")

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 Lists and Views
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.calendly.com/contact_lists")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Lists and Views
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.calendly.com/contact_lists', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Lists and Views
using RestSharp;

var client = new RestClient("https://api.calendly.com/contact_lists");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Lists and Views
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.calendly.com/contact_lists")! 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()
```