---
title: "Get Organization Structure by External ID"
method: GET
path: "/hris/organization_structures/external/{external_id}"
tags: ["organizationStructure"]
---

# Get Organization Structure by External ID

`GET /hris/organization_structures/external/{external_id}`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/hris/organization_structures/external/{external_id}`
- Auth: HTTP bearer

Fetches a single organization structure, returning associated roles and teams alongside structure metadata.

 **Token scopes**: `organizations:read`

## Path parameters

- `external_id` string, required

## Response `200`

Successful operation

- OrganizationStructureGetOrganizationStructureByExternalIdResponse200
  - `data` HrisOrganizationStructuresExternalExternalIdGetResponsesContentApplicationJsonSchemaData
    - `id` string, uuid: Organization ID
    - `name` string: Organization name
    - `type` string: Organization type
    - `roles` HrisOrganizationStructuresExternalExternalIdGetResponsesContentApplicationJsonSchemaDataRolesItems[]
      - `id` integer: Role ID
      - `name` string: Role name
    - `teams` HrisOrganizationStructuresExternalExternalIdGetResponsesContentApplicationJsonSchemaDataTeamsItems[]
    - `external_id` string: External ID
    - `teams_count` integer: Number of teams in the organization
    - `enable_roles` boolean: Flag to enable roles in the organization
    - `is_multiselect` boolean: Flag to enable multiselect in the organization

## Other responses

- `400`: Bad request - The provided externalId parameter is invalid or missing.
- `401`: Operation failed.
- `403`: Operation failed.
- `404`: Not found - No organization structure exists for the provided externalId.
- `500`: Operation failed.

---

[API](https://skmtc.dev/deel/apis/hris-endpoints.md) - [All operations](https://skmtc.dev/deel/apis/hris-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/deel/apis/hris-endpoints/revisions/b7b456c45a40?raw)
