---
title: "Get skill groups by priority group"
method: GET
path: "/{sub_domain}/api/priority-groups/{id}"
tags: ["Priority-Groups"]
---

# Get skill groups by priority group

`GET /{sub_domain}/api/priority-groups/{id}`

## Request

- Base URL: `https://api.commpeak.com/dialer`
- URL: `https://api.commpeak.com/dialer/{sub_domain}/api/priority-groups/{id}`
- Auth: API key in header `Authorization`

Retrieve the skill groups assigned to a priority group, in priority order.

**When to use.** Read the composition of a single priority group, for example before updating it. To list the priority groups themselves, use `GET /priority-groups`.

**Parameters.** `id` (integer, required, path): the priority group to read.

**Returns.** `{ "skillGroups": [ ... ] }`. Each item lists the `skill_group_id`, its `name`, and its `order`, the position of the skill group within the priority group. Returns `404` if the priority group does not exist.

**Example.** `GET /api/priority-groups/5`

## Path parameters

- `id` integer, required: Priority group ID.
- `sub_domain` string, required: Dialer Name (subdomain)

## Response `200`

Successful Response

- PrioritySkillGroupsResponse
  - `skillGroups` PrioritySkillGroupItem[], required
    - `skill_group_id` integer, nullable: Skill group ID.
    - `name` string, nullable: Skill group name.
    - `order` integer, nullable: Position of the skill group within the priority group.

## Other responses

- `404`: Not Found
- `422`: Validation Error
- `500`: Internal Server Error

---

[API](https://skmtc.dev/commpeak/apis/commpeak-dialer-api.md) - [All operations](https://skmtc.dev/commpeak/apis/commpeak-dialer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/commpeak/apis/commpeak-dialer-api/revisions/18c5edc07544?raw)
