---
title: "Read a workspace profile"
description: "PubNio API profiles.get: read a workspace profile. 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.

# Read a workspace profile

Read a workspace profile with [`GET /api/v1/profiles/{profileId}`](https://pubnio.com/api/v1/docs#tag/profiles/GET/api/v1/profiles/{profileId}). Requires an API key with the `read` scope or a signed-in workspace member.

## Request

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

## Response

- HTTP 200: `WorkspaceProfile` with `id`, `workspaceId`, `name`, `externalId`, `isDefault`, `archived`, `createdAt`, `updatedAt`.

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

## Examples

### TypeScript

```ts
const found = await workspace.profiles.get(profileId);
```

### Python

```python
found = workspace.profiles.get(profile_id)
```

### cURL

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

### CLI

```sh
pnio profiles get "$PROFILE_ID"
```

### MCP execute

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

- [Profiles operations](https://pubnio.com/docs/reference/#profiles)
- [Accounts and connections](https://pubnio.com/docs/accounts/)
- [Build a platform](https://pubnio.com/docs/build-a-platform/)

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