---
title: "Get Segment Group Assignments"
method: GET
path: "/segment_groups/{segment_group_id}/assignments"
tags: ["Segment Groups"]
---

# Get Segment Group Assignments

`GET /segment_groups/{segment_group_id}/assignments`

## Request

- Base URL: `https://api.mediamath.com/api/v3.0`
- URL: `https://api.mediamath.com/api/v3.0/segment_groups/{segment_group_id}/assignments`
- Auth: OAuth 2
  - Authorization code: `https://auth.mediamath.com/authorize`
  - Token URL: `https://auth.mediamath.com/oauth/token` scopes: `offline_access`, `manage:services`
- TypeScript: <https://skmtc.dev/mediamath/apis/campaigns-api/docs/segment_groups/:segment_group_id/assignments/get.ts> (a function with typed inputs; its response is checked against the schema)

Get all assignments for a specific segment group

## Path parameters

- `segment_group_id` integer, required

## Query parameters

- `page_limit` integer
- `page_offset` integer

## Response `200`

Audience group assignments response

- object
  - `data` object[]
    - `id` integer
    - `strategy_id` integer
    - `strategy_name` string
    - `campaign_id` integer
    - `campaign_name` string
    - `advertiser_id` integer
    - `advertiser_name` string
    - `agency_id` integer
    - `agency_name` string
  - `meta` ListMetadata
    - `status` string, required: The status of the response, indicating success or failure.
    - `count` integer, required: The number of items returned in the current response.
    - `total_count` integer: The total number of items available in the dataset.
    - `offset` integer: The offset from the start of the dataset, used for pagination.
    - `next_page` string: The URL to fetch the next page of results.
    - `prev_page` string: The URL to fetch the previous page of results.

## Other responses

- `400`: Error response
- `401`: Error response
- `403`: Error response
- `404`: Error response

---

[API](https://skmtc.dev/mediamath/apis/campaigns-api.md) - [All operations](https://skmtc.dev/mediamath/apis/campaigns-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mediamath/apis/campaigns-api/revisions/408743891def?raw)
