One API Call to Post on Instagram

The Instagram Graph API demands Facebook app review, complex OAuth flows, and strict media format requirements. RelayAPI handles OAuth, rate limits, media hosting, and API changes.

No credit card required · Free plan available

POST /v1/posts
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: ["instagram"],
    media: ["https:">//cdn.example.com/image.jpg"],
  }),
});

Instagram Graph API

  • Facebook App Review can take weeks and requires detailed permissions justification for each scope
  • Media must be hosted on a publicly accessible URL before publishing -- no direct uploads allowed
  • Carousel posts require creating individual media containers, then combining them in a second API call
  • Rate limits are opaque and inconsistent, varying by endpoint with no clear documentation
  • Frequent deprecations and breaking changes between Graph API versions with short migration windows

RelayAPI

  • RelayAPI manages the full OAuth flow and app review process so you never interact with Facebook Login directly
  • Upload media to RelayAPI and we handle public hosting, CDN delivery, and URL generation automatically
  • Create carousel posts with a single API call -- pass an array of media and we build the containers for you
  • Built-in rate limit management with automatic retries, backoff, and request queuing across all endpoints
  • We absorb Graph API version changes and deprecations so your integration never breaks
Save 3+ hours of development time

Business or Creator Account Required

Instagram publishing via the Graph API requires a Business or Creator account connected to a Facebook Page. Personal accounts cannot publish through the API.

Supported content types

PhotosVideosStoriesCarouselsReels

How it works

1

Connect your account

Authorize your Instagram account via OAuth in about 30 seconds.

2

Build your integration

Use the REST API or our SDKs to publish content from your stack.

3

We handle the rest

RelayAPI manages publishing, rate limits, and delivery notifications.

Ship Faster

Go from zero to publishing Instagram posts in under 10 minutes. One API call replaces dozens of Graph API requests, container creation steps, and media hosting setup.

Official API, Zero Hassle

RelayAPI uses the official Instagram Graph API under the hood. You get full platform compliance without managing Facebook App Review, token refreshes, or permissions yourself.

Carousels and Reels Made Simple

Publishing carousels and Reels through the Graph API requires multiple sequential requests. With RelayAPI, send one request with your media array and we handle the rest.

Frequently asked questions

Do I need a Business or Creator account to post to Instagram?

Yes. The Instagram Graph API only supports publishing for Business and Creator accounts linked to a Facebook Page. Personal Instagram accounts cannot publish via the API. You can convert your account in the Instagram app settings.

What content types can I publish to Instagram through RelayAPI?

RelayAPI supports Photos, Videos, Stories, Carousels (up to 10 images/videos), and Reels. Each content type is handled through a single unified endpoint with automatic media format validation.

How does RelayAPI compare to using the Instagram Graph API directly?

The Graph API requires you to manage Facebook App Review, host media on public URLs, create individual media containers for carousels, handle token refresh flows, and track API version migrations. RelayAPI wraps all of this into a single POST request.

Can I schedule Instagram posts with RelayAPI?

Yes. You can pass a scheduled publish time with any post request. RelayAPI queues the content and publishes at the specified time, handling token validity and retry logic automatically.

How does media handling work for Instagram?

Upload your media files directly to RelayAPI. We host them on our CDN, generate the public URLs Instagram requires, validate dimensions and formats, and clean up after publishing. No need to manage your own media hosting infrastructure.

Start building with Instagram.

Join developers who chose RelayAPI over wiring up Instagram Graph API by hand.