Export
Download every link your API manages, or the per-click log for a time range, as one streamed file. Both calls cover the links created through the API in the key’s environment — the set GET /v1/links lists. For the whole workspace, dashboard links included, use Settings → Export in the dashboard.
/v1/export/linksExport links
Streams every API-created link as a file attachment. json is lossless and carries format_version; csv is one row per link with the full delivery JSON-encoded in rules_json; nginx and caddy are re-hosting rule files, one server block per domain. Rules those servers can’t express — geo, device, language, time windows, splits — are dropped with a comment naming each one, and the link serves its fallback url.
formatstringjson (default), csv, nginx or caddy. The file is rii-links-{workspace}-{date}.json, .csv, .nginx.conf or .Caddyfile.
A READ-ONLY KEY IS ENOUGH · THE JSON EXPORT IS THE COMPLETE RECORD; NGINX AND CADDY ARE FOR RE-HOSTING
/v1/export/request-logsExport the click log
Every request to your live API-created links in the window, one row per click, known bots included and marked in is_bot. The start is clamped to your plan’s analytics retention — 30 days on Free, 1 year on Premium, unlimited on Enterprise — and the response headers say which window you got.
formatstringjson (default) or csv. The file is rii-request-logs-{workspace}-{date}.json or .csv.
from / totimestampBounds of the window; timestamps without an offset are read as UTC. from defaults to the start of your retention and is clamped to it; to defaults to now.
domainstringOnly clicks on this host.
TEST KEYS GET AN EMPTY EXPORT · IP ADDRESSES ARE EXPORTED AS STORED, ALREADY TRUNCATED