# API Reference

Reference for the function SDK your code imports, Wisp's REST API, and the tools of the Wisp MCP server.

## Function SDK

What your functions can use at run time:

| Reference | For |
| --- | --- |
| [Request and response](/api/request-and-response) | The `req` object and what handlers return |
| [config](/api/sdk-config) | Variables and secrets |
| [kv](/api/sdk-kv) | Key-value storage |
| [table](/api/sdk-table) | Tables |
| [file](/api/sdk-file) | File storage |
| [functions](/api/sdk-functions) | Running other functions, or calling them over HTTP |
| [Errors and limits](/api/errors-and-limits) | `WispError`, quotas and platform limits |

```js
import { config, kv, table, file, functions, WispError } from 'wisp';
```

```python
from wisp import config, kv, table, file, functions, WispError
```

## REST API

Manage projects programmatically. Base URL:

```text
https://wispfn.com/api
```

Requests and responses are JSON. Authenticate with a workspace API key — see [Authentication](/api/authentication).

| Group | Covers |
| --- | --- |
| [Projects](/api/rest-projects) | List, create, update, clone and delete projects |
| [Functions](/api/rest-functions) | Create, configure, schedule and run functions |
| [Code](/api/rest-code) | Replace function and library code |
| [Versions](/api/rest-versions) | History, publish, roll back, restore |
| [Config](/api/rest-config) | Variables and secrets |
| [Runtime](/api/rest-runtime) | Invoke, logs, metrics, schedules |
| [Storage](/api/rest-storage) | Key-value, tables, files |
| [Settings](/api/rest-settings) | API keys, limits, alerts, domains, packages, access |

## MCP

[Wisp MCP server tools](/api/mcp-tools) — the same operations for AI clients.
