---
title: "Get an Agency"
method: GET
path: "/agencies/{agency_id}"
tags: ["Agencies"]
---

# Get an Agency

`GET /agencies/{agency_id}`

## Request

- Base URL: `https://api.mediamath.com/api/v3.0`
- URL: `https://api.mediamath.com/api/v3.0/agencies/{agency_id}`
- 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/agencies/:agency_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Get an agency by ID

## Path parameters

- `agency_id` integer, required

## Query parameters

- `extended` boolean

## Response `200`

Agency response

- union
  - AgencyResponse
    - `data` object
      - `ads_txt_verified` 'ANY' | 'AUTHORIZED_ONLY' | 'AUTHORIZED_DIRECT_ONLY' | 'NONE'
      - `allow_x_adv_optimization` boolean
      - `allow_x_adv_pixels` boolean
      - `dmp_enabled` 'disabled' | 'inherits'
      - `eligible_for_data_sharing` boolean
      - `name` string
      - `status` boolean
      - `logo` string
      - `mfa_avoidance` 'INHERIT' | 'ALLOW_ALL' | 'EXCLUDE_MFA'
      - `id` integer
      - `created_on` string, date-time
      - `entity_type` string
      - `organization_id` integer
      - `updated_on` string, date-time
      - `version` integer
      - `sales_contact_id` integer
      - `billing_contact_id` integer
      - `traffic_contact_id` integer
      - `inherited_mfa_avoidance` 'INHERIT' | 'ALLOW_ALL' | 'EXCLUDE_MFA': available if mfa_avoidance = INHERIT
      - `inherited_mfa_from` 'Organization' | 'Agency': available if mfa_avoidance = INHERIT
    - `meta` SingleMetadata
      - `status` string, required
  - AgencyResponseExtended
    - `data` object
      - `ads_txt_verified` 'ANY' | 'AUTHORIZED_ONLY' | 'AUTHORIZED_DIRECT_ONLY' | 'NONE'
      - `allow_x_adv_optimization` boolean
      - `allow_x_adv_pixels` boolean
      - `dmp_enabled` 'disabled' | 'inherits'
      - `eligible_for_data_sharing` boolean
      - `name` string
      - `status` boolean
      - `logo` string
      - `mfa_avoidance` 'INHERIT' | 'ALLOW_ALL' | 'EXCLUDE_MFA'
      - `id` integer
      - `created_on` string, date-time
      - `entity_type` string
      - `organization_id` integer
      - `updated_on` string, date-time
      - `version` integer
      - `sales_contact_id` integer
      - `billing_contact_id` integer
      - `traffic_contact_id` integer
      - `inherited_mfa_avoidance` 'INHERIT' | 'ALLOW_ALL' | 'EXCLUDE_MFA'
      - `inherited_mfa_from` 'Organization' | 'Agency'
    - `meta` SingleMetadata
      - `status` string, required

## 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)
