List files
Newest first, each with its kind, size, width, height, orientation and duration, read from the file itself. Pass nextCursor back as cursor for the next page.
Needs the media permission.
GET
https://mixetape.com/api/v1/mediaPermission
mediaWorks onAll platformsAuthorisation
Query parameters
Returns
200
A page of files.
JSON
400
The request is invalid; error.code says how (invalid_field, missing_field, unknown_field, media_not_supported, …) and error.field which field.
JSON
- 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.
JSON
- 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.
JSON
- 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.
JSON
- 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