---
title: "One organization: plan, the limits the API enforces and your scopes in it (any member)"
method: GET
path: "/orgs/{orgId}"
tags: ["Identity"]
---

# One organization: plan, the limits the API enforces and your scopes in it (any member)

`GET /orgs/{orgId}`

## Request

- Base URL: `https://hostingsurge.com/api/v1`
- URL: `https://hostingsurge.com/api/v1/orgs/{orgId}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-hs_session`

## Path parameters

- `orgId` string, uuid, required

## Response `200`

The organization

- object
  - `id` string, uuid, required
  - `name` string, required
  - `role` 'owner' | 'admin' | 'developer' | 'billing' | 'editor' | 'viewer', required
  - `plan` string, nullable, required
  - `freePlan` object, nullable: the state of a Free team (migration 203); absent for paid, granted and owner teams
    - `status` 'ok' | 'site_limit' | 'upgrade_needed' | 'paused', required
    - `upgradeUrl` string, required: where the team upgrades (Settings → Billing), relative to the dashboard origin
  - `limits` object, required
    - `projects` integer, nullable, required
    - `databases` integer, nullable, required
    - `cpus` number, required: per project or database
    - `memoryMb` integer, required: per project or database
    - `totalCpus` number, nullable: ceiling on the sum of vCPU over all projects and databases of the organization; null = no total cap
    - `totalMemoryMb` integer, nullable: ceiling on the sum of memory (MB) over all projects and databases of the organization; null = no total cap
  - `scopes` string[], required: the caller's effective scopes in this organization

## Other responses

- `400`: Invalid request (code invalid_request)
- `401`: Missing or invalid session/token (code unauthorized)
- `403`: Authenticated but not permitted (code forbidden)
- `404`: Not found or not visible to the caller (code not_found)
- `409`: Conflicting state (code conflict)
- `429`: Too many requests (code rate_limited); see Retry-After
- `503`: Hosting engine unavailable (code provider_unavailable)

---

[API](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api.md) · [All operations](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/revisions/4d08337cdff1?raw)
