Check account readiness with GET /api/v1/integrations/accounts/{accountId}. Requires an API key with the read scope or a signed-in workspace member.
Request
Report readiness from the last recorded grant, destination selection, and token expiry. Publishing readiness is returned for social accounts; pass includeAdAccounts=true to read an ad account with its ads_read scope readiness. The default excludes ad accounts.
| Parameter | In | Type | Required |
|---|---|---|---|
accountId |
path | UUID | Yes |
workspaceId |
query | UUID | Yes |
includeAdAccounts |
query | "true", "false" |
No |
Response
- HTTP 200:
ProviderAccountwithid,profileId,connectionId,provider,accountKind,parentAccountId,name,platformUserId,avatarUrl,enabled,available,details,readiness,capabilities.provider:bluesky,facebook,instagram,linkedin,pinterest,reddit,snapchat,tiktok,threads,x,youtube,google_business,meta_ads,google_ads,reddit_ads,pinterest_ads,tiktok_ads,linkedin_ads,snapchat_ads,amazon_ads,openai_adsaccountKind:social_page,social_account,social_board,social_channel,ad_account
The OpenAPI document has each field’s type.
Examples
const account = await workspace.accounts.get(accountId);account = workspace.accounts.get(account_id)curl "https://pubnio.com/api/v1/integrations/accounts/$ACCOUNT_ID?workspaceId=$WORKSPACE_ID" \
-H "Authorization: Bearer $PUBNIO_API_KEY"pnio integrations get-account "$ACCOUNT_ID"Also: pnio integrations health.
async () => {
const accountId = "<accountId>";
const response = await codemode.request({
method: "GET",
path: `/api/v1/integrations/accounts/${accountId}`,
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.