Check social OAuth completion with 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 has each field’s type.
Examples
const status = await workspace.accounts.connectionStatus(attemptId);status = workspace.accounts.get_connection(attempt_id)curl "https://pubnio.com/api/v1/integrations/attempts/$ATTEMPT_ID?workspaceId=$WORKSPACE_ID" \
-H "Authorization: Bearer $PUBNIO_API_KEY"pnio integrations status "$ATTEMPT_ID"Also: pnio integrations connect, pnio integrations wait.
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 declare.
Idempotency
None needed: a read is safe to retry.
Limits
- Field lengths and ranges are in the OpenAPI document.