Skip to content

Plan publishing a group

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.

GET
https://mixetape.com/api/v1/groups/{id}/plan
PermissiongroupsWorks on

Authorisation

  • apiKeyHTTPrequired

Path parameters

  • idstringrequired

    The group's id

Query parameters

  • brandIdsoptionalarray ofstring

    Brands: every channel in them (comma-separated)

  • accountIdsoptionalarray ofstring

    Single channels (comma-separated)

Returns

200

The plan, account by account.

JSON
  • channelsarray ofobjectrequired
    13 properties
    • accountIdstringrequired
    • providerstringrequired
    • fitsbooleanrequired

      The platform takes these files at all

    • readybooleanrequired

      Nothing stops it: it would be posted

    • labelstringrequired

      What it is there: Short, Reel, Carousel, Album…

    • problemsarray ofstringrequired

      What stops it

    • warningsarray ofstringrequired

      What would go out, but not ideally

    • nameoptionalstring
    • platformoptionalstring
    • brandsoptionalarray ofstring

      The chosen brands this channel is in

    • formatoptionalvideoorimageorcarouselornull
    • captionoptionalstring | null
    • metadataoptionalobject

      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.

JSON
  • errorobjectrequired
    3 properties
    • codeinvalid_requestorinvalid_fieldormissing_fieldorunknown_fieldorunauthorizedormissing_permission+22 morerequired

      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
    • messagestringrequired

      What went wrong, in plain words

    • fieldoptionalstring

      The input field it is about, if any

401

No valid API key.

JSON
  • errorobjectrequired
    3 properties
    • codeinvalid_requestorinvalid_fieldormissing_fieldorunknown_fieldorunauthorizedormissing_permission+22 morerequired

      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
    • messagestringrequired

      What went wrong, in plain words

    • fieldoptionalstring

      The input field it is about, if any

403

The key lacks the permission this needs.

JSON
  • errorobjectrequired
    3 properties
    • codeinvalid_requestorinvalid_fieldormissing_fieldorunknown_fieldorunauthorizedormissing_permission+22 morerequired

      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
    • messagestringrequired

      What went wrong, in plain words

    • fieldoptionalstring

      The input field it is about, if any

404

Not found, or not yours.

JSON
  • errorobjectrequired
    3 properties
    • codeinvalid_requestorinvalid_fieldormissing_fieldorunknown_fieldorunauthorizedormissing_permission+22 morerequired

      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
    • messagestringrequired

      What went wrong, in plain words

    • fieldoptionalstring

      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, …

JSON
  • errorobjectrequired
    3 properties
    • codeinvalid_requestorinvalid_fieldormissing_fieldorunknown_fieldorunauthorizedormissing_permission+22 morerequired

      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
    • messagestringrequired

      What went wrong, in plain words

    • fieldoptionalstring

      The input field it is about, if any

429

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

JSON
  • errorobjectrequired
    3 properties
    • codeinvalid_requestorinvalid_fieldormissing_fieldorunknown_fieldorunauthorizedormissing_permission+22 morerequired

      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
    • messagestringrequired

      What went wrong, in plain words

    • fieldoptionalstring

      The input field it is about, if any

Navigation

Type to search…

↑↓ navigate↵ selectEsc close