Export a week's order
readThe order as CSV or an automation import file.
GET
https://affiliates.radioworkflow.com/api/v1/affiliations/{id}/weeks/{week}/exportRead: this changes nothing.
The week's ROS units as a file your traffic or automation system can import. Show spots are not in it: they are in the show audio.
csv(the default): one row per unit withunit_id,date,allowed_days,window_start,window_end,daypart,advertiser,product,title,isci,lengthandcart, UTF-8 with a byte order mark.tab: one row per distinct creative withcart,length,isci,titleandadvertiser, for a cart import.xml: an<order>element with one<unit>per unit and the CSV columns as attributes.
The answer is an attachment with a file name. A cell that starts like a spreadsheet formula is prefixed with a single quote.
Over MCP the tool returns filename, content_type and body as JSON instead of a file.
Authentication
Path parameters
idstring1 to 64 charactersrequiredThe affiliation id from
GET /v1/affiliations: one station's relationship with one network.weekdaterequiredMonday of the broadcast week,
YYYY-MM-DD. Any other day answers 400.Query parameters
formatenumoptionaldefault csvThe file format.
csvtabxmlResponse
200
text/csv; charset=utf-8The file, as an attachment. tab answers text/tab-separated-values and xml answers application/xml.Response schema over MCP: export_order
filenamestringrequiredcontent_typestringrequiredbodystringrequiredErrors
400bad_requestThe request is not valid: a path value, a query value or a body field is missing, malformed or out of range.
403forbiddenThe key is valid but cannot do this for this affiliation: the affiliation is not one of the key's, or the person who made the key lacks the role.
Possible on every endpoint
401invalid_principalThe key is missing, malformed, unknown, revoked or expired; all of these answer the same way.
429rate_limitedToo many requests: the key's bucket, a daily limit or the failed sign-in brake refused this one.
503unavailableThe service is not available right now: it could not be reached, or it is not set up yet.
Rate limits
Failed sign-ins per address10 per minute
portal:authBurst per key60 per minute
portal:keyCalls per key600 per 10 minutes
key:{prefix}MCP
An assistant calls this as the tool
export_order, with the same input as one object. The MCP servercurl -X GET 'https://affiliates.radioworkflow.com/api/v1/affiliations/srn-ksmt/weeks/2026-09-21/export' \ -H "Authorization: Bearer $AFFILIATE_API_KEY" \ --output order.csv
unit_id,date,allowed_days,window_start,window_end,daypart,advertiser,product,title,isci,length,cart "u-01oso1x","2026-09-22","2026-09-22","06:00","18:59","ROS","Trailhead Outfitters","","Hunting Season Kickoff","SR_TRHD0921060","60","K90388"
{
"filename": "KSUMT-FM_2026-09-21_v3.csv",
"content_type": "text/csv; charset=utf-8",
"body": "unit_id,date,allowed_days,window_start,window_end,daypart,advertiser,product,title,isci,length,cart\r\n\"u-01oso1x\",\"2026-09-22\",\"2026-09-22\",\"06:00\",\"18:59\",\"ROS\",\"Trailhead Outfitters\",\"\",\"Hunting Season Kickoff\",\"SR_TRHD0921060\",\"60\",\"K90388\"\r\n"
}