Skip to main content

Complete API Reference

This page provides a quick overview of all available API endpoints. For detailed documentation on each endpoint, see the dedicated API reference pages.

API Documentation

Quick Endpoint Reference

AI Agents

MethodEndpointDescription
GET/api/agentsList agents
POST/api/agentsCreate agent
GET/api/agents/:idGet agent details
PATCH/api/agents/:idUpdate agent
DELETE/api/agents/:idDelete agent
POST/api/agents/:id/chatChat with agent
GET/api/agents/:id/chatGet chat history
DELETE/api/agents/:id/chatClear chat history
GET/api/agents/:id/knowledgeGet knowledge base
POST/api/agents/:id/knowledgeAdd knowledge URL
DELETE/api/agents/:id/knowledgeRemove knowledge URL
POST/api/agents/:id/knowledge/indexIndex knowledge
GET/api/agents/discoverDiscover public agents
GET/api/agents/favoritesGet favorites
POST/api/agents/favoritesAdd favorite
DELETE/api/agents/favoritesRemove favorite
GET/api/agents/:id/embedGet embed code
POST/api/public/agents/:id/chatPublic agent chat (x402)

Livestreaming

MethodEndpointDescription
GET/api/streamsList streams
POST/api/streamsCreate stream
GET/api/streams/:idGet stream
PATCH/api/streams/:idUpdate stream (action, title, description; go live / end)
DELETE/api/streams/:idDelete stream
GET/api/streams/:id/assetsGet recordings
GET/api/streams/:id/chatGet stream chat messages (optional since)
POST/api/streams/:id/chatSend chat message
POST/api/streams/:id/viewersJoin stream
DELETE/api/streams/:id/viewersLeave stream

Authentication

MethodEndpointDescription
GET/api/auth/verify?address=0x...Get SIWE message and nonce for signing
POST/api/auth/verifyVerify SIWE signature and create session
POST/api/auth/verify-solanaVerify SIWS signature
GET/api/auth/sessionGet current session
POST/api/auth/logoutLogout
POST/api/auth/world-idVerify World ID
POST/api/auth/alien-idVerify Alien ID (SSO & Mini App flows)

Passkeys

MethodEndpointDescription
POST/api/passkey/register/optionsGet registration options
POST/api/passkey/register/verifyVerify registration
POST/api/passkey/login/optionsGet login options
POST/api/passkey/login/verifyVerify login
GET/api/passkey/credentialsList passkeys
DELETE/api/passkey/credentials?id=Remove passkey (query: credential DB id)

Wallet

MethodEndpointDescription
GET/api/wallet/balances?address=0x...Get token balances (address required)
GET/api/wallet/transactionsGet transaction history
POST/api/wallet/smart-walletGet/create smart wallet
GET/api/wallet/safe-statusGet Safe deployment status
GET/api/wallet/recovery-signerGet recovery signer status
POST/api/wallet/recovery-signerAdd recovery signer
POST/api/wallet/onramp/sessionGenerate Coinbase Onramp session

Username

MethodEndpointDescription
GET/api/usernameGet username for address
POST/api/usernameClaim/update username
DELETE/api/usernameRemove username
GET/api/username/resolveResolve username to address

Friends & Social

MethodEndpointDescription
GET/api/friendsList friends
GET/api/profile/widgetsGet profile widgets
POST/api/profile/widgetsUpdate profile widgets
GET/api/profile/themeGet profile theme
POST/api/profile/themeUpdate profile theme

User (Email & Preferences)

MethodEndpointDescription
GET/api/user/email-updatesGet email updates opt-in status (auth)
PATCH/api/user/email-updatesUpdate email updates opt-in (auth; verify email required to opt in)

Upload (Encrypted Media - DMs)

MethodEndpointDescription
POST/api/upload/imageUpload encrypted image (multipart: file, conversationId, originalType; auth)
POST/api/upload/voiceUpload encrypted voice memo (multipart: file, conversationId, duration; auth)

Client encrypts media with the DM conversation key before upload. See Encrypted Media for format and crypto.

User Moderation (Mute, Block, Report)

MethodEndpointDescription
GET/api/users/muteGet muted conversations
POST/api/users/muteMute a conversation
DELETE/api/users/muteUnmute a conversation
GET/api/users/blockGet blocked users
POST/api/users/blockBlock a user
DELETE/api/users/blockUnblock a user
GET/api/users/reportGet reports (user/admin)
POST/api/users/reportSubmit a report
PATCH/api/users/reportUpdate report status (admin)

Channels

MethodEndpointDescription
GET/api/channelsList channels (optional: ?poapEventId= for channel by POAP event)
POST/api/channelsCreate channel (supports POAP: poapEventId, poapEventName, poapImageUrl)
GET/api/channels/:idGet channel by ID or slug (:id can be UUID or slug e.g. alien, ethereum)
POST/api/channels/:id/joinJoin channel (POAP channels require holding the POAP; Smart Wallet checked for passkey users)
POST/api/channels/:id/leaveLeave channel
GET/api/channels/:id/messagesGet messages
POST/api/channels/:id/messagesSend message
GET/api/channels/:id/agentsGet official agents in channel
POST/api/channels/agent-responseProcess @mentions
GET/api/channels/:id/pollsList polls in channel
POST/api/channels/:id/pollsCreate a poll in channel
PATCH/api/channels/:id/polls/:pidUpdate poll (vote, edit, close)
DELETE/api/channels/:id/polls/:pidDelete a poll

Token-Gated Chats (Token Chats)

MethodEndpointDescription
GET/api/token-chats?userAddress=&mode=&search=&chainId=List/browse token chats (mode: browse | my)
POST/api/token-chatsCreate token chat (token + chain + min balance, auth; optional messagingType: waku | standard)
POST/api/token-chats/:id/joinJoin token chat (body: userAddress; must hold min balance)
POST/api/token-chats/:id/leaveLeave token chat (body: userAddress)
GET/api/token-chats/:id/settingsGet token chat settings (public)
PATCH/api/token-chats/:id/settingsUpdate name, description, emoji (creator or admin)
POST/api/token-chats/:id/iconUpload custom icon (multipart: file, userAddress; 2MB max, JPEG/PNG/GIF/WebP; creator/admin/mod)
GET/api/token-chats/:id/messagesGet messages
POST/api/token-chats/:id/messagesSend message
DELETE/api/token-chats/:id/messages?messageId=&userAddress=Delete message (sender or creator/admin/mod)
GET/api/token-chats/:id/membersGet members
GET/api/token-chats/token-info?address=&chainId=Get token metadata for a contract
GET/api/token-chats/suggest-tokens?userAddress=0x...Suggest tokens from user's balances (EOA + Spritz Wallet + vaults via Graph API); optional q to filter
GET/api/public/token-chats/:idGet public token chat info (no auth; for invite/share pages)

Token chats are gated by holding a minimum balance of an ERC-20 token on a given chain. Join checks the user's EOA, Spritz Wallet, and vaults for sufficient balance. Creators and members with admin/moderator roles can update settings, upload a custom icon, and manage chat rules (use chatType: "token", chatId: token chat id).

Location Chats

MethodEndpointDescription
GET/api/location-chatsList nearby location chats
POST/api/location-chatsCreate a location chat room
GET/api/location-chats/:idGet location chat details
POST/api/location-chats/:id/joinJoin a location chat
DELETE/api/location-chats/:id/joinLeave a location chat
GET/api/location-chats/:id/messagesGet messages in a location chat
POST/api/location-chats/:id/messagesSend message in a location chat
GET/api/location-chats/:id/membersGet members of a location chat
GET/api/location-chats/joinedGet user's joined location chats

Message Deletion

MethodEndpointDescription
POST/api/messages/deleteSoft delete a DM message (sender or global admin)
DELETE/api/channels/:id/messages/:messageIdSoft delete a channel message (sender, creator, or admin)
DELETE/api/location-chats/:id/messages?messageId=Hard delete a location chat message (sender or admin)
GET/api/moderation?action=permissionsGet user's moderation permissions for a channel
GET/api/moderation?action=moderatorsList moderators for a channel
GET/api/moderation?action=mutedList muted users in a channel
GET/api/moderation?action=mod-logView moderation audit log
POST/api/moderationModeration action (promote, demote, mute, delete, pin)

Admin

MethodEndpointDescription
POST/api/admin/banBan or unban a user (admin only, logged)
GET/api/admin/broadcastGet friend count for broadcast (signed admin headers)
POST/api/admin/broadcastSend DM to all friends (admin, signed; max 2000 chars)
GET/api/admin/analyticsPlatform analytics (period=24h|7d|30d; paginated)
GET/api/admin/analytics/v2?section=&period=Richer analytics by section (overview, etc.)

Image Upload (Admin)

MethodEndpointDescription
POST/api/uploadUpload image for Alpha Chat (admin, 5MB max, JPEG/PNG/GIF/WebP)

Chat Room Rules & Bans

MethodEndpointDescription
GET/api/chat-rules?chatType=&chatId=Get room rules for a chat
POST/api/chat-rulesUpdate room rules (admin/mod)
GET/api/chat-rules/ban?chatType=&chatId=List active room bans
POST/api/chat-rules/banBan or unban a user from a room

See Room Rules & Moderation for the full moderation system documentation.

Blocked Words (Anti-Scam)

MethodEndpointDescription
GET/api/blocked-words?scope=global|room|allList blocked words (optional chatType, chatId)
POST/api/blocked-wordsAdd blocked word (word, scope, action, isRegex)
DELETE/api/blocked-wordsRemove blocked word (body: { id }, soft delete)

Starred Messages

MethodEndpointDescription
GET/api/messages/starredGet starred messages for a user
POST/api/messages/starredStar a message
DELETE/api/messages/starredUnstar a message

Polls

MethodEndpointDescription
GET/api/channels/:id/pollsList polls in a channel
POST/api/channels/:id/pollsCreate a channel poll
PATCH/api/channels/:id/polls/:pidVote, edit, or close a poll
DELETE/api/channels/:id/polls/:pidDelete a channel poll
GET/api/groups/:id/pollsList polls in a group
POST/api/groups/:id/pollsCreate a group poll
PATCH/api/groups/:id/polls/:pidVote, edit, or close a poll
DELETE/api/groups/:id/polls/:pidDelete a group poll
GET/api/alpha/pollsList polls in alpha chat
POST/api/alpha/pollsCreate an alpha chat poll
PATCH/api/alpha/polls/:pidVote, edit, or close a poll

Contact Notes

MethodEndpointDescription
GET/api/user/contact-notesGet notes for a contact
PUT/api/user/contact-notesCreate or update a contact note

Email Updates

MethodEndpointDescription
GET/api/user/email-updatesGet email update preferences
PATCH/api/user/email-updatesUpdate email notification settings

POAP (Proof of Attendance) Channels

MethodEndpointDescription
GET/api/poap/scan?address=0x...Fetch user's POAPs (deduplicated events)
GET/api/poap/events-with-channels?address=... or ?addresses=0x1,0x2User's POAP events with channel status (multi-address; optional memberAddress)
GET/api/poap/collections?offset=0&limit=20&query=...List or search POAP collections (paginated)
GET/api/poap/collections/:idGet POAP collection by ID (includes dropIds)
GET/api/poap/collections-for-user?address=... or ?addresses=0x1,0x2Collections user can join (holds POAP) with channel status (optional memberAddress)

See POAP Channels Technical Guide for full integration details.

Agent Channel Management (Admin)

MethodEndpointDescription
GET/api/agents/:id/channelsGet channels agent is in
POST/api/agents/:id/channelsAdd agent to channel
DELETE/api/agents/:id/channelsRemove agent from channel

Rooms & Calls

MethodEndpointDescription
POST/api/roomsCreate instant room
GET/api/roomsList rooms
GET/api/rooms/:codeGet room
DELETE/api/rooms/:codeDelete room
POST/api/rooms/:code/tokenGet room token
GET/api/callsGet call history

Scheduling & Calendar

MethodEndpointDescription
GET/api/scheduling/listList scheduled calls
POST/api/scheduling/scheduleSchedule a call
GET/api/scheduling/availabilityGet availability
POST/api/scheduling/settingsUpdate settings
GET/api/calendar/connectConnect Google Calendar
GET/api/calendar/statusGet calendar status
POST/api/calendar/disconnectDisconnect calendar

Profile & Widgets

MethodEndpointDescription
GET/api/spotify/search?q=&type=Search Spotify (track, album, playlist, artist; requires env)

Utility

MethodEndpointDescription
GET/api/leaderboardGet leaderboard
GET/api/pointsGet user points
POST/api/points/dailyClaim daily points
POST/api/bug-reportsSubmit bug report

Next Steps

  • API Overview - Learn about authentication and error handling
  • Agents API - Detailed agent endpoint documentation
  • Streaming API - Livestreaming endpoint documentation
  • POAP Channels - POAP integration (scan, events-with-channels, create channel)