> ## Documentation Index
> Fetch the complete documentation index at: https://docs.snackbase.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy function

> Deploy source files and exact dependency pins; builds a per-version venv with uv

### Body

```json theme={null}
{
  "entrypoint": "handler.py",
  "dependencies": ["cowsay==6.1"],
  "files": {
    "handler.py": "from snackbase_fn import Response\n\ndef handler(req):\n    return Response.json({\"ok\": true})\n"
  }
}
```

Returns the function metadata and new version. Install failures return **400** with uv stderr.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.