wispfnDocs
REST API

List, create, read, update, clone and delete projects with the REST API.

All requests need a workspace API key. Project ids look like p....

#List projects

GET /api/projects
curl https://wispfn.com/api/projects -H "Authorization: Bearer $WISP_API_KEY"

Returns { projects: [...] } — each with id, name, slug, url, language, draftVersion, publishedVersion, mcpEnabled and more.

#Create a project

POST /api/projects
FieldTypeDescription
namestring?Up to 60 characters
language"javascript" | "python"?The project's main language
workspaceIdstring?Defaults to the key's workspace
curl -X POST https://wispfn.com/api/projects \
  -H "Authorization: Bearer $WISP_API_KEY" -H "content-type: application/json" \
  -d '{"name": "Order status", "language": "javascript"}'

Returns { project }. Scope: projects:write.

#Get a project

GET /api/projects/:id

Returns the project with its draft: functions (with code, including before and after) and library modules. Scope: projects:read.

#Update a project

PATCH /api/projects/:id
FieldTypeDescription
namestring?New name
slugstring?New address — the old URL stops working
descriptionstring?Up to 1,000 characters
mcpEnabledboolean?Turn the project's MCP server on or off
statusPageEnabledboolean?Turn the status page on or off

#Clone a project

POST /api/projects/:id/clone

Body: { "name": "Copy of ..." } (optional). Returns the new project.

#Delete a project

DELETE /api/projects/:id

Deletes the project, its storage, secrets and versions. Can't be undone.

#Chat with the assistant

POST /api/projects/:id/chat

Body: { "message": "Add a DELETE /notes endpoint" }. Streams the assistant's turn. Uses AI credits; scope assistant:chat. Stop a running turn with POST /api/projects/:id/chat/stop.