Skip to content
Svanja

Docs API reference

Channels

The status of Slack, Teams and phone channels, and links to finish linking them in the app.

Channels are the places where the assistant reaches you outside the app, such as Slack, Microsoft Teams, or your phone. You can find them in the app under Settings, Channels. Use these endpoints to check which channels are linked or to send someone to the page where they can link one. To read channel data, you need access to the Channels area, which is included in both Full access and Read-only. For more details, see Notifications and channels.

Use GET /channels and GET /channels/{id} to check a channel’s status. Linking and unlinking happen in the app itself. When you make the API call, it waits for a person to approve it and then returns a settings_url pointing to the Channels page in Settings, where you finish the setup.

With the same approval, PATCH /channels/{id} updates two of your personal settings: voice_spoken_responses_enabled and voice_keep_recordings. If you prefer working from a terminal, use svanja channel.

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.

channel.link Changes access or automation

Link or unlink a channel.

POST /channels POST /channels/{id}/actions

channel.preferences Changes data in Svanja

Update channel preferences.

POST /channels/{id}/actions

channel.read Reads only

Read assistant channel status.

GET /channels GET /channels/{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 /channels List channel status

Status codes: 200, 401, 403, 429

POST /channels Start a channel action

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

GET /channels/{id} Read a channel link
Parameter In Type Required Notes
id path string yes

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

PATCH /channels/{id} Update channel preferences
Parameter In Type Required Notes
id path string yes

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

POST /channels/{id}/actions Run a channel 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: channels.md

Try Svanja with your own mailbox

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