---
title: "Plan publishing a group"
description: "For each account of the given brands and accounts: whether the group can go there and as what (Short, Reel, Carousel, Album, Pin…), what stops it, what is not ideal, and the caption and metadata the post would carry. Publishes nothing.\n\nNeeds the **groups** 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 › Groups

`GET /api/v1/groups/{id}/plan`

For each account of the given brands and accounts: whether the group can go there and as what (Short, Reel, Carousel, Album, Pin…), what stops it, what is not ideal, and the caption and metadata the post would carry. Publishes nothing.

Needs the **groups** permission.

## Authentication

- `apiKey`, http, header `Authorization`

## Path parameters

- `planGroup.path.id` (string, required) — The group's id

## Query parameters

- `planGroup.query.brandIds` (array<string>, optional) — Brands: every channel in them (comma-separated)
- `planGroup.query.accountIds` (array<string>, optional) — Single channels (comma-separated)

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://mixetape.com/api/v1/groups/string/plan';
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/groups/string/plan"

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

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

print(response.text)
```

## Responses

### 200

The plan, account by account.

#### Example

```json
{
  "channels": [
    {
      "accountId": "string",
      "name": "string",
      "provider": "string",
      "platform": "string",
      "brands": [
        "string"
      ],
      "fits": true,
      "ready": true,
      "format": "video",
      "label": "string",
      "problems": [
        "string"
      ],
      "warnings": [
        "string"
      ],
      "caption": "string",
      "metadata": {}
    }
  ]
}
```

- `planGroup.response.200.channels` (array<object>, required)
  - `planGroup.response.200.channels.accountId` (string, required)
  - `planGroup.response.200.channels.provider` (string, required)
  - `planGroup.response.200.channels.fits` (boolean, required) — The platform takes these files at all
  - `planGroup.response.200.channels.ready` (boolean, required) — Nothing stops it: it would be posted
  - `planGroup.response.200.channels.label` (string, required) — What it is there: Short, Reel, Carousel, Album…
  - `planGroup.response.200.channels.problems` (array<string>, required) — What stops it
  - `planGroup.response.200.channels.warnings` (array<string>, required) — What would go out, but not ideally
  - `planGroup.response.200.channels.name` (string, optional)
  - `planGroup.response.200.channels.platform` (string, optional)
  - `planGroup.response.200.channels.brands` (array<string>, optional) — The chosen brands this channel is in
  - `planGroup.response.200.channels.format` (string | null, optional)
    - one of `"video"`, `"image"`, `"carousel"`, `null`
  - `planGroup.response.200.channels.caption` (string | null, optional)
  - `planGroup.response.200.channels.metadata` (object, optional) — What the post would carry

### 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"
  }
}
```

- `planGroup.response.400.error` (object, required)
  - `planGroup.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"`
  - `planGroup.response.400.error.message` (string, required) — What went wrong, in plain words
  - `planGroup.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"
  }
}
```

- `planGroup.response.401.error` (object, required)
  - `planGroup.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"`
  - `planGroup.response.401.error.message` (string, required) — What went wrong, in plain words
  - `planGroup.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"
  }
}
```

- `planGroup.response.403.error` (object, required)
  - `planGroup.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"`
  - `planGroup.response.403.error.message` (string, required) — What went wrong, in plain words
  - `planGroup.response.403.error.field` (string, optional) — The input field it is about, if any

### 404

Not found, or not yours.

#### Example

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

- `planGroup.response.404.error` (object, required)
  - `planGroup.response.404.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"`
  - `planGroup.response.404.error.message` (string, required) — What went wrong, in plain words
  - `planGroup.response.404.error.field` (string, optional) — The input field it is about, if any

### 409

Not possible in its current state: invalid_post_state, account_needs_reconnect, file_not_ready, idempotency_in_progress, …

#### Example

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

- `planGroup.response.409.error` (object, required)
  - `planGroup.response.409.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"`
  - `planGroup.response.409.error.message` (string, required) — What went wrong, in plain words
  - `planGroup.response.409.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"
  }
}
```

- `planGroup.response.429.error` (object, required)
  - `planGroup.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"`
  - `planGroup.response.429.error.message` (string, required) — What went wrong, in plain words
  - `planGroup.response.429.error.field` (string, optional) — The input field it is about, if any


Source: https://docs.mixetape.com/api/Groups/planGroup/index.md
