Skip to content
Svanja

Docs API reference

Tools

Saved scripts with their inputs and checks: list, read, save, run and verify them.

A tool is a saved script that the assistant uses to repeat a job the same way each time, such as a monthly export. You can find your tools under Skills, Tools. Use these endpoints to run a tool with new inputs from your own code, or to check that it still works. Reading tools requires the Tools area, which is included in Full access and Read-only. Saving or running a tool requires Full access or Tools set to Read and write. Each run uses the cloud computer or a paired machine, so it counts toward your computer time like any other task. For more background, see Skills, tools and templates.

GET /tools lists your tools along with their IDs, formatted as SPACE_ID:path. GET /tools/{id} returns a single tool, including the inputs it expects and what it produces. Use POST /tools and PATCH /tools/{id} to save a tool.

POST /tools/{id}/actions runs a tool when you pass action set to run along with its inputs, or runs its check when you pass action set to verify:

{ "action": "run", "inputs": { "month": "2026-11" } }

Both actions start a task and return it in the response. You can follow the task on Tasks to get the result. If you prefer working from a terminal, see svanja tool.

Operations

An operation is one thing you can do, like reading a task or starting one. Its effect says what it changes. Some operations that act outside Svanja or change access wait for a person's approval; the approval flow is on the API overview.

tool.read Reads only

Read tool packages.

GET /tools GET /tools/{id}

tool.run Changes data in Svanja

Run a tool package.

POST /tools/{id}/actions

tool.save Changes data in Svanja

Save a tool package.

POST /tools PATCH /tools/{id}

Endpoints

Paths start at https://app.svanja.com/api/v1. Every endpoint needs an API key unless it says otherwise. A required Idempotency-Key header is listed with the parameters.

GET /tools List tool packages

Status codes: 200, 401, 403, 429

POST /tools Save a tool package

Status codes: 202, 401, 403, 422, 429

GET /tools/{id} Read a tool package
Parameter In Type Required Notes
id path string yes

Status codes: 200, 401, 403, 404, 429

PATCH /tools/{id} Update a tool package
Parameter In Type Required Notes
id path string yes

Status codes: 202, 401, 403, 404, 422, 429

POST /tools/{id}/actions Run or verify a tool package
Parameter In Type Required Notes
id path string yes

Status codes: 202, 401, 403, 404, 422, 429

This page as plain Markdown, for AI tools: tools.md

Try Svanja with your own mailbox

Sign up now, and you get an email when your account is ready.