---
title: "list_posts"
description: "List posts, newest scheduled time first, a page at a time — narrow by account, platform, status, time or words in the title/caption. Statuses: scheduled (waiting in mixetape, editable with update_post), publishing (uploading), uploaded (on the platform, private until its time), published (live; change with edit_published_post), failed, cancelled. Returns { posts, nextCursor }; pass nextCursor back as cursor for the next page (null on the last). Needs the **read** permission. Also available as the MCP tool `list_posts`."
---

> 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 › read

`POST /api/v1/tools/list_posts`

List posts, newest scheduled time first, a page at a time — narrow by account, platform, status, time or words in the title/caption. Statuses: scheduled (waiting in mixetape, editable with update_post), publishing (uploading), uploaded (on the platform, private until its time), published (live; change with edit_published_post), failed, cancelled. Returns { posts, nextCursor }; pass nextCursor back as cursor for the next page (null on the last). Needs the **read** permission. Also available as the MCP tool `list_posts`.

## Authentication

- `apiKey`, http, header `Authorization`

## Request body

_Required._

- `list_posts.accountId` (array<string>, optional) — Only posts on these accounts (list_accounts ids)
- `list_posts.provider` (array<string>, optional) — Only posts on these platforms, e.g. youtube, instagram
- `list_posts.status` (array<string>, optional) — Only these statuses
- `list_posts.search` (string, optional) — Words in the title, caption or description (case-insensitive)
- `list_posts.from` (string, optional) — ISO time; scheduled at or after
- `list_posts.to` (string, optional) — ISO time; scheduled at or before
- `list_posts.limit` (number, optional) — Posts per page: default 50, max 500
- `list_posts.cursor` (string, optional) — nextCursor from the previous page

## Example request

```json
{
  "accountId": [
    "string"
  ],
  "provider": [
    "string"
  ],
  "status": [
    "string"
  ],
  "search": "string",
  "from": "string",
  "to": "string",
  "limit": 0,
  "cursor": "string"
}
```

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://mixetape.com/api/v1/tools/list_posts';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    accountId: ['string'],
    provider: ['string'],
    status: ['string'],
    search: 'string',
    from: 'string',
    to: '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_posts"

payload = {
    "accountId": ["string"],
    "provider": ["string"],
    "status": ["string"],
    "search": "string",
    "from": "string",
    "to": "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_posts.response.200.result` (unknown, required) — What the tool returns

### 400

The request is invalid; `error` says why.

#### Example

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

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

### 401

No valid API key.

#### Example

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

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

### 403

The key lacks the permission this needs.

#### Example

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

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

### 404

Not found, or not yours.

#### Example

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

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


Source: https://docs.mixetape.com/api/read/list_posts/index.md
