> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.sailorhq.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.sailorhq.io/_mcp/server.

# List Smart Lists

GET https://api.sailorhq.io/smart-lists

Returns a stable page of Smart Lists from the credential's one workspace.

Reference: https://docs.sailorhq.io/api-reference/smart-lists/list-smart-lists

## Authentication

- `Authorization` header (bearer token, required) — Workspace API key created in Sailor Settings > Integrations > API access.

## Request

### Query parameters

- `page_size` (integer, optional, default: 50) — Maximum resources to return. Defaults to 50 and is capped at 100.
- `page_token` (string, optional) — Opaque token returned by the preceding page. Keep all other query parameters unchanged.

## Response

### 200

A page of Smart Lists.

- `ok` (true, required)
- `smart_lists` (list of SmartListsGetResponsesContentApplicationJsonSchemaSmartListsItems, required)
- `next_page_token` (string, required, nullable)

## Errors

### 400 Bad Request Error

The page parameters are invalid.

- `type` (string, required)
- `title` (string, required)
- `status` (integer, required)
- `code` (enum, required)
  - Allowed values: `unauthorized`, `insufficient_scope`, `invalid_request`, `payload_too_large`, `unsupported_media_type`, `feature_not_available`, `resource_not_found`, `resource_conflict`, `integration_not_connected`, `integration_reauthorization_required`, `missing_idempotency_key`, `request_in_progress`, `idempotency_key_reused`, `rate_limit_exceeded`, `temporarily_unavailable`
- `request_id` (string, required)
- `detail` (string, required)

### 401 Unauthorized Error

Authentication failed.

- `type` (string, required)
- `title` (string, required)
- `status` (integer, required)
- `code` (enum, required)
  - Allowed values: `unauthorized`, `insufficient_scope`, `invalid_request`, `payload_too_large`, `unsupported_media_type`, `feature_not_available`, `resource_not_found`, `resource_conflict`, `integration_not_connected`, `integration_reauthorization_required`, `missing_idempotency_key`, `request_in_progress`, `idempotency_key_reused`, `rate_limit_exceeded`, `temporarily_unavailable`
- `request_id` (string, required)
- `detail` (string, required)

### 403 Forbidden Error

The credential lacks the required scope.

- `type` (string, required)
- `title` (string, required)
- `status` (integer, required)
- `code` (enum, required)
  - Allowed values: `unauthorized`, `insufficient_scope`, `invalid_request`, `payload_too_large`, `unsupported_media_type`, `feature_not_available`, `resource_not_found`, `resource_conflict`, `integration_not_connected`, `integration_reauthorization_required`, `missing_idempotency_key`, `request_in_progress`, `idempotency_key_reused`, `rate_limit_exceeded`, `temporarily_unavailable`
- `request_id` (string, required)
- `detail` (string, required)

### 429 Too Many Requests Error

Rate limit exceeded.

- `type` (string, required)
- `title` (string, required)
- `status` (integer, required)
- `code` (enum, required)
  - Allowed values: `unauthorized`, `insufficient_scope`, `invalid_request`, `payload_too_large`, `unsupported_media_type`, `feature_not_available`, `resource_not_found`, `resource_conflict`, `integration_not_connected`, `integration_reauthorization_required`, `missing_idempotency_key`, `request_in_progress`, `idempotency_key_reused`, `rate_limit_exceeded`, `temporarily_unavailable`
- `request_id` (string, required)
- `detail` (string, required)

### 503 Service Unavailable Error

The API is temporarily unavailable.

- `type` (string, required)
- `title` (string, required)
- `status` (integer, required)
- `code` (enum, required)
  - Allowed values: `unauthorized`, `insufficient_scope`, `invalid_request`, `payload_too_large`, `unsupported_media_type`, `feature_not_available`, `resource_not_found`, `resource_conflict`, `integration_not_connected`, `integration_reauthorization_required`, `missing_idempotency_key`, `request_in_progress`, `idempotency_key_reused`, `rate_limit_exceeded`, `temporarily_unavailable`
- `request_id` (string, required)
- `detail` (string, required)

## Types

### SmartListsGetResponsesContentApplicationJsonSchemaSmartListsItems

- `id` (string, required)
- `name` (string, required)
- `description` (string, required, nullable)
- `priority` (enum, required)
  - Allowed values: `highest`, `high`, `medium`, `low`, `lowest`
- `max_attempts_per_day` (integer, required, nullable)
- `max_attempts_total` (integer, required, nullable)
- `min_retry_seconds` (integer, required)
- `dial_timeout_seconds` (integer, required)
- `next_list_id` (string, required, nullable)
- `source` (string, required, nullable)
- `created_at` (datetime, required)
- `updated_at` (datetime, required)

## Examples

**Response**

```json
{
  "ok": true,
  "smart_lists": [
    {
      "id": "00000000-0000-4000-8000-000000000020",
      "name": "Fresh inbound leads",
      "description": "New demo requests called before every other source.",
      "priority": "highest",
      "max_attempts_per_day": 4,
      "max_attempts_total": 10,
      "min_retry_seconds": 2700,
      "dial_timeout_seconds": 30,
      "next_list_id": null,
      "source": "public_api",
      "created_at": "2026-08-08T00:00:00.000Z",
      "updated_at": "2026-08-08T00:00:00.000Z"
    }
  ],
  "next_page_token": null
}
```

**SDK Code**

```python Smart Lists_listSmartLists_example
import requests

url = "https://api.sailorhq.io/smart-lists"

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

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

print(response.json())
```

```javascript Smart Lists_listSmartLists_example
const url = 'https://api.sailorhq.io/smart-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 Smart Lists_listSmartLists_example
package main

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

func main() {

	url := "https://api.sailorhq.io/smart-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 Smart Lists_listSmartLists_example
require 'uri'
require 'net/http'

url = URI("https://api.sailorhq.io/smart-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 Smart Lists_listSmartLists_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.sailorhq.io/smart-lists")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Smart Lists_listSmartLists_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.sailorhq.io/smart-lists', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Smart Lists_listSmartLists_example
using RestSharp;

var client = new RestClient("https://api.sailorhq.io/smart-lists");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Smart Lists_listSmartLists_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.sailorhq.io/smart-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()
```