List workspace profiles with GET /api/v1/profiles. Requires an API key with the read scope or a signed-in workspace member.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
workspaceId |
query | UUID | Yes |
includeArchived |
query | "true", "false" |
No |
cursor |
query | string | No |
limit |
query | string | No |
Response
- HTTP 200:
ProfileListwithdata,hasMore,nextCursor.
The OpenAPI document has each field’s type.
Examples
const profiles = await workspace.profiles.list({ includeArchived: true });profiles = workspace.profiles.list()curl "https://pubnio.com/api/v1/profiles?workspaceId=$WORKSPACE_ID" \
-H "Authorization: Bearer $PUBNIO_API_KEY"pnio profiles list --include-archivedasync () => {
const response = await codemode.request({
method: "GET",
path: "/api/v1/profiles",
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
- Up to 100 items a page; pass
nextCursorback ascursor. See Pagination.