Skip to content
Svanja

Docs API reference

Computers

Your cloud computer and paired machines: their state, and starting, sleeping or resetting them.

Tasks use a computer when they run scripts or open websites. That can be Svanja’s cloud computer or your own machine, paired through the command line. You can see your paired machines in Connections. These endpoints let you check a computer’s state and start, sleep, or reset it. To read computer info, you need the Computers area, which is included in Full access and Read-only. To control a computer, you need Full access or Computers set to Read and write. For more background, see The computer and its browser.

Use GET /computers to list your cloud computer and paired machines, or GET /computers/{id} to view a single one. To control a computer, send POST /computers/{id}/actions with action set to start, sleep, stop, reset, or refresh.

To pair your own machine, run svanja runner start on it (see svanja runner). Calling POST /computers only begins that handoff. Once a person approves it, the endpoint returns a link to the command-line sign-in, and the pairing happens in the command.

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.

computer.read Reads only

Read computer status.

GET /computers GET /computers/{id}

computer.start Changes data in Svanja

Start or wake a computer.

POST /computers/{id}/actions

runner.pair Changes access or automation

Pair a local runner.

POST /computers

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 /computers List computers

Status codes: 200, 401, 403, 429

POST /computers Pair a runner

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

GET /computers/{id} Read a computer
Parameter In Type Required Notes
id path string yes

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

POST /computers/{id}/actions Run a computer action
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: computers.md

Try Svanja with your own mailbox

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