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

# List bookings

GET https://api.slotflow.dev/v1/bookings

List bookings for your organization with optional filters. Results are ordered by start time (most recent first) and paginated.


Reference: https://docs.slotflow.dev/api-reference/slotflow-api/bookings/list-bookings

## Authentication

- `Authorization` header (bearer token, required) — API key authentication. Pass your key as a Bearer token: ``` Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxx ``` Get your API key from the [Slotflow Dashboard](https://app.slotflow.dev).

## Request

### Query parameters

- `human_id` (string, optional) — Filter by human ID
- `status` (enum, optional) — Filter by booking status
  - Allowed values: `confirmed`, `cancelled`
- `date_from` (date, optional) — Filter bookings starting on or after this date
- `date_to` (date, optional) — Filter bookings starting on or before this date
- `limit` (integer, optional, default: 50) — Number of results to return (default 50, max 100)
- `offset` (integer, optional, default: 0) — Number of results to skip for pagination (default 0)

## Response

### 200

Paginated list of bookings

- `bookings` (list of Booking, optional)
- `total` (integer, optional) — Total matching bookings (for pagination)
- `limit` (integer, optional) — Number of results returned
- `offset` (integer, optional) — Number of results skipped

## Types

### Booking

- `id` (string, optional)
- `human_id` (string, optional)
- `starts_at` (datetime, optional) — Booking start time in UTC
- `ends_at` (datetime, optional) — Booking end time in UTC
- `duration_minutes` (integer, optional) — Duration in minutes
- `attendee_name` (string, optional) — Name of the person being booked
- `attendee_email` (string, optional, nullable) — Email of the attendee (optional)
- `status` (enum, optional)
  - Allowed values: `confirmed`, `cancelled`
- `metadata` (map from string to any, optional) — Arbitrary JSON metadata passed by your agent for workflow tracking
- `created_at` (datetime, optional)

## Examples

**Response**

```json
{
  "bookings": [
    {
      "id": "b9e4f2a1-3c5d-4e6f-8a9b-0c1d2e3f4a5b",
      "human_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
      "starts_at": "2026-03-10T14:00:00.000Z",
      "ends_at": "2026-03-10T14:30:00.000Z",
      "duration_minutes": 30,
      "attendee_name": "Alex Rivera",
      "attendee_email": "alex@startup.io",
      "status": "confirmed",
      "metadata": {
        "lead_id": "lead_8294"
      },
      "created_at": "2026-03-10T10:00:00.000Z"
    }
  ],
  "total": 847,
  "limit": 50,
  "offset": 0
}
```

**SDK Code**

```python Bookings_listBookings_example
import requests

url = "https://api.slotflow.dev/v1/bookings"

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

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

print(response.json())
```

```javascript Bookings_listBookings_example
const url = 'https://api.slotflow.dev/v1/bookings';
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 Bookings_listBookings_example
package main

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

func main() {

	url := "https://api.slotflow.dev/v1/bookings"

	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 Bookings_listBookings_example
require 'uri'
require 'net/http'

url = URI("https://api.slotflow.dev/v1/bookings")

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

HttpResponse<String> response = Unirest.get("https://api.slotflow.dev/v1/bookings")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.slotflow.dev/v1/bookings', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Bookings_listBookings_example
using RestSharp;

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

```swift Bookings_listBookings_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.slotflow.dev/v1/bookings")! 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()
```