---
title: "The organization of the team account in use, with your role in it."
method: GET
path: "/v1/organizations/current"
tags: ["organizations"]
---

# The organization of the team account in use, with your role in it.

`GET /v1/organizations/current`

## Request

- Base URL: `https://api.50heads.com`
- URL: `https://api.50heads.com/v1/organizations/current`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://auth.50heads.com/authorize`, token URL `https://auth.50heads.com/token`; client credentials, token URL `https://auth.50heads.com/token`, scopes: `organization:read`)

The organization of the team named in the account header. A personal account has none: 404 `not_in_organization`. Any member of its workspaces can read this; `role` says whether you are an admin.

## Response `200`

OK

- OrganizationGetResponse
  - `organization` object, required
    - `id` string, required
    - `name` string, required
    - `createdAt` string, required
    - `role` 'admin' | 'member', required
    - `defaultWorkspaceId` string, nullable, required
    - `workspaces` object[], required
      - `id` string, required
      - `name` string, required
      - `costCenter` string, nullable
      - `closed` boolean
    - `flags` object, required
    - `policies` object, required
      - `autoJoin` boolean, required
      - `claimWithNotice` boolean, required
      - `restrictPersonalSignup` boolean, required
      - `noticeDays` integer, required
    - `verifiedDomains` string[], required
    - `sso` object, nullable
      - `state` 'draft' | 'tested' | 'enabled', required
      - `enforce` boolean, required
    - `scim` object
      - `active` boolean, required
    - `securityPolicies` object
      - `requireTwoStep` boolean, required
      - `maxSessionAgeMinutes` integer, nullable, required
      - `idleTimeoutMinutes` integer, nullable, required
      - `reauthWindowMinutes` integer, nullable, required
    - `machineIdentities` boolean
    - `warehouseExport` boolean

## Other responses

- `401`: No key or token, or it expired or was revoked.
- `403`: The key or token lacks the scope (`insufficient_scope`), or the action is not allowed.
- `429`: Too many requests; wait for Retry-After.

---

[API](https://skmtc.dev/50heads/apis/50heads-api.md) · [All operations](https://skmtc.dev/50heads/apis/50heads-api/llms.txt) · [OpenAPI document](https://skmtc.dev/50heads/apis/50heads-api/revisions/20175e8b00e3?raw)
