---
title: "list_items"
description: "List the library's content items, newest first, with their files — narrowed by words in the title, caption or description. Returns { items, nextCursor }; pass nextCursor back as cursor for the next page (null on the last). Needs the **library** permission. Also available as the MCP tool `list_items`."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.mixetape.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: mixetape API › library

`POST /api/v1/tools/list_items`

List the library's content items, newest first, with their files — narrowed by words in the title, caption or description. Returns { items, nextCursor }; pass nextCursor back as cursor for the next page (null on the last). Needs the **library** permission. Also available as the MCP tool `list_items`.

## Authentication

- `apiKey`, http, header `Authorization`

## Request body

_Required._

- `list_items.search` (string, optional) — Words in the title, caption or description
- `list_items.limit` (number, optional) — Items per page: default 50, max 200
- `list_items.cursor` (string, optional) — nextCursor from the previous page

## Example request

```json
{
  "search": "string",
  "limit": 0,
  "cursor": "string"
}
```

## Code samples

### cURL

```curl
curl --request POST \
  --url https://mixetape.com/api/v1/tools/list_items \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "search": "string",
  "limit": 0,
  "cursor": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://mixetape.com/api/v1/tools/list_items';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({search: 'string', limit: 0, cursor: 'string'})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://mixetape.com/api/v1/tools/list_items"

payload = {
    "search": "string",
    "limit": 0,
    "cursor": "string"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

The tool's result.

#### Example

```json
{
  "result": null
}
```

- `list_items.response.200.result` (unknown, required) — What the tool returns

### 400

The request is invalid; `error` says why.

#### Example

```json
{
  "error": "string"
}
```

- `list_items.response.400.error` (string, required) — What went wrong, in plain words

### 401

No valid API key.

#### Example

```json
{
  "error": "string"
}
```

- `list_items.response.401.error` (string, required) — What went wrong, in plain words

### 403

The key lacks the permission this needs.

#### Example

```json
{
  "error": "string"
}
```

- `list_items.response.403.error` (string, required) — What went wrong, in plain words

### 404

Not found, or not yours.

#### Example

```json
{
  "error": "string"
}
```

- `list_items.response.404.error` (string, required) — What went wrong, in plain words


Source: https://docs.mixetape.com/api/library/list_items/index.md
