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

# List my collections

GET https://movieknight-server-7d8h.onrender.com/api/collections

**What:** The signed-in user's collections as lightweight cards (defaults first, then by creation order).

**Auth:** Bearer token required.

**Query params:**

| Param | Type | Required | Description | Example |
|---|---|---|---|---|
| isDefault | string | no | `true` = defaults only (Favorites/Already Watched/Watchlist); `false` = custom only; omitted = all. | `true` |

**Returns:** `data = [card]`.

Reference: https://apidocs.movieknight.site/movie-knight-api/collections/list-my-collections

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/collections:
    get:
      operationId: list-my-collections
      summary: List my collections
      description: >-
        **What:** The signed-in user's collections as lightweight cards
        (defaults first, then by creation order).


        **Auth:** Bearer token required.


        **Query params:**


        | Param | Type | Required | Description | Example |

        |---|---|---|---|---|

        | isDefault | string | no | `true` = defaults only (Favorites/Already
        Watched/Watchlist); `false` = custom only; omitted = all. | `true` |


        **Returns:** `data = [card]`.
      tags:
        - subpackage_collections
      parameters:
        - name: isDefault
          in: query
          description: >-
            boolean, optional. true = only the 3 default lists (Favorites /
            Already Watched / Watchlist); false = only custom lists; omitted =
            all.
          required: false
          schema:
            type: boolean
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Collections_List my
                  collections_Response_200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiCollectionsRequestUnauthorizedError'
servers:
  - url: https://movieknight-server-7d8h.onrender.com
    description: Production (Render)
  - url: http://localhost:3000
    description: Local development
components:
  schemas:
    ApiCollectionsGetResponsesContentApplicationJsonSchemaDataItemsCoversItems:
      type: object
      properties:
        poster:
          type: string
        backdrop:
          type: string
      required:
        - poster
        - backdrop
      title: >-
        ApiCollectionsGetResponsesContentApplicationJsonSchemaDataItemsCoversItems
    ApiCollectionsGetResponsesContentApplicationJsonSchemaDataItems:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        sort:
          type: string
        author:
          type: string
        covers:
          type: array
          items:
            $ref: >-
              #/components/schemas/ApiCollectionsGetResponsesContentApplicationJsonSchemaDataItemsCoversItems
        isOwner:
          type: boolean
        isPublic:
          type: boolean
        movieIds:
          type: array
          items:
            type: integer
        createdAt:
          type: string
          format: date-time
        isDefault:
          type: boolean
        posterUrl:
          description: Any type
        likesCount:
          type: integer
        movieCount:
          type: integer
        savesCount:
          type: integer
      required:
        - id
        - name
        - sort
        - author
        - covers
        - isOwner
        - isPublic
        - movieIds
        - createdAt
        - isDefault
        - likesCount
        - movieCount
        - savesCount
      title: ApiCollectionsGetResponsesContentApplicationJsonSchemaDataItems
    Collections_List my collections_Response_200:
      type: object
      properties:
        ok:
          type: boolean
        data:
          type: array
          items:
            $ref: >-
              #/components/schemas/ApiCollectionsGetResponsesContentApplicationJsonSchemaDataItems
      required:
        - ok
        - data
      title: Collections_List my collections_Response_200
    GetApiCollectionsRequestUnauthorizedError:
      type: object
      properties:
        ok:
          type: boolean
        error:
          type: string
      required:
        - ok
        - error
      title: GetApiCollectionsRequestUnauthorizedError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## Examples

### 200 OK



**Request**

```json
{}
```

**Response**

```json
{
  "ok": true,
  "data": [
    {
      "id": "66b0c1d2e3f4a5b6c7d8e9f0",
      "name": "Favorites",
      "sort": "added_desc",
      "author": "moviefan",
      "covers": [
        {
          "poster": "/pB8BM7pdSp6B6Ih7QZ4DrQ3PmJK.jpg",
          "backdrop": "/hZkgoQYus5vegHoetLkCJzb17zJ.jpg"
        },
        {
          "poster": "/oYuLEt3zVCKq57qu2F8dT7NIa6f.jpg",
          "backdrop": "/s3TBrRGB1iav7gFOCNx3H31MoES.jpg"
        }
      ],
      "isOwner": true,
      "isPublic": false,
      "movieIds": [
        550,
        27205
      ],
      "createdAt": "2026-06-25T10:30:00.000Z",
      "isDefault": true,
      "likesCount": 12,
      "movieCount": 2,
      "savesCount": 5
    },
    {
      "id": "66b0c1d2e3f4a5b6c7d8e9f1",
      "name": "Already Watched",
      "sort": "added_desc",
      "author": "moviefan",
      "covers": [],
      "isOwner": true,
      "isPublic": false,
      "movieIds": [
        157336,
        299536,
        24428
      ],
      "createdAt": "2026-06-25T10:30:00.000Z",
      "isDefault": true,
      "likesCount": 8,
      "movieCount": 3,
      "savesCount": 3
    },
    {
      "id": "66b0c1d2e3f4a5b6c7d8e9f2",
      "name": "Watchlist",
      "sort": "added_desc",
      "author": "moviefan",
      "covers": [],
      "isOwner": true,
      "isPublic": false,
      "movieIds": [
        424,
        680,
        13,
        122
      ],
      "createdAt": "2026-06-25T10:30:00.000Z",
      "isDefault": true,
      "likesCount": 15,
      "movieCount": 4,
      "savesCount": 7
    }
  ]
}
```

**SDK Code**

```python 200 OK
import requests

url = "https://movieknight-server-7d8h.onrender.com/api/collections"

querystring = {"isDefault":"true"}

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript 200 OK
const url = 'https://movieknight-server-7d8h.onrender.com/api/collections?isDefault=true';
const options = {
  method: 'GET',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

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

```go 200 OK
package main

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

func main() {

	url := "https://movieknight-server-7d8h.onrender.com/api/collections?isDefault=true"

	payload := strings.NewReader("{}")

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

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

```ruby 200 OK
require 'uri'
require 'net/http'

url = URI("https://movieknight-server-7d8h.onrender.com/api/collections?isDefault=true")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

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

```java 200 OK
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://movieknight-server-7d8h.onrender.com/api/collections?isDefault=true")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://movieknight-server-7d8h.onrender.com/api/collections?isDefault=true', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp 200 OK
using RestSharp;

var client = new RestClient("https://movieknight-server-7d8h.onrender.com/api/collections?isDefault=true");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift 200 OK
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://movieknight-server-7d8h.onrender.com/api/collections?isDefault=true")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

### 200 Defaults only (?isDefault=true)



**Request**

```json
{}
```

**Response**

```json
{
  "ok": true,
  "data": [
    {
      "id": "66b0c1d2e3f4a5b6c7d8e9f0",
      "name": "Favorites",
      "sort": "added_desc",
      "author": "moviefan",
      "covers": [
        {
          "poster": "/pB8BM7pdSp6B6Ih7QZ4DrQ3PmJK.jpg",
          "backdrop": "/hZkgoQYus5vegHoetLkCJzb17zJ.jpg"
        },
        {
          "poster": "/oYuLEt3zVCKq57qu2F8dT7NIa6f.jpg",
          "backdrop": "/s3TBrRGB1iav7gFOCNx3H31MoES.jpg"
        }
      ],
      "isOwner": true,
      "isPublic": false,
      "movieIds": [
        550,
        27205
      ],
      "createdAt": "2026-06-25T10:30:00.000Z",
      "isDefault": true,
      "likesCount": 12,
      "movieCount": 2,
      "savesCount": 5
    },
    {
      "id": "66b0c1d2e3f4a5b6c7d8e9f1",
      "name": "Already Watched",
      "sort": "added_desc",
      "author": "moviefan",
      "covers": [],
      "isOwner": true,
      "isPublic": false,
      "movieIds": [
        157336,
        299536,
        24428
      ],
      "createdAt": "2026-06-25T10:30:00.000Z",
      "isDefault": true,
      "likesCount": 8,
      "movieCount": 3,
      "savesCount": 3
    },
    {
      "id": "66b0c1d2e3f4a5b6c7d8e9f2",
      "name": "Watchlist",
      "sort": "added_desc",
      "author": "moviefan",
      "covers": [],
      "isOwner": true,
      "isPublic": false,
      "movieIds": [
        424,
        680,
        13,
        122
      ],
      "createdAt": "2026-06-25T10:30:00.000Z",
      "isDefault": true,
      "likesCount": 15,
      "movieCount": 4,
      "savesCount": 7
    }
  ]
}
```

**SDK Code**

```python 200 Defaults only (?isDefault=true)
import requests

url = "https://movieknight-server-7d8h.onrender.com/api/collections"

querystring = {"isDefault":"true"}

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript 200 Defaults only (?isDefault=true)
const url = 'https://movieknight-server-7d8h.onrender.com/api/collections?isDefault=true';
const options = {
  method: 'GET',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

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

```go 200 Defaults only (?isDefault=true)
package main

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

func main() {

	url := "https://movieknight-server-7d8h.onrender.com/api/collections?isDefault=true"

	payload := strings.NewReader("{}")

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

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

```ruby 200 Defaults only (?isDefault=true)
require 'uri'
require 'net/http'

url = URI("https://movieknight-server-7d8h.onrender.com/api/collections?isDefault=true")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

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

```java 200 Defaults only (?isDefault=true)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://movieknight-server-7d8h.onrender.com/api/collections?isDefault=true")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php 200 Defaults only (?isDefault=true)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://movieknight-server-7d8h.onrender.com/api/collections?isDefault=true', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp 200 Defaults only (?isDefault=true)
using RestSharp;

var client = new RestClient("https://movieknight-server-7d8h.onrender.com/api/collections?isDefault=true");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift 200 Defaults only (?isDefault=true)
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://movieknight-server-7d8h.onrender.com/api/collections?isDefault=true")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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