curl --request GET \
--url https://radiotools.rivi.software/api/v1/stations/{stationSlug}/schedule.ics \
--header 'Authorization: Bearer <token>'import requests
url = "https://radiotools.rivi.software/api/v1/stations/{stationSlug}/schedule.ics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://radiotools.rivi.software/api/v1/stations/{stationSlug}/schedule.ics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://radiotools.rivi.software/api/v1/stations/{stationSlug}/schedule.ics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://radiotools.rivi.software/api/v1/stations/{stationSlug}/schedule.ics"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://radiotools.rivi.software/api/v1/stations/{stationSlug}/schedule.ics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://radiotools.rivi.software/api/v1/stations/{stationSlug}/schedule.ics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyBEGIN:VCALENDAR
VERSION:2.0
PRODID:-//RadioTools//Example//EN
BEGIN:VEVENT
UID:faacbe14-ff20-444e-b1f0-09e8dad18cb0
DTSTAMP:20261005T080000Z
DTSTART:20261005T070000Z
DTEND:20261005T100000Z
SUMMARY:Rivier Morning
END:VEVENT
END:VCALENDAR
{
"error": {
"code": "VALIDATION_ERROR",
"message": "The request contains invalid parameters or input.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3",
"issues": [
{
"path": "query",
"message": "Check the parameter types and bounds documented for this operation."
}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "A valid station credential with the required scope is needed.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "The credential does not permit this operation.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "The resource is missing, unpublished, disabled, or unavailable for this station. A switched-off station module returns MODULE_DISABLED.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "REVISION_CONFLICT",
"message": "The request conflicts with the current resource revision.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Reduce the request frequency.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "PROVIDER_UNAVAILABLE",
"message": "An upstream service is temporarily unavailable.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}Get schedule calendar feed
Subscribe to the station’s published schedule as an iCalendar feed using the listener credential. The body is calendar text, not a JSON object. Keep credentials on your server; do not embed tokens in a calendar URL.
curl --request GET \
--url https://radiotools.rivi.software/api/v1/stations/{stationSlug}/schedule.ics \
--header 'Authorization: Bearer <token>'import requests
url = "https://radiotools.rivi.software/api/v1/stations/{stationSlug}/schedule.ics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://radiotools.rivi.software/api/v1/stations/{stationSlug}/schedule.ics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://radiotools.rivi.software/api/v1/stations/{stationSlug}/schedule.ics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://radiotools.rivi.software/api/v1/stations/{stationSlug}/schedule.ics"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://radiotools.rivi.software/api/v1/stations/{stationSlug}/schedule.ics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://radiotools.rivi.software/api/v1/stations/{stationSlug}/schedule.ics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyBEGIN:VCALENDAR
VERSION:2.0
PRODID:-//RadioTools//Example//EN
BEGIN:VEVENT
UID:faacbe14-ff20-444e-b1f0-09e8dad18cb0
DTSTAMP:20261005T080000Z
DTSTART:20261005T070000Z
DTEND:20261005T100000Z
SUMMARY:Rivier Morning
END:VEVENT
END:VCALENDAR
{
"error": {
"code": "VALIDATION_ERROR",
"message": "The request contains invalid parameters or input.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3",
"issues": [
{
"path": "query",
"message": "Check the parameter types and bounds documented for this operation."
}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "A valid station credential with the required scope is needed.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "The credential does not permit this operation.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "The resource is missing, unpublished, disabled, or unavailable for this station. A switched-off station module returns MODULE_DISABLED.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "REVISION_CONFLICT",
"message": "The request conflicts with the current resource revision.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Reduce the request frequency.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "PROVIDER_UNAVAILABLE",
"message": "An upstream service is temporarily unavailable.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}Authorizations
Station-scoped listener credential. Send Authorization: Bearer <token>, for example Bearer rtm_…. Sending the rtm_ token alone without Bearer returns 401 UNAUTHENTICATED. In the interactive playground, enter only the raw rtm_ token; the playground adds the prefix. Listener REST and GraphQL: listener:read. Listener devices: push:register.
Path Parameters
Public station slug from the station settings; distinct from the internal station ID.
Response
iCalendar text (not JSON). Parse as a calendar feed; no-store.
The response is of type string.
Was this page helpful?