The Mastodon API varies across instances with different versions, rate limits, and custom configurations. 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: ["mastodon"],
media: ["https:">//cdn.example.com/image.jpg"],
}),
});Authorize your Mastodon 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.
Post to any Mastodon instance with a single API call. No per-instance OAuth registration, no version detection, no format negotiation. Specify your instance and content, we handle the rest.
RelayAPI uses the official Mastodon API. Your posts appear natively in timelines with full ActivityPub federation, while we handle instance compatibility, OAuth, and rate limits.
The fediverse includes Mastodon, Pleroma, Akkoma, and other compatible platforms. RelayAPI detects the instance type and adapts API calls for maximum compatibility across the fediverse.
Yes. RelayAPI supports any Mastodon-compatible instance, including Pleroma, Akkoma, and other fediverse platforms. Connect your account from any instance and we handle the API differences.
RelayAPI supports text posts (up to instance character limit, typically 500), images (up to 4), videos, polls, and audio attachments. Content warnings and visibility levels are fully supported.
We detect instance software, version, and configuration automatically. This includes character limits, file size limits, supported media formats, and custom rate limits. Your posts are validated against the target instance's specific configuration.
Yes. Posts made through RelayAPI via the Mastodon API federate across the fediverse exactly like posts made through the Mastodon web interface. There is no difference in reach or federation behavior.
Join developers who chose RelayAPI over wiring up Mastodon API by hand.