Skip to content

API Reference

All Bot API interfaces with their routes, request/response types, and versioning status. Every request requires Authorization: Bot <token> header.

16 interfaces · 48 routes

OpenAPI specification

The whole Bot API as a single OpenAPI 3.0 document, generated from the running routes. Feed it to openapi-generator and get a typed client in your language instead of writing one.

Download openapi.json
Always current, straight from the gateway:
https://gateway.argon.zone/openapi.json

Generate a client:
openapi-generator-cli generate -i openapi.json -g python -o ./argon-bot

IArchetypes

v1 stable
3 routes

List and inspect archetypes (roles) in a space. Permissions are hidden unless the bot has ManageArchetype entitlement.

GET /Get GET /List GET /ListMembers

IBotSelf

v1 stable
2 routes

Get information about the authenticated bot and its spaces.

GET /GetMe GET /GetSpaces

ICalls

v20260401 draft
3 routes

Receive and manage incoming calls. Verified bots only.

POST /Accept POST /Reject GET /Ringing

IChannels

v1 stable
3 routes

Create, list, and delete channels within a space.

POST /Create DELETE /Delete GET /List

ICommands

v1 stable
5 routes

Register, update, list, and delete slash commands for your bot.

DELETE /Delete GET /List GET /ListForSpace POST /Register PATCH /Update

IEvents

v1 stable
1 route

Subscribe to real-time events via Server-Sent Events (SSE). Receive messages, member changes, voice activity, and more.

GET /Stream

IExpressions

v1 stable
7 routes

Read a space's sticker and custom emoji packs and add to them. Bots change only the packs and items they made, and never delete or reorder. Writing takes CreateExpressions among the bot's required entitlements.

POST /AddItem POST /CreatePack GET /GetPack GET /GetQuota GET /List PATCH /UpdateItem PATCH /UpdatePack

IFiles

v1 stable
2 routes

Upload files once and use them by fileId: stickers and emoji for IExpressions/AddItem, attachments for IMessages/Send. An upload is kept for 24 hours; at most 100 unused uploads per bot.

GET /Get POST /Upload

IInteractions

v1 stable
5 routes

Respond to slash-command, control, and select interactions. Supports ack, defer, modal, reply, and edit.

POST /Ack POST /Defer PATCH /EditMessage POST /Modal POST /Reply

IMembers

v1 stable
1 route

Manage space members: kick users from channels.

POST /Kick

IMessages

v1 stable
2 routes

Send messages with text and files, and retrieve message history from channels.

GET /History POST /Send

IReactions

v1 stable
6 routes

Add and remove emoji reactions on messages, unicode or custom.

POST /Add POST /AddCustom POST /BatchGet GET /List DELETE /Remove POST /RemoveCustom

ISpaces

v1 stable
3 routes

Get space details and member information.

GET /Get GET /GetMember GET /ListMembers

ITyping

v1 stable
2 routes

Send typing indicators to channels. Typing status automatically expires after 8 seconds.

POST /Start POST /Stop

IVoice

v1 stable
1 route

Get voice streaming tokens for audio ingress. Bots stream Opus audio directly to a WebSocket endpoint — no WebRTC needed.

POST /StreamToken

IVoiceEgress

v20260401 draft
2 routes

Subscribe to individual voice tracks for audio egress. Verified bots only.

POST /SubscribeTrack DELETE /UnsubscribeTrack