Skip to main content
PlugKit uses Instagram API with Instagram Login. Connecting an account is a standard OAuth 2 flow: you get an authorization URL, the user approves, and Instagram redirects back to PlugKit, which stores a long-lived token.
1

Request the authorization URL

curl "https://api.plugkit.co/v1/connect/instagram?profileId=YOUR_PROFILE_ID" \
  -H "Authorization: Bearer sk_your_key"
Response:
{ "authUrl": "https://www.instagram.com/oauth/authorize?client_id=..." }
2

Send the user to authUrl

Open it in a browser (or a popup). The user logs into their Instagram business account and approves the requested permissions.
3

Instagram redirects back

Instagram calls https://api.plugkit.co/v1/connect/instagram/callback with a code. PlugKit exchanges it for a long-lived token, fetches the profile, and creates the account — no extra work on your side.
4

Confirm the account

curl https://api.plugkit.co/v1/accounts \
  -H "Authorization: Bearer sk_your_key"
The connected account now appears in the list.

Requested permissions

ScopeWhat it enables
instagram_business_basicRead the account profile and basic info.
instagram_business_content_publishPublish posts.
instagram_business_manage_messagesRead and send DMs.
instagram_business_manage_commentsRead, reply to, and hide comments.
instagram_business_manage_insightsRead account and media insights.
While your Meta app is in development, only accounts added as Instagram Testers in the Meta App Dashboard can complete this flow.