Publish a group
One post per account that can take it, all at scheduledAt; the others are skipped with their reasons. The posts behave like any other — editable and cancellable until they go out. Once every post is out (or cancelled), the files are deleted from storage, and the emptied group with them.
Needs the publish permission.
https://mixetape.com/api/v1/groups/{id}/publishpublishWorks onAll platformsAuthorisation
Path parameters
Header parameters
- Idempotency-Keyoptionalstring
Any unique text (e.g. a UUID) for this one request. Repeating the request with the same key — say after a timeout — answers with the first response (header Idempotent-Replayed: true) instead of doing it twice. Kept for 24 hours; the same key with a different request is refused (422).
maxLength: 255
Request bodyJSONrequired
Returns
201
What was scheduled, skipped and failed.
400
The request is invalid; error.code says how (invalid_field, missing_field, unknown_field, media_not_supported, …) and error.field which field.
- errorobject{ … }required
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 objectinvalid_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 keymissing_permission: The API key lacks the permission this needsforbidden: Not allowed for this callernot_found: Not found, or not yoursmethod_not_allowed: The path exists but not with this methodinvalid_post_state: The post's status does not allow this, e.g. cancelling a published postaccount_needs_reconnect: The channel must be connected again before it can postfile_not_ready: The file's upload is not finishedmedia_not_supported: The platform cannot take these files as one postnot_supported_by_platform: The platform has no such featurenothing_to_publish: The selection or group has no filesalready_exists: Something with that name already existsconflict: Not possible in the current stateidempotency_key_reused: The Idempotency-Key was used before with a different requestidempotency_in_progress: A request with this Idempotency-Key is still runningsource_unreachable: The file at the given URL could not be fetched; check it is publicplatform_error: The platform refused or failed the call; the message says whyrate_limited: Too many requests; wait Retry-After secondsplatform_unavailable: mixetape cannot connect that platform yetplan_required: The account has no active plan; choose one at /subscribechannel_locked: The channel is locked: the plan covers fewer channels than are connectedchannel_limit_reached: Connecting this would go past the channels the plan coversdaily_limit_reached: The channel already has the most posts allowed on that dayinternal_error: Something failed on mixetape's side
401
No valid API key.
- errorobject{ … }required
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 objectinvalid_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 keymissing_permission: The API key lacks the permission this needsforbidden: Not allowed for this callernot_found: Not found, or not yoursmethod_not_allowed: The path exists but not with this methodinvalid_post_state: The post's status does not allow this, e.g. cancelling a published postaccount_needs_reconnect: The channel must be connected again before it can postfile_not_ready: The file's upload is not finishedmedia_not_supported: The platform cannot take these files as one postnot_supported_by_platform: The platform has no such featurenothing_to_publish: The selection or group has no filesalready_exists: Something with that name already existsconflict: Not possible in the current stateidempotency_key_reused: The Idempotency-Key was used before with a different requestidempotency_in_progress: A request with this Idempotency-Key is still runningsource_unreachable: The file at the given URL could not be fetched; check it is publicplatform_error: The platform refused or failed the call; the message says whyrate_limited: Too many requests; wait Retry-After secondsplatform_unavailable: mixetape cannot connect that platform yetplan_required: The account has no active plan; choose one at /subscribechannel_locked: The channel is locked: the plan covers fewer channels than are connectedchannel_limit_reached: Connecting this would go past the channels the plan coversdaily_limit_reached: The channel already has the most posts allowed on that dayinternal_error: Something failed on mixetape's side
403
The key lacks the permission this needs.
- errorobject{ … }required
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 objectinvalid_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 keymissing_permission: The API key lacks the permission this needsforbidden: Not allowed for this callernot_found: Not found, or not yoursmethod_not_allowed: The path exists but not with this methodinvalid_post_state: The post's status does not allow this, e.g. cancelling a published postaccount_needs_reconnect: The channel must be connected again before it can postfile_not_ready: The file's upload is not finishedmedia_not_supported: The platform cannot take these files as one postnot_supported_by_platform: The platform has no such featurenothing_to_publish: The selection or group has no filesalready_exists: Something with that name already existsconflict: Not possible in the current stateidempotency_key_reused: The Idempotency-Key was used before with a different requestidempotency_in_progress: A request with this Idempotency-Key is still runningsource_unreachable: The file at the given URL could not be fetched; check it is publicplatform_error: The platform refused or failed the call; the message says whyrate_limited: Too many requests; wait Retry-After secondsplatform_unavailable: mixetape cannot connect that platform yetplan_required: The account has no active plan; choose one at /subscribechannel_locked: The channel is locked: the plan covers fewer channels than are connectedchannel_limit_reached: Connecting this would go past the channels the plan coversdaily_limit_reached: The channel already has the most posts allowed on that dayinternal_error: Something failed on mixetape's side
404
Not found, or not yours.
- errorobject{ … }required
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 objectinvalid_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 keymissing_permission: The API key lacks the permission this needsforbidden: Not allowed for this callernot_found: Not found, or not yoursmethod_not_allowed: The path exists but not with this methodinvalid_post_state: The post's status does not allow this, e.g. cancelling a published postaccount_needs_reconnect: The channel must be connected again before it can postfile_not_ready: The file's upload is not finishedmedia_not_supported: The platform cannot take these files as one postnot_supported_by_platform: The platform has no such featurenothing_to_publish: The selection or group has no filesalready_exists: Something with that name already existsconflict: Not possible in the current stateidempotency_key_reused: The Idempotency-Key was used before with a different requestidempotency_in_progress: A request with this Idempotency-Key is still runningsource_unreachable: The file at the given URL could not be fetched; check it is publicplatform_error: The platform refused or failed the call; the message says whyrate_limited: Too many requests; wait Retry-After secondsplatform_unavailable: mixetape cannot connect that platform yetplan_required: The account has no active plan; choose one at /subscribechannel_locked: The channel is locked: the plan covers fewer channels than are connectedchannel_limit_reached: Connecting this would go past the channels the plan coversdaily_limit_reached: The channel already has the most posts allowed on that dayinternal_error: Something failed on mixetape's side
409
Not possible in its current state: invalid_post_state, account_needs_reconnect, file_not_ready, idempotency_in_progress, …
- errorobject{ … }required
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 objectinvalid_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 keymissing_permission: The API key lacks the permission this needsforbidden: Not allowed for this callernot_found: Not found, or not yoursmethod_not_allowed: The path exists but not with this methodinvalid_post_state: The post's status does not allow this, e.g. cancelling a published postaccount_needs_reconnect: The channel must be connected again before it can postfile_not_ready: The file's upload is not finishedmedia_not_supported: The platform cannot take these files as one postnot_supported_by_platform: The platform has no such featurenothing_to_publish: The selection or group has no filesalready_exists: Something with that name already existsconflict: Not possible in the current stateidempotency_key_reused: The Idempotency-Key was used before with a different requestidempotency_in_progress: A request with this Idempotency-Key is still runningsource_unreachable: The file at the given URL could not be fetched; check it is publicplatform_error: The platform refused or failed the call; the message says whyrate_limited: Too many requests; wait Retry-After secondsplatform_unavailable: mixetape cannot connect that platform yetplan_required: The account has no active plan; choose one at /subscribechannel_locked: The channel is locked: the plan covers fewer channels than are connectedchannel_limit_reached: Connecting this would go past the channels the plan coversdaily_limit_reached: The channel already has the most posts allowed on that dayinternal_error: Something failed on mixetape's side
422
The Idempotency-Key was already used with a different request (idempotency_key_reused).
- errorobject{ … }required
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 objectinvalid_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 keymissing_permission: The API key lacks the permission this needsforbidden: Not allowed for this callernot_found: Not found, or not yoursmethod_not_allowed: The path exists but not with this methodinvalid_post_state: The post's status does not allow this, e.g. cancelling a published postaccount_needs_reconnect: The channel must be connected again before it can postfile_not_ready: The file's upload is not finishedmedia_not_supported: The platform cannot take these files as one postnot_supported_by_platform: The platform has no such featurenothing_to_publish: The selection or group has no filesalready_exists: Something with that name already existsconflict: Not possible in the current stateidempotency_key_reused: The Idempotency-Key was used before with a different requestidempotency_in_progress: A request with this Idempotency-Key is still runningsource_unreachable: The file at the given URL could not be fetched; check it is publicplatform_error: The platform refused or failed the call; the message says whyrate_limited: Too many requests; wait Retry-After secondsplatform_unavailable: mixetape cannot connect that platform yetplan_required: The account has no active plan; choose one at /subscribechannel_locked: The channel is locked: the plan covers fewer channels than are connectedchannel_limit_reached: Connecting this would go past the channels the plan coversdaily_limit_reached: The channel already has the most posts allowed on that dayinternal_error: Something failed on mixetape's side
429
Over 120 requests a minute (rate_limited); wait and retry.
- errorobject{ … }required
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 objectinvalid_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 keymissing_permission: The API key lacks the permission this needsforbidden: Not allowed for this callernot_found: Not found, or not yoursmethod_not_allowed: The path exists but not with this methodinvalid_post_state: The post's status does not allow this, e.g. cancelling a published postaccount_needs_reconnect: The channel must be connected again before it can postfile_not_ready: The file's upload is not finishedmedia_not_supported: The platform cannot take these files as one postnot_supported_by_platform: The platform has no such featurenothing_to_publish: The selection or group has no filesalready_exists: Something with that name already existsconflict: Not possible in the current stateidempotency_key_reused: The Idempotency-Key was used before with a different requestidempotency_in_progress: A request with this Idempotency-Key is still runningsource_unreachable: The file at the given URL could not be fetched; check it is publicplatform_error: The platform refused or failed the call; the message says whyrate_limited: Too many requests; wait Retry-After secondsplatform_unavailable: mixetape cannot connect that platform yetplan_required: The account has no active plan; choose one at /subscribechannel_locked: The channel is locked: the plan covers fewer channels than are connectedchannel_limit_reached: Connecting this would go past the channels the plan coversdaily_limit_reached: The channel already has the most posts allowed on that dayinternal_error: Something failed on mixetape's side