Publish
Images with captions.
Messaging
Read & reply to DMs.
Comments
List & reply on posts.
Analytics
Followers, reach, impressions.
Connect
Standard OAuth 2 flow — request a URL, the user approves, PlugKit stores a long-lived token.1
Get the authorization URL
{ "authUrl": "https://www.instagram.com/oauth/authorize?..." }2
Send the user to authUrl
They log into their Instagram business account and approve the scopes.
3
PlugKit stores the account
Instagram redirects to
/connect/instagram/callback; PlugKit exchanges the
code for a long-lived token, subscribes the account to webhooks, and exposes
it in GET /accounts.Publish
Instagram publishing is a two-step process (create a media container, then publish) — PlugKit runs both for you. Provide a public image URL:Messaging
Read and reply to DMs. Inbound messages arrive via webhooks, or pull them on demand with sync:Sync + list
Reply / send a direct DM
Comments
Analytics
Instagram is the richest source in the analytics store: views, reach, likes, comments, shares and saves per post, plus followers, reach and profile views measured daily. Posts published from the Instagram app are collected too.Meta retired media
impressions in favour of views. Older posts may carry
one and not the other — which is why an unavailable metric comes back null
rather than 0.Permissions
Instagram grants these scopes on connect:instagram_business_basic,
…_content_publish, …_manage_messages, …_manage_comments,
…_manage_insights. Each capability above needs its matching scope.