---
title: "Retrieve a distribution rule"
method: GET
path: "/headcount/distribution-rules/{id}"
tags: ["Headcount"]
---

# Retrieve a distribution rule

`GET /headcount/distribution-rules/{id}`

## Request

- Base URL: `https://api.cubesoftware.com`
- URL: `https://api.cubesoftware.com/headcount/distribution-rules/{id}`
- Auth: OAuth 2
  - Authorization code: `https://portal.cubesoftware.com/o/authorize/`
  - Token URL: `https://api.cubesoftware.com/o/token/`

A distribution rule is one calculation on the headcount plan. All endpoints return 404 when the company has no headcount plan.

## Path parameters

- `id` string, required

## Headers

- `X-Company-ID` string, required

## Response `200`

- DistributionRule: Mixin to delegate create, update, and destroy operations to a service class.
  - `id` integer, required
  - `column_id` string, uuid, required
  - `name` string, required
  - `description` string
  - `target_account_id` integer, nullable
  - `expressions` DistributionRuleExpression[], required
    - `scenario_id` string, nullable, required
    - `expression` string, required

## Changes

> 34 revisions in range; 1 not diffed.

- **2026-10-19** `7c4d6221587a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cubesoftware/apis/cube-api/changes/headcount/distribution-rules/:id/get.md)

---

[API](https://skmtc.dev/cubesoftware/apis/cube-api.md) - [All operations](https://skmtc.dev/cubesoftware/apis/cube-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cubesoftware/apis/cube-api/revisions/92c7a097d975?raw)
