1
Mint a key with the agentify:convert scope
In the dashboard under Settings → API keys, create a key and enable the Agentify group’s Convert toggle. The secret is shown once; store it immediately:The scope grants
GET /v1/agentify/markdown and nothing else. Keys are minted in a signed-in session only.2
Convert a page
Pass the page as the The first conversion of a page runs the full pipeline — fetch, headless render when the page needs JavaScript, cleanup — and takes a few seconds. Repeats serve from cache for about a day.
url query parameter, with the key as a bearer token:3
Name the seller, if your organization has several
The document inlines one seller’s storefront. An organization with exactly one active seller never names it; with several, pass the seller’s id (the Ambiguity answers
sel_… value from your dashboard store URL):400 seller_required rather than guessing between storefronts.The response
A success is200 with the markdown document as the body — front matter, then your storefront inlined, then the page content, as shown on the overview — and cache headers meant to be reused downstream:
Forward
cache-control and etag when you serve the markdown from your own site — that is what lets your CDN cache the rendered markdown in front of you. Send Vary: accept, user-agent alongside them, so a shared cache never hands the markdown to a browser. The SDK middleware does all of this for you.
Revalidate a stored copy with the ETag; an unchanged document answers 304 with no body:
Errors
Every error is JSON with a machine code inerror:
A page that answers with an error status still converts: a
404 page becomes a markdown document like any other, so a stale link on your site degrades to a readable page rather than a failed conversion.
Requests beyond 60 per minute per organization answer 429. Conversions are cached for a day at every layer, so steady traffic stays far below the limit; if you prewarm many pages at once, pace the loop.
Next steps
SDK middleware
Detection, the same call, and fail-open serving as drop-in middleware.
SPA setup
Mount the same contract in an edge function in front of a CDN-hosted SPA.