Announcements
Upload a ready-made announcement
POST
https://api.tunio.ai/ v1/ announcements/ uploadUpload 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
| Name | Type | Description |
|---|---|---|
| announcement_id | string | 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. |
| success | boolean | Always true. |
| Name | Type | Description |
|---|---|---|
| allowed | array | Accepted file extensions, set with error_file_format_unsupported. |
| [item]Required | string | - |
| current | integer | Bytes the library already stores, set with "Storage limit exceeded". |
| file_size | integer | Size of the uploaded file in bytes, set with error_file_size_exceeded and "Storage limit exceeded". |
| max | integer | Library storage limit in bytes, set with "Storage limit exceeded". |
| max_length | integer | Maximum title length in characters (255), set with error_title_too_long. |
| max_size | integer | Maximum file size in bytes, set with error_file_size_exceeded. |
| message | string | 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". |
| success | boolean | Always false. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |