---
title: "List posts"
description: "Newest scheduled time first, a page at a time — narrowed by account, platform, status, time or words in the title, caption or description. Pass nextCursor back as cursor, with the same filters, for the next page.\n\nNeeds the **read** permission."
---

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

`GET /api/v1/posts`

Newest scheduled time first, a page at a time — narrowed by account, platform, status, time or words in the title, caption or description. Pass nextCursor back as cursor, with the same filters, for the next page.

Needs the **read** permission.

## Authentication

- `apiKey`, http, header `Authorization`

## Query parameters

- `listPosts.query.accountId` (array<string>, optional) — Only posts on these accounts (comma-separated)
- `listPosts.query.provider` (array<string>, optional) — Only posts on these platforms, e.g. youtube, instagram (comma-separated)
- `listPosts.query.status` (array<string>, optional) — Only posts in these statuses (comma-separated)
- `listPosts.query.groupId` (string, optional) — Only posts published from this group
- `listPosts.query.search` (string, optional) — Words in the title, caption or description
- `listPosts.query.from` (string, optional) — Scheduled at or after: ISO 8601 with a timezone offset
  - format `date-time`
- `listPosts.query.to` (string, optional) — Scheduled at or before: ISO 8601 with a timezone offset
  - format `date-time`
- `listPosts.query.updatedSince` (string, optional) — Changed at or after — status, error, time or words. Poll with the time of your last check to see what went out or failed since: ISO 8601 with a timezone offset
  - format `date-time`
- `listPosts.query.limit` (integer, optional) — Posts per page, default 50
  - min 1; max 500
- `listPosts.query.cursor` (string, optional) — nextCursor from the previous page

## Code samples

### cURL

```curl
curl --request GET \
  --url https://mixetape.com/api/v1/posts \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://mixetape.com/api/v1/posts';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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/posts"

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

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

print(response.text)
```

## Responses

### 200

A page of posts.

#### Example

```json
{
  "posts": [
    {
      "id": "string",
      "accountId": "string",
      "provider": "string",
      "mediaUrl": "string",
      "media": [
        {
          "url": "string",
          "kind": "video"
        }
      ],
      "groupId": "string",
      "caption": "string",
      "metadata": {},
      "scheduledAt": "2019-08-24T14:15:22Z",
      "leadMinutes": 0,
      "status": "scheduled",
      "platformPostId": "string",
      "platformUrl": "string",
      "error": "string",
      "attempts": 0,
      "publishedAt": "2019-08-24T14:15:22Z",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "nextCursor": "string"
}
```

- `listPosts.response.200.posts` (array<object>, required)
  - `listPosts.response.200.posts.id` (string, required)
  - `listPosts.response.200.posts.accountId` (string, required)
  - `listPosts.response.200.posts.provider` (string, required)
  - `listPosts.response.200.posts.mediaUrl` (string, required) — The first file
  - `listPosts.response.200.posts.media` (array<object>, required) — Every file, in order
    - `listPosts.response.200.posts.media.url` (string, required)
    - `listPosts.response.200.posts.media.kind` (string, required)
      - one of `"video"`, `"image"`
  - `listPosts.response.200.posts.scheduledAt` (string, required) — When it goes live
    - format `date-time`
  - `listPosts.response.200.posts.status` (string, required) — scheduled: waiting in mixetape, still editable; publishing: on its way; uploaded: on the platform, live at scheduledAt; published: live; failed: see error
    - one of `"scheduled"`, `"publishing"`, `"uploaded"`, `"published"`, `"failed"`, `"paused"`, `"cancelled"`
  - `listPosts.response.200.posts.attempts` (integer, required)
  - `listPosts.response.200.posts.groupId` (string | null, optional) — The group it came from
  - `listPosts.response.200.posts.caption` (string | null, optional)
  - `listPosts.response.200.posts.metadata` (object | null, optional) — The platform's own fields
  - `listPosts.response.200.posts.leadMinutes` (integer | null, optional) — Sent this long before scheduledAt
  - `listPosts.response.200.posts.platformPostId` (string | null, optional)
  - `listPosts.response.200.posts.platformUrl` (string | null, optional)
  - `listPosts.response.200.posts.error` (string | null, optional) — Why it failed, when it did
  - `listPosts.response.200.posts.publishedAt` (string | null, optional)
    - format `date-time`
  - `listPosts.response.200.posts.createdAt` (string, optional)
    - format `date-time`
  - `listPosts.response.200.posts.updatedAt` (string, optional)
    - format `date-time`
- `listPosts.response.200.nextCursor` (string | null, required) — Pass as cursor for the next page

### 400

The request is invalid; error.code says how (invalid_field, missing_field, unknown_field, media_not_supported, …) and error.field which field.

#### Example

```json
{
  "error": {
    "code": "invalid_request",
    "message": "string",
    "field": "string"
  }
}
```

- `listPosts.response.400.error` (object, required)
  - `listPosts.response.400.error.code` (string, required) — A stable code to branch on: - `invalid_request`: The request is malformed, e.g. the body is not a JSON object - `invalid_field`: A field has the wrong type or value (see field) - `missing_field`: A required field is missing (see field) - `unknown_field`: A field this endpoint does not take, often a typo (see field) - `unauthorized`: No valid API key - `missing_permission`: The API key lacks the permission this needs - `forbidden`: Not allowed for this caller - `not_found`: Not found, or not yours - `method_not_allowed`: The path exists but not with this method - `invalid_post_state`: The post's status does not allow this, e.g. cancelling a published post - `account_needs_reconnect`: The channel must be connected again before it can post - `file_not_ready`: The file's upload is not finished - `media_not_supported`: The platform cannot take these files as one post - `not_supported_by_platform`: The platform has no such feature - `nothing_to_publish`: The selection or group has no files - `already_exists`: Something with that name already exists - `conflict`: Not possible in the current state - `idempotency_key_reused`: The Idempotency-Key was used before with a different request - `idempotency_in_progress`: A request with this Idempotency-Key is still running - `source_unreachable`: The file at the given URL could not be fetched; check it is public - `platform_error`: The platform refused or failed the call; the message says why - `rate_limited`: Too many requests; wait Retry-After seconds - `platform_unavailable`: mixetape cannot connect that platform yet - `plan_required`: The account has no active plan; choose one at /subscribe - `channel_locked`: The channel is locked: the plan covers fewer channels than are connected - `channel_limit_reached`: Connecting this would go past the channels the plan covers - `daily_limit_reached`: The channel already has the most posts allowed on that day - `internal_error`: Something failed on mixetape's side
    - one of `"invalid_request"`, `"invalid_field"`, `"missing_field"`, `"unknown_field"`, `"unauthorized"`, `"missing_permission"`, `"forbidden"`, `"not_found"`, `"method_not_allowed"`, `"invalid_post_state"`, `"account_needs_reconnect"`, `"file_not_ready"`, `"media_not_supported"`, `"not_supported_by_platform"`, `"nothing_to_publish"`, `"already_exists"`, `"conflict"`, `"idempotency_key_reused"`, `"idempotency_in_progress"`, `"source_unreachable"`, `"platform_error"`, `"rate_limited"`, `"platform_unavailable"`, `"plan_required"`, `"channel_locked"`, `"channel_limit_reached"`, `"daily_limit_reached"`, `"internal_error"`
  - `listPosts.response.400.error.message` (string, required) — What went wrong, in plain words
  - `listPosts.response.400.error.field` (string, optional) — The input field it is about, if any

### 401

No valid API key.

#### Example

```json
{
  "error": {
    "code": "invalid_request",
    "message": "string",
    "field": "string"
  }
}
```

- `listPosts.response.401.error` (object, required)
  - `listPosts.response.401.error.code` (string, required) — A stable code to branch on: - `invalid_request`: The request is malformed, e.g. the body is not a JSON object - `invalid_field`: A field has the wrong type or value (see field) - `missing_field`: A required field is missing (see field) - `unknown_field`: A field this endpoint does not take, often a typo (see field) - `unauthorized`: No valid API key - `missing_permission`: The API key lacks the permission this needs - `forbidden`: Not allowed for this caller - `not_found`: Not found, or not yours - `method_not_allowed`: The path exists but not with this method - `invalid_post_state`: The post's status does not allow this, e.g. cancelling a published post - `account_needs_reconnect`: The channel must be connected again before it can post - `file_not_ready`: The file's upload is not finished - `media_not_supported`: The platform cannot take these files as one post - `not_supported_by_platform`: The platform has no such feature - `nothing_to_publish`: The selection or group has no files - `already_exists`: Something with that name already exists - `conflict`: Not possible in the current state - `idempotency_key_reused`: The Idempotency-Key was used before with a different request - `idempotency_in_progress`: A request with this Idempotency-Key is still running - `source_unreachable`: The file at the given URL could not be fetched; check it is public - `platform_error`: The platform refused or failed the call; the message says why - `rate_limited`: Too many requests; wait Retry-After seconds - `platform_unavailable`: mixetape cannot connect that platform yet - `plan_required`: The account has no active plan; choose one at /subscribe - `channel_locked`: The channel is locked: the plan covers fewer channels than are connected - `channel_limit_reached`: Connecting this would go past the channels the plan covers - `daily_limit_reached`: The channel already has the most posts allowed on that day - `internal_error`: Something failed on mixetape's side
    - one of `"invalid_request"`, `"invalid_field"`, `"missing_field"`, `"unknown_field"`, `"unauthorized"`, `"missing_permission"`, `"forbidden"`, `"not_found"`, `"method_not_allowed"`, `"invalid_post_state"`, `"account_needs_reconnect"`, `"file_not_ready"`, `"media_not_supported"`, `"not_supported_by_platform"`, `"nothing_to_publish"`, `"already_exists"`, `"conflict"`, `"idempotency_key_reused"`, `"idempotency_in_progress"`, `"source_unreachable"`, `"platform_error"`, `"rate_limited"`, `"platform_unavailable"`, `"plan_required"`, `"channel_locked"`, `"channel_limit_reached"`, `"daily_limit_reached"`, `"internal_error"`
  - `listPosts.response.401.error.message` (string, required) — What went wrong, in plain words
  - `listPosts.response.401.error.field` (string, optional) — The input field it is about, if any

### 403

The key lacks the permission this needs.

#### Example

```json
{
  "error": {
    "code": "invalid_request",
    "message": "string",
    "field": "string"
  }
}
```

- `listPosts.response.403.error` (object, required)
  - `listPosts.response.403.error.code` (string, required) — A stable code to branch on: - `invalid_request`: The request is malformed, e.g. the body is not a JSON object - `invalid_field`: A field has the wrong type or value (see field) - `missing_field`: A required field is missing (see field) - `unknown_field`: A field this endpoint does not take, often a typo (see field) - `unauthorized`: No valid API key - `missing_permission`: The API key lacks the permission this needs - `forbidden`: Not allowed for this caller - `not_found`: Not found, or not yours - `method_not_allowed`: The path exists but not with this method - `invalid_post_state`: The post's status does not allow this, e.g. cancelling a published post - `account_needs_reconnect`: The channel must be connected again before it can post - `file_not_ready`: The file's upload is not finished - `media_not_supported`: The platform cannot take these files as one post - `not_supported_by_platform`: The platform has no such feature - `nothing_to_publish`: The selection or group has no files - `already_exists`: Something with that name already exists - `conflict`: Not possible in the current state - `idempotency_key_reused`: The Idempotency-Key was used before with a different request - `idempotency_in_progress`: A request with this Idempotency-Key is still running - `source_unreachable`: The file at the given URL could not be fetched; check it is public - `platform_error`: The platform refused or failed the call; the message says why - `rate_limited`: Too many requests; wait Retry-After seconds - `platform_unavailable`: mixetape cannot connect that platform yet - `plan_required`: The account has no active plan; choose one at /subscribe - `channel_locked`: The channel is locked: the plan covers fewer channels than are connected - `channel_limit_reached`: Connecting this would go past the channels the plan covers - `daily_limit_reached`: The channel already has the most posts allowed on that day - `internal_error`: Something failed on mixetape's side
    - one of `"invalid_request"`, `"invalid_field"`, `"missing_field"`, `"unknown_field"`, `"unauthorized"`, `"missing_permission"`, `"forbidden"`, `"not_found"`, `"method_not_allowed"`, `"invalid_post_state"`, `"account_needs_reconnect"`, `"file_not_ready"`, `"media_not_supported"`, `"not_supported_by_platform"`, `"nothing_to_publish"`, `"already_exists"`, `"conflict"`, `"idempotency_key_reused"`, `"idempotency_in_progress"`, `"source_unreachable"`, `"platform_error"`, `"rate_limited"`, `"platform_unavailable"`, `"plan_required"`, `"channel_locked"`, `"channel_limit_reached"`, `"daily_limit_reached"`, `"internal_error"`
  - `listPosts.response.403.error.message` (string, required) — What went wrong, in plain words
  - `listPosts.response.403.error.field` (string, optional) — The input field it is about, if any

### 429

Over 120 requests a minute (rate_limited); wait and retry.

#### Example

```json
{
  "error": {
    "code": "invalid_request",
    "message": "string",
    "field": "string"
  }
}
```

- `listPosts.response.429.error` (object, required)
  - `listPosts.response.429.error.code` (string, required) — A stable code to branch on: - `invalid_request`: The request is malformed, e.g. the body is not a JSON object - `invalid_field`: A field has the wrong type or value (see field) - `missing_field`: A required field is missing (see field) - `unknown_field`: A field this endpoint does not take, often a typo (see field) - `unauthorized`: No valid API key - `missing_permission`: The API key lacks the permission this needs - `forbidden`: Not allowed for this caller - `not_found`: Not found, or not yours - `method_not_allowed`: The path exists but not with this method - `invalid_post_state`: The post's status does not allow this, e.g. cancelling a published post - `account_needs_reconnect`: The channel must be connected again before it can post - `file_not_ready`: The file's upload is not finished - `media_not_supported`: The platform cannot take these files as one post - `not_supported_by_platform`: The platform has no such feature - `nothing_to_publish`: The selection or group has no files - `already_exists`: Something with that name already exists - `conflict`: Not possible in the current state - `idempotency_key_reused`: The Idempotency-Key was used before with a different request - `idempotency_in_progress`: A request with this Idempotency-Key is still running - `source_unreachable`: The file at the given URL could not be fetched; check it is public - `platform_error`: The platform refused or failed the call; the message says why - `rate_limited`: Too many requests; wait Retry-After seconds - `platform_unavailable`: mixetape cannot connect that platform yet - `plan_required`: The account has no active plan; choose one at /subscribe - `channel_locked`: The channel is locked: the plan covers fewer channels than are connected - `channel_limit_reached`: Connecting this would go past the channels the plan covers - `daily_limit_reached`: The channel already has the most posts allowed on that day - `internal_error`: Something failed on mixetape's side
    - one of `"invalid_request"`, `"invalid_field"`, `"missing_field"`, `"unknown_field"`, `"unauthorized"`, `"missing_permission"`, `"forbidden"`, `"not_found"`, `"method_not_allowed"`, `"invalid_post_state"`, `"account_needs_reconnect"`, `"file_not_ready"`, `"media_not_supported"`, `"not_supported_by_platform"`, `"nothing_to_publish"`, `"already_exists"`, `"conflict"`, `"idempotency_key_reused"`, `"idempotency_in_progress"`, `"source_unreachable"`, `"platform_error"`, `"rate_limited"`, `"platform_unavailable"`, `"plan_required"`, `"channel_locked"`, `"channel_limit_reached"`, `"daily_limit_reached"`, `"internal_error"`
  - `listPosts.response.429.error.message` (string, required) — What went wrong, in plain words
  - `listPosts.response.429.error.field` (string, optional) — The input field it is about, if any


Source: https://docs.mixetape.com/api/Posts/listPosts/index.md
