Delivery API reference
Base address: https://api.infrakinetic.in/api/delivery/v1. Server calls send Authorization: Bearer iksr_… and must not send an Origin header.
Server endpoints
| Call | Returns |
|---|---|
GET /page?url=<full address> | The page answer (below). Accept: text/html returns the HTML alone with the head in Link and X-IK-Head headers. |
GET /sitemap.xml | Your delivered addresses, for your sitemap. |
GET /llms.txt | A fragment for your llms.txt. |
GET /mount-map | Where each page lives on your site. |
PUT /mount-map | Register addresses (key scope mounts.write). |
GET /changes?since=<cursor> | Purge signals in order, and the next cursor. For hosts that cannot receive webhooks. |
The page answer
{
"status": 200,
"area": "careers",
"head": { "title": "…", "meta": [ … ], "links": [ { "rel": "canonical", "href": "https://www.northwind-foods.in/careers" }, … ], "jsonld": [ … ] },
"head_html": "<title>…</title><meta …><link rel=\"canonical\" …>…",
"html": "<div class=\"ikp\" data-ik-root …>…</div>",
"hydrate": { "src": "https://api.infrakinetic.in/api/delivery/v1/hydrate.v1.<hash>.js", "integrity": "sha384-…" },
"cache": { "etag": "\"…\"", "max_age": 60, "s_maxage": 86400, "tags": [ … ] }
}
- Print
head_htmlin your<head>,htmlwhere the content goes, and the hydration script with itsintegrity,crossorigin="anonymous"anddefer. - Send
If-None-Matchwith theetagto get a cheap304. - Keep a copy for
max_ageseconds. Shared caches may keep it fors_maxage: a day for plain pages, at most 5 minutes for pages with jobs, prices or stock.
Errors
| Status | Meaning | What to do |
|---|---|---|
404 not_mounted, not_published, area_offline | Not ours to serve | Show your own page or 404 |
401 INVALID_RENDER_KEY | Wrong or revoked key | Make a new server key |
403 RENDER_KEY_IN_BROWSER | The server key was sent with an Origin header | Rotate the key; call from your server only |
| 429 | Over the per-minute limit | Wait Retry-After seconds; cache copies |
| 503 | Try again shortly | Serve your last good copy |
Change feed
GET /changes?since=<cursor> lists what changed, oldest first, with the next cursor. Start without since, keep next, and ask again every few minutes:
{ "changes": [ { "id": "…", "at": "2026-11-15T10:00:00.000Z", "reason": "release_published",
"urls": ["https://www.northwind-foods.in/careers"], "tags": ["ik-page-…"] } ],
"next": "…" }
Drop those addresses from your cache. A tag starting ik-area- or ik-website- means a whole area changed: drop every copy.
Signed calls
Infrakinetic's webhooks, and the connectors' purge endpoints, use one signature:
x-infrakinetic-signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">
Check it against the raw body before parsing, refuse a t more than five minutes away, and compare in constant time. During a secret rotation two v1 values come; one matching is enough.
Content Security Policy
If your site sends a CSP, add these. Nothing needs unsafe-inline or unsafe-eval.
script-src https://api.infrakinetic.in https://challenges.cloudflare.com
style-src https://api.infrakinetic.in
connect-src https://api.infrakinetic.in
frame-src https://challenges.cloudflare.com
img-src https://api.infrakinetic.in