Skip to Content

Downloading an export file

The latest file of an export recipe, fetched on a schedule with ETag.

An export recipe in the CIXTRA console with the delivery target "API" makes its latest file available at a fixed URL. The console's Export Studio shows this URL with the recipe's id.

curl -s -i "https://api.cixtra.app/api/v1/exports/2b7c9d1e-5f6a-4b3c-8d2e-0f1a2b3c4d5e/latest" \
  -H "X-API-Key: sk_org_your_key" -o events.xml

The answer is the file as the last completed run produced it:

HeaderMeaning
Content-TypeBy the recipe's format: application/xml, application/json, text/csv, text/html or text/calendar (ICS), each ; charset=utf-8.
Content-Dispositionattachment; filename="…", the file name of the run.
ETagThe file's SHA-256 checksum in quotes. It changes exactly when the file's content changes.
Last-ModifiedWhen the run that produced the file finished.
Cache-Controlprivate, no-cache: keep your copy, but ask each time whether it is still current.
X-CIXTRA-Export-RunThe id of the run.

Fetching on a schedule. Send the ETag of your copy back in If-None-Match (or its Last-Modified in If-Modified-Since). If the file is unchanged, the answer is 304 Not Modified without a body, and nothing is downloaded:

curl -s -i "https://api.cixtra.app/api/v1/exports/2b7c9d1e-5f6a-4b3c-8d2e-0f1a2b3c4d5e/latest" \
  -H "X-API-Key: sk_org_your_key" \
  -H 'If-None-Match: "9f2c4e6a8b0d1f3e5a7c9e1b3d5f7a9c0e2b4d6f8a1c3e5b7d9f0a2c4e6b8d0f"'
HTTP/1.1 304 Not Modified
ETag: "9f2c4e6a8b0d1f3e5a7c9e1b3d5f7a9c0e2b4d6f8a1c3e5b7d9f0a2c4e6b8d0f"
Last-Modified: Mon, 23 Nov 2026 05:00:14 GMT

When both headers are sent, If-None-Match decides. A new run that produces the same content keeps the same ETag, so it is not downloaded again. The answer is 404 while the recipe is not published, has no active API delivery target, or has not completed a run yet. Downloads cost no credits.

Calendar files (ICS)

A recipe with the format ICS turns its dates (a recipe over showtimes) into an iCalendar file (RFC 5545) that calendar apps can import or subscribe to:

  • One VEVENT per date. A performance has its start and, where the end is known and not estimated, its end, both in UTC. A date whose start time is unknown is an all-day entry on its day. A run (opening hours, a day or longer) is one all-day entry over its whole span, marked TRANSP:TRANSPARENT so it does not block the subscriber's time; a run without a known last day is left out.
  • UID stays the same from run to run: for a performance it is the id of its event on its original day (the id GET /events gives that day; a moved date keeps the UID of the day it was first planned for), for a run the showtime's id.
  • Each entry carries SUMMARY (the title), DESCRIPTION, LOCATION (venue, address, city), GEO, URL (the event series' website, otherwise the ticket link), CATEGORIES (genre names), STATUS, and DTSTAMP and LAST-MODIFIED set to the date's last change, so an unchanged calendar keeps its ETag. Texts are in the recipe's language; images are left out.
  • Cancelled dates stay in the calendar with STATUS:CANCELLED, so subscribed calendars mark or drop them. Every other date is STATUS:CONFIRMED.

Cancelled dates in the other formats. A recipe whose fields include the date's status (scheduled, cancelled or rescheduled) contains cancelled dates as well, so the file can show them as cancelled. A recipe without that field leaves cancelled dates out. In every format, a recipe's date window includes runs that are on during it, also when they opened earlier.

On this page