Quick start
Describe an API, test the draft, publish it and call it — in about five minutes.
This guide builds a small API that stores and returns notes. You'll describe it, test it, publish it and call it with curl.
#1. Describe what you want
On your projects page, type a description in the prompt box and press Enter:
An API to save short notes. POST /notes with a text field saves a note and returns it with an id.
GET /notes lists the latest 20 notes.Wisp names the project, gives it an address like notes-api, and asks which language to use: JavaScript or Python.
Prefer the terminal? The same thing works from the CLI:
npm install -g wispfn && wisp login
wisp new "An API to save short notes: POST /notes saves one, GET /notes lists the latest 20"#2. Watch it build
The assistant writes the functions, stores the notes in a table, and tests each function with a realistic request. You'll see every change in the chat and the code in the editor.
When it's done, the reply tells you how to call each function.
#3. Test the draft
Every change creates a draft. Call it by adding ?test to the URL:
curl -X POST "https://notes-api.fn.wispfn.com/notes?test" \
-H "content-type: application/json" \
-d '{"text": "Buy milk"}'
curl "https://notes-api.fn.wispfn.com/notes?test"Or open an function in the console and press Test to send a request from the browser. See Testing.
#4. Publish
Press Publish in the top bar. The current draft becomes the live version, served without ?test:
curl "https://notes-api.fn.wispfn.com/notes"Drafts and the live version share the same storage. A note you saved while testing shows up in the live API too.
#5. Keep going
Ask for changes in plain words:
- "Add DELETE /notes that deletes a note by id."
- "Require an API key for every function."
- "Limit each client to 60 requests per minute."
- "Every Monday at 9am, email me how many notes were added last week."
Each change is a new draft you can test before publishing again. If something goes wrong, roll back to any earlier version.
#Next steps
- Learn how functions and requests and responses work.
- Store data with key-value, tables and files.
- Let AI agents call your API: MCP server for your project.