---
title: "Check account readiness"
description: "PubNio API integrations.getAccount: check account readiness. Request fields, examples in five clients, errors, and idempotency."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Check account readiness

Check account readiness with [`GET /api/v1/integrations/accounts/{accountId}`](https://pubnio.com/api/v1/docs#tag/integrations/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: `ProviderAccount` with `id`, `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_ads`
  - `accountKind`: `social_page`, `social_account`, `social_board`, `social_channel`, `ad_account`

The [OpenAPI document](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const account = await workspace.accounts.get(accountId);
```

### Python

```python
account = workspace.accounts.get(account_id)
```

### cURL

```sh
curl "https://pubnio.com/api/v1/integrations/accounts/$ACCOUNT_ID?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
```

### CLI

```sh
pnio integrations get-account "$ACCOUNT_ID"
```

Also: `pnio integrations health`.

### MCP execute

```js
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](https://pubnio.com/docs/reference/#shared-problems) declare.

## Idempotency

None needed: a read is safe to retry.

## Limits

- Field lengths and ranges are in the [OpenAPI document](https://pubnio.com/api/v1/openapi).

## Related

- [Connected accounts operations](https://pubnio.com/docs/reference/#connected-accounts)
- [Accounts and connections](https://pubnio.com/docs/accounts/)

Source: https://pubnio.com/docs/reference/integrations-get-account/index.mdx
