---
title: "Get organization structure"
method: GET
path: "/api/v1/orgs/{slug}/structure"
tags: ["Org Hierarchy"]
---

# Get organization structure

`GET /api/v1/orgs/{slug}/structure`

## Request

- Base URL: `https://api.skills-hub.ai`
- URL: `https://api.skills-hub.ai/api/v1/orgs/{slug}/structure`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Returns the org's full department and team hierarchy with member and skill counts, plus the caller's role in each unit. Requires org role `MEMBER` or higher.

## Path parameters

- `slug` string, required

## Response `200`

Successful response. The returned fields are described in this endpoint's summary/description; typed per-field response schemas are being added incrementally.

- object
  - `orgRole` 'ADMIN' | 'PUBLISHER' | 'MEMBER'
  - `departments` object[]
    - `id` string
    - `slug` string
    - `name` string
    - `description` string, nullable
    - `memberCount` integer
    - `skillCount` integer
    - `myRole` 'ADMIN' | 'MEMBER' | 'null', nullable
    - `teams` object[]
      - `id` string
      - `slug` string
      - `name` string
      - `description` string, nullable
      - `memberCount` integer
      - `skillCount` integer
      - `myRole` 'ADMIN' | 'MEMBER' | 'null', nullable
      - `createdAt` string, date-time
    - `createdAt` string, date-time

---

[API](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api.md) · [All operations](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/revisions/cb5d46d80300?raw)
