Connect
List Linked Instagram Accounts for Pending Connect
Lists the Instagram professional accounts linked to the user's Facebook Pages. Use it after connecting Instagram with loginMethod set to facebook_login, and send the tempToken returned to your redirect URL.
GET
header
x-api-key<token>Workspace API key, sent in the x-api-key header. Keys start with op_ and are created in the dashboard.
tempToken*stringLength
1 <= lengthSelectable Instagram accounts
application/json- response
accounts*array<>Example Request
import { Configuration, ConnectionsApi } from "@onepostly/sdk";const connectionsApi = new ConnectionsApi( new Configuration({ apiKey: process.env.ONEPOSTLY_API_KEY }));const response = await connectionsApi.listInstagramAccounts({ tempToken: "temp_abc123",});console.log(response);Example Response
{ "accounts": [ { "pageId": "123456789012345", "pageName": "Onepostly", "instagramAccountId": "17841400008460056", "username": "onepostly", "name": "Onepostly", "profilePictureUrl": "https://cdn.onepostly.com/avatars/onepostly.jpg" } ]}Select Facebook Page and Finish Connect
Connects the chosen Facebook Page and finishes the connect. Send the tempToken returned to your redirect URL.
Select Instagram Account and Finish Connect
Connects the chosen Instagram account and finishes the connect. Send the tempToken returned to your redirect URL.