List workspaces with GET /api/v1/workspaces. Requires an API key with the read scope or a signed-in user. An API key sees only its own workspace.
Request
List active workspaces you belong to. Use a returned ID to choose which workspace a request acts on.
Response
- HTTP 200: an object with
workspaces.
The OpenAPI document has each field’s type.
Examples
const workspaces = await client.workspaces.list();workspaces = client.workspaces.list()curl "https://pubnio.com/api/v1/workspaces" \
-H "Authorization: Bearer $PUBNIO_API_KEY"pnio workspaces listasync () => {
const response = await codemode.request({
method: "GET",
path: "/api/v1/workspaces",
});
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.