Preview links
Turn form JSON into a short link anyone can open and fill in.
Example
Apply for Product designer
Nairobi or remote, full time.
Make a link
Preview page
Drop a JSON file or paste it, check the form, then Share.
Agent
Paste this into any agent that can make web requests.
Read https://fieldkit.muturi.dev/llms.txt, then make a job application form with 3 steps and send me its preview link.
API
Create
curl -X POST https://fieldkit.muturi.dev/api/previews \ -H 'content-type: application/json' \ -d '{ "spec": { "title": "Contact us", "fields": [{ "type": "email" }] }, "expiresInDays": 7 }'201 response
{ "id": "k7Qm2xPa", "url": "https://fieldkit.muturi.dev/preview/contact-us-k7Qm2xPa", "editToken": "Jf3w9Qx2…", "expiresAt": "2026-10-27T09:00:00.000Z"}Update the same link
curl -X PUT https://fieldkit.muturi.dev/api/previews/k7Qm2xPa \ -H 'content-type: application/json' \ -H 'authorization: Bearer <editToken>' \ -d '{ "spec": { "title": "Contact us", "fields": [{ "type": "email" }] }, "expiresInDays": 1 }'Multistep forms
form.json
{ "title": "Apply for Product designer", "steps": true, "sections": [ { "title": "About you", "fields": [{ "type": "email" }] }, { "title": "Experience", "fields": [{ "type": "url", "name": "portfolio" }] } ]}API reference
Request body
PropDescription
spec (required)objectThe form spec, as in /llms.txt.expiresInDaysnumber = 7Days until the link is deleted, 1 to 30.Response
PropDescription
idstring8 characters.urlstringThe link to share.editTokenstringSend as a Bearer token to update. Shown once.expiresAtstringISO date the link is deleted.Errors
PropDescription
400{ error, errors }Each item in errors names a path, like spec.fields.1.type.403{ error }Wrong edit token.404{ error }Expired or unknown id.413{ error }Over 1 MB.429{ error }Over 20 requests a minute from one IP.Notes
- Answers stay in the browser. Submitting shows a test response.
- Updating keeps the URL and restarts the expiry.
- The preview page keeps your edit token in this browser, so Share becomes Update link.
- GET /api/previews/<id> returns the spec, so an agent can read a link back.
- Search engines don't index preview links.