Skip to content

Get a workspace

PubNio API workspaces.get: get a workspace. Request fields, examples in five clients, errors, and idempotency.

Get a workspace with GET /api/v1/workspaces/{workspaceId}. Requires an API key with the read scope or a signed-in workspace member.

Request

Parameter In Type Required
workspaceId path UUID Yes

Response

  • HTTP 200: an object with id, name, defaultTimezone, role.
    • role: owner, member

The OpenAPI document has each field’s type.

Examples

const found = await client.workspaces.get(workspace.workspaceId);
found = client.workspaces.get(workspace_id)
curl "https://pubnio.com/api/v1/workspaces/$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
pnio workspaces get "$WORKSPACE_ID"

Also: pnio workspaces use.

async () => {
  const response = await codemode.request({
    method: "GET",
    path: `/api/v1/workspaces/${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

Type to search…

↑↓ navigate↵ selectEsc close