---
title: "Check social OAuth completion"
description: "PubNio API integrations.connectionStatus: check social OAuth completion. 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 social OAuth completion

Check social OAuth completion with [`GET /api/v1/integrations/attempts/{attemptId}`](https://pubnio.com/api/v1/docs#tag/integrations/GET/api/v1/integrations/attempts/{attemptId}). Requires an API key with the `read` scope or a signed-in workspace member. A person reads attempts they started; a key reads attempts any key in its workspace started.

## Request

Read a connection attempt's outcome and profile. A connected attempt returns the account IDs; requester_revoked means the link's key was revoked.

| Parameter     | In    | Type | Required |
| ------------- | ----- | ---- | -------- |
| `attemptId`   | path  | UUID | Yes      |
| `workspaceId` | query | UUID | Yes      |

## Response

- HTTP 200: `ConnectionStatus`.

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

## Examples

### TypeScript

```ts
const status = await workspace.accounts.connectionStatus(attemptId);
```

### Python

```python
status = workspace.accounts.get_connection(attempt_id)
```

### cURL

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

### CLI

```sh
pnio integrations status "$ATTEMPT_ID"
```

Also: `pnio integrations connect`, `pnio integrations wait`.

### MCP execute

```js
async () => {
  const attemptId = "<attemptId>";
  const response = await codemode.request({
    method: "GET",
    path: `/api/v1/integrations/attempts/${attemptId}`,
    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-connection-status/index.mdx
