The Discord API requires bot creation, gateway intent configuration, and understanding of guild-based permission hierarchies. RelayAPI handles OAuth, rate limits, media hosting, and API changes.
No credit card required · Free plan available
const res = await fetch("https:">//api.relayapi.dev/v1/posts", {
method: "POST",
headers: {
Authorization: "Bearer rlay_live_xxxx",
"Content-Type": "application/json",
},
body: JSON.stringify({
content: "Check out our latest update!",
platforms: ["discord"],
media: ["https:">//cdn.example.com/image.jpg"],
}),
});Authorize your Discord account via OAuth in about 30 seconds.
Use the REST API or our SDKs to publish content from your stack.
RelayAPI manages publishing, rate limits, and delivery notifications.
Send Discord messages with a single API call. No embed schema construction, no rate limit bucket management, no webhook vs bot routing. Specify the channel, content, and formatting -- we handle delivery.
RelayAPI uses the official Discord API. Your messages appear natively with embeds, attachments, and rich formatting, while we handle bot management, rate limits, and API versioning.
Discord's embed schema is powerful but complex. RelayAPI lets you create rich embeds with simple parameters -- title, description, images, and fields -- while we construct the proper embed objects.
You can use either a bot or webhooks. Bots offer more control (channel selection, reactions, threads) while webhooks are simpler for one-way posting. RelayAPI supports both methods through the same endpoint.
RelayAPI supports text messages, rich embeds (with titles, descriptions, images, fields), file attachments (images, videos, documents), polls, and threaded replies. Components like buttons can be included for bot-based messaging.
Yes. Connect multiple bots or webhooks and target specific channels by ID or name. RelayAPI handles the routing, permission checks, and rate limit isolation per server.
Discord uses per-route rate limit buckets with global limits. RelayAPI tracks bucket headers in real-time, queues requests per-route, and prevents global rate limit hits that could affect your entire bot.
Join developers who chose RelayAPI over wiring up Discord API by hand.