DOCUMENTATION / REST REFERENCE
The REST reference.
Base URL: https://pullup.at/api/relay-bots/v1. Authenticate with Authorization: Bot <token>.
Requests and responses
Send JSON with Content-Type: application/json. Success responses use { ok: true, result: ... }. Errors use { ok: false, error: { code, message } }. A 429 response includes Retry-After in seconds. Channel and community mutations require a UUID nonce. Retry the same operation with the same nonce; do not reuse a nonce for different work.
Use UUID strings for entities and decimal strings for message IDs. Permission masks are decimal strings. The SDK types and examples are the canonical request-body reference. Unknown fields are rejected.
Available routes
| Method | Path | SDK |
|---|---|---|
| GET | /me, /team, /communities | getMe, getTeam, communities.fetch |
| POST | /heartbeat | setPresence |
| GET / POST | /updates / updates/ack | start (polling loop) |
| GET / PUT | /commands | commands.fetch / set |
| PUT / DELETE | /webhook | webhooks.set / delete |
| GET / PUT / DELETE | /storage | storage.get / set / delete |
| GET / POST | /communities/:id/channels | channels.fetch / create |
| PATCH / DELETE | /channels/:id | channels.edit / delete |
| PUT | /channels/:id/overwrites/:userId | channels.overwrite |
| GET / POST | /channels/:id/messages | messages.fetch / send |
| PATCH / DELETE | /channels/:id/messages/:messageId | messages.edit / delete |
| PUT / DELETE | /channels/:id/messages/:messageId/reactions | reactions.add / remove |
| GET / POST | /communities/:id/roles | roles.fetch / create |
| PATCH / DELETE | /communities/:id/roles/:roleId | roles.edit / delete |
| GET | /communities/:id/members | members.fetch |
| PUT / DELETE | /communities/:id/members/:userId/roles/:roleId | members.addRole / removeRole |
| PUT / DELETE | /communities/:id/members/:userId/ban | members.ban / unban |
| DELETE | /communities/:id/members/:userId | members.kick |
| PUT | /communities/:id/members/:userId/timeout | members.timeout |
| GET | /communities/:id/invite | invites.fetch |
| POST | /channels/:id/giveaways, /channels/:id/polls | giveaways.create / polls.create |
| GET | /channels/:id/giveaways/:item, /channels/:id/polls/:item | giveaways.fetch / polls.fetch |
| POST | /channels/:id/giveaways/:item/end, /channels/:id/polls/:item/end | giveaways.end / polls.end |
| POST / PATCH | /interactions/:id/respond | reply, deferReply, editReply, showModal |
| POST | /interactions/:id/followup | followUp |
| POST multipart | /files (channelId + file) | uploadFile |
Handle errors deliberately
| Status | Meaning |
|---|---|
| 400 | Invalid fields or limits |
| 401 | Missing, revoked or expired token |
| 403 | Current install, channel or hierarchy denies access |
| 404 | Entity unavailable |
| 409 | State changed, nonce conflict, or limit reached |
| 429 | Rate limited; respect Retry-After |
| 503 | Backend, migrations or signing configuration unavailable |
Current platform scope
This release covers community text bots, interactive messages, member and role automation, scoped moderation, private ticket channels, polls, giveaways, developer teams, bot presence, polling, webhooks and small application storage. It does not implement Discord’s entire API, Telegram compatibility, voice/music streaming, bot access to private DMs, payments, arbitrary bot-hosted code execution, or a public npm release. Host your bot process yourself.
relay