Read the account’s current Instagram publishing quota with GET /api/v1/integrations/accounts/{accountId}/instagram/publishing-limit. Requires an API key with the read scope or a signed-in workspace member.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
accountId |
path | UUID | Yes |
workspaceId |
query | UUID | Yes |
Response
- HTTP 200:
InstagramPublishingLimitwithused,limit,windowSeconds.
The OpenAPI document has each field’s type.
Examples
const limit = await workspace.accounts.instagramPublishingLimit(instagramId);limit = workspace.accounts.get_instagram_publishing_limit(account_id)curl "https://pubnio.com/api/v1/integrations/accounts/$ACCOUNT_ID/instagram/publishing-limit?workspaceId=$WORKSPACE_ID" \
-H "Authorization: Bearer $PUBNIO_API_KEY"pnio integrations instagram-quota "$INSTAGRAM_ID"async () => {
const accountId = "<accountId>";
const response = await codemode.request({
method: "GET",
path: `/api/v1/integrations/accounts/${accountId}/instagram/publishing-limit`,
query: { workspaceId: codemode.workspaceId },
});
return response.data;
};Errors
It declares no problem of its own.
It declares the problems most operations declare.
Idempotency
None needed: a read is safe to retry.
Limits
- Field lengths and ranges are in the OpenAPI document.