Basics

List workspaces: GET /workspaces

A kulcs által elérhető munkaterületek. A `current` azt jelöli, amelyikre a kérés érkezett. Ha a kulcs több munkaterületre szól, a többi útvonal a `showorg` fejlécben várja a munkaterület azonosítóját.

Path

Method and path
GEThttps://api.posty.hu/public/v1/workspaces
Authorization
No scope required.
operationId
listWorkspaces

The workspaces this credential can act on: id, name, the role the key's owner holds there, and `current` marking the one this request acted on.

A key can span several workspaces. Every other route then expects the chosen workspace id in the `showorg` header and refuses with 403 instead of guessing when it is missing. This one route works without the header, so there is somewhere to pick from. In the CLI, `posty workspaces:list` and `posty workspaces:use <id>` do the same.

Request

curl https://api.posty.hu/public/v1/workspaces \
  -H "Authorization: psty_a_kulcsod"

Response

Example response structure. The OpenAPI document contains the authoritative schema for each field.

[
  { "id": "org_1a2b3c", "name": "Kávézó Kft.", "role": "SUPERADMIN", "current": true },
  { "id": "org_4d5e6f", "name": "Personal", "role": "ADMIN", "current": false }
]

Related

Is something missing from this page? Email [email protected] or use the form on the Help page.