Sazlo

Developers

Build on Sazlo.

Most spaces never need code: bots are built in and made from templates. When you do want your own, Sazlo has a full bot API, OAuth apps, webhooks both ways and an MCP server, all over plain HTTPS and JSON at https://api.sazlo.app.

Bot API

Your service acts as one of a space's bots. People with Manage space make a token for it in Space settings, Bots, Connect a service. The token starts with stb_, is shown once, and carries only the scopes it was given.

Post and edit
Post Markdown with embeds, buttons and select menus, edit and delete what the bot sent, react, start threads and upload files.
Read history
Read the history of the rooms the token names, and look members up by handle.
Roles and verification
Give and take roles below the token maker's own, and redeem verification links so your site can confirm who someone is.
Moderation
Time out, remove and ban, and delete other people's messages, when the token's maker holds those permissions.
Direct messages and status
Write direct messages to members and set the bot's status.
Webhooks
Create and manage incoming webhooks, which post with their own name and picture per message.

A bot acts with the permissions of the person who made its token, checked fresh in the room on every call. When they lose a permission, the token loses it too. Each token gets 60 requests a minute, and every action is in the space's audit log.

Slash commands, buttons and modals

Register up to 25 commands for a bot and give it an interaction endpoint. Sazlo posts each use to your endpoint, signed with HMAC-SHA256, and your answer decides what happens.

Commands
Chat commands typed as /name, plus commands on a person's or a message's menu. Subcommands and groups, typed options with bounds, up to 25 choices, and autocomplete as people type.
Who may use them
Set default permissions, then a space can allow or deny each command per role, person and room.
Answers
Post as the bot, reply only to the person, open a modal with up to 5 inputs, or send autocomplete choices.
Buttons and select menus
Attach them to messages and get an interaction when someone uses them.
Answering later
Defer within 3 seconds, then edit the reply or post up to 10 follow-ups within 15 minutes.
App emoji
Emoji the app owns and can use in any space it is in.

Event subscriptions

Get a signed HTTPS POST when things happen in a space: messages created, edited or deleted, reactions, rooms, members joining and leaving, roles, and people joining or leaving voice. Limit a subscription to the rooms you care about.

Each delivery carries an id to drop repeats and a timestamped signature. Failed deliveries retry five times over about seven hours. A subscription only receives what the person who made it can still see.

OAuth apps

Let people sign in with Sazlo. Make an app in Developer settings, with a team of up to 25 people as Admin, Developer or Read-only.

OAuth 2 with PKCE
S256 PKCE on every flow. Apps are public clients by default; a server app can add a client secret. Access tokens last an hour and refresh tokens rotate.
Scopes
identify, spaces.read, messages.read, messages.write and activity.write, for rich presence. People see and remove the apps they approved in Settings.
Personal tokens
Scoped tokens for your own scripts, with an optional expiry.
Linked roles
Keep values about people, such as matches played, and let a space give a role when a value meets a rule or an account is linked.
App directory
Submit a listing with screenshots. Each one is reviewed before it shows.

Activities in calls

Ship one HTML page that 2 to 50 people play together inside a room's call. It runs sandboxed, with no network access, and talks to the call through window.sazlo.activity. A space adds it by the app's id.

MCP server for AI tools

Connect Claude Code, Codex, Cursor, Claude, ChatGPT or any MCP client at https://api.sazlo.app/mcp. Claude and ChatGPT sign in with OAuth 2.1 as a custom connector. Other tools get an agent token from Settings, Connect an AI tool.

An AI acts as one person with the scopes they picked, for 1 to 90 days. Settings shows every change it made, and Revoke ends it at once.

No code at all

Incoming webhooks post from any tool that can send JSON, the GitHub integration posts commits and releases as cards, and built-in bots cover welcomes, levels, giveaways, polls and moderation. See bots.

Questions

Is there an SDK?

The API is plain HTTPS and JSON, so any language works. Signatures on events and interactions are HMAC-SHA256 over the timestamp and raw body, which takes a few lines to check.

Do Discord bots run on Sazlo?

Not unchanged. The ideas carry over: slash commands, buttons, select menus, modals, deferred answers and follow-ups all exist, so a Discord bot ports by changing its HTTP layer.

What does the API cost?

Nothing. The bot API, OAuth apps, webhooks, event subscriptions and the MCP server are free.

Where is the full reference?

We share the full route reference with developers on request. Write to support@getsazlo.com with what you are building.

Bring your people.

Sazlo runs in the browser at sazlo.app, as a desktop app for Mac, Windows and Linux, and on Android. Make a space, invite your group, or bring a community you already run somewhere else, history and all.

  • Get it on Google Play
  • Download on the App StoreApp Store in review