Instagram API Guide

How to Schedule Instagram Timeline Posts via API

Publish feed posts to Instagram using the PostFast API. Schedule images, carousels, and videos that appear on your profile grid.

Last updated: October 2026
Automate your Instagram content strategyGet API Key

Instagram Timeline posts are permanent feed content that appears on your profile grid and in followers' feeds. Using the PostFast API, you can schedule Timeline posts by setting instagramPublishType to "TIMELINE" (or omitting it since TIMELINE is the default).

Timeline posts support images and videos, alone or mixed in a carousel. A single video publishes as a Reel, and for a Reel the instagramPostToGrid option controls whether it also appears in your feed and on your profile grid. You can also invite collaborators to co-author the post.

Key capabilities when scheduling Instagram Timeline posts via API include single images, carousels of images and videos, video posts (published as Reels), grid visibility for Reels, and collaborator invitations.

API Parameters

ParameterTypeDescription
instagramPublishTypestringType of Instagram post to create
TIMELINESTORYREEL
instagramPostToGridbooleanPost to profile grid (for Reels)
instagramCollaboratorsstring[]Array of Instagram usernames for collaboration

Code Example

const response = await fetch('https://api.postfa.st/social-posts', {
  method: 'POST',
  headers: {
    'pf-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
        "posts": [
            {
                "content": "Beautiful moments captured! #instagram #photography",
                "mediaItems": [
                    {
                        "key": "image/f5a6b7c8-d9e0-1234-5678-90abcdef1234.jpg",
                        "type": "IMAGE",
                        "sortOrder": 0
                    }
                ],
                "scheduledAt": "2025-01-31T10:00:00.000Z",
                "socialMediaId": "770fa600-04bd-43f6-c938-667877660003"
            }
        ],
        "controls": {
            "instagramPublishType": "TIMELINE",
            "instagramPostToGrid": true
        }
    })
});

const data = await response.json();

Did You Know?

Media
Up to 10 items
One image, one video, or a carousel of up to 10 images and videos, which can be mixed
Video
Publishes as a Reel
Instagram retired feed-only video, so a single video always goes out as a Reel
Aspect Ratio
1:1 or 4:5
Square (1:1) or portrait (4:5) recommended. 4:5 maximizes screen space in feed.
Caption
2,200 characters
PostFast rejects longer captions when you create the post

Tips

instagramPublishType: "TIMELINE" is the default, so you can omit it when posting feed content

Use sortOrder to control the order of images in carousel posts

instagramPostToGrid only affects a single video, which publishes as a Reel: set it to false to show the Reel only in the Reels tab

Portrait (4:5) images take up more screen space in the feed and often get better engagement

Schedule Timeline posts, Reels, and Stories from one API

✓ 7-day free trial
Try PostFast Free

Common Pitfalls

Carousel cropping

Instagram crops every carousel item to the aspect ratio of the first one. Use the same ratio for all of them.

Videos become Reels

A single video always publishes as a Reel, even with instagramPublishType: "TIMELINE", because Instagram retired feed-only video.

Too many images

More than 10 items in a carousel (images and videos together) will cause an error. Split into multiple posts if needed.

Frequently Asked Questions

What is the difference between TIMELINE and REEL for videos?

For a single video there is none. Instagram retired feed-only video, so it publishes as a Reel either way. Use TIMELINE for images and carousels (which can include videos) and REEL when you post one video.

Can I hide a post from my profile grid?

Only for a Reel. Image and carousel posts always appear in the feed and on your grid. A single video publishes as a Reel, and instagramPostToGrid: false shows it only in the Reels tab.

How do carousels work?

Include 2 to 10 IMAGE or VIDEO items in your mediaItems array with sequential sortOrder values (0, 1, 2, etc.). Images and videos can be mixed. Instagram displays them as a swipeable carousel.

Build your Instagram presence with programmatic posting

Start Free Trial
✓ 7-day free trial✓ Cancel anytime