InstagramApp
Stored in the instagramapps collection. createdAt and updatedAt are maintained automatically.
Returned by GET /apps/instagram.
| Field | Type | Notes |
|---|---|---|
name | string | default "" |
appId | string | required |
appSecret | string | required |
accessToken | string | |
instagramAccounts | object[] | default [] |
instagramAccounts.instagramUserId | string | required |
instagramAccounts.instagramUsername | string | |
instagramAccounts.name | string | default "" |
instagramAccounts.pageId | string | |
instagramAccounts.pageName | string | |
instagramAccounts.accountType | string | default business · one of business, creator, personal |
instagramAccounts.profilePictureUrl | string | |
instagramAccounts.biography | string | |
instagramAccounts.followersCount | number | default 0 |
instagramAccounts.followsCount | number | default 0 |
instagramAccounts.mediaCount | number | default 0 |
instagramAccounts.accessToken | string | |
instagramAccounts.pageAccessToken | string | |
instagramAccounts.tokenExpiry | date | |
instagramAccounts.status | string | default active · one of active, expired, revoked, pending, disconnected |
instagramAccounts.lastSyncAt | date | |
instagramAccounts.lastMessageAt | date | |
instagramAccounts.syncError | string | |
instagramAccounts._id | ObjectId | default "6a95712f932657988a91c03b" |
instagramAccounts.createdAt | date | set once |
instagramAccounts.updatedAt | date | |
verify | string | required |
state | string | |
authMethod | string | default oauth · one of credentials, oauth |
oauthApp | ObjectId -> InstagramApp | |
scopes | string[] | default [] |
webhookSubscribed | boolean | default false |
webhookSubscribedAt | date | |
webhookError | string | |
webhookVerifyToken | string | |
status | string | default setup · one of active, expired, revoked, pending, setup |
companyID | ObjectId | |
_id | ObjectId | default "6a95712f932657988a91c03c" |
createdAt | date | set once |
updatedAt | date |
Virtuals (computed, present only when the endpoint asks for them): activeAccessToken.