List computed capabilities for connected accounts with GET /api/v1/integrations/capabilities. Requires an API key with the read scope or a signed-in workspace member.
Request
Capabilities are computed from the provider support matrix and the recorded grant. They do not change publishing readiness.
Each account lists every capability with a state. not_supported means the network has no such feature for that account kind; access_pending waits on provider approval; reconnect_required means the account was disconnected or its token expired; unverified means the granted scopes or Facebook Page tasks are unknown; permission_missing names the missingScopes to grant, or, for a Facebook Page with reason missing_page_tasks, means the person who connected it needs a Page task that can create content (CREATE_CONTENT or PROFILE_PLUS_CREATE_CONTENT); unavailable means the account reports available: false; supported means it is ready.
| Parameter | In | Type | Required |
|---|---|---|---|
workspaceId |
query | UUID | Yes |
profileId |
query | UUID | No |
accountId |
query | UUID | No |
capability |
query | one of 7 strings | No |
Response
- HTTP 200: an object with
capabilities.
The OpenAPI document has each field’s type.
Examples
const computed = await workspace.capabilities.list({ capability: "publish" });computed = workspace.capabilities.list()curl "https://pubnio.com/api/v1/integrations/capabilities?workspaceId=$WORKSPACE_ID" \
-H "Authorization: Bearer $PUBNIO_API_KEY"pnio capabilities list --capability publishasync () => {
const response = await codemode.request({
method: "GET",
path: "/api/v1/integrations/capabilities",
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.