Announcements

Upload a ready-made announcement

POST
https://api.tunio.ai/v1/announcements/upload

Upload an audio file to be used as an announcement. The file is normalized to the Tunio broadcast loudness target in the background; the announcement is created with state upload_pending (upload_processing while converting); poll GET /v1/announcements/{announcement_id}/status until the state is `completed` (or `error` if the file could not be converted), then the announcement can be scheduled like any other. When the API key belongs to a library, the file counts against the library storage limit.

Responses

NameTypeDescription
announcement_idstring
ID of the uploaded announcement. Its state is upload_pending until the file is converted; poll GET /v1/announcements/{announcement_id}/status until it is completed.
successboolean
Always true.
NameTypeDescription
allowedarray
Accepted file extensions, set with error_file_format_unsupported.
[item]Requiredstring
-
currentinteger
Bytes the library already stores, set with "Storage limit exceeded".
file_sizeinteger
Size of the uploaded file in bytes, set with error_file_size_exceeded and "Storage limit exceeded".
maxinteger
Library storage limit in bytes, set with "Storage limit exceeded".
max_lengthinteger
Maximum title length in characters (255), set with error_title_too_long.
max_sizeinteger
Maximum file size in bytes, set with error_file_size_exceeded.
messagestring
Error code: "File is required", error_file_empty, error_file_size_exceeded, error_file_format_unsupported, error_title_required, error_title_too_long, error_invalid_start_date, error_invalid_end_date or "Storage limit exceeded".
successboolean
Always false.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.