Postato Docs
API ReferenceWorkspaces

List accessible workspaces

Return every workspace the authenticated caller has access to. For API-key callers this is the set resolved from the key's scope (all / selected); for dashboard sessions this is the set of workspaces the member can see. Use this to resolve the `workspace_required` error when your key covers multiple workspaces and you called a workspace-scoped endpoint without `workspaceId`.

GET
/v1/workspaces
AuthorizationBearer <token>

API key in the format smcp_<64 hex chars>.

In: header

Response Body

application/json

application/json

curl -X GET "https://api.postato.com.br/v1/workspaces"
{
  "items": [
    {
      "id": "string",
      "name": "string",
      "createdAt": "string",
      "updatedAt": "string",
      "connectedAccountCount": 0,
      "connectedPlatforms": [
        "string"
      ],
      "memberCount": 0,
      "recentPostCount": 0
    }
  ]
}
{
  "error": "string",
  "message": "string",
  "details": null
}