---
title: "Get a subcategory by ID"
method: GET
path: "/api/subcategory/{id}"
tags: ["Subcategory"]
---

# Get a subcategory by ID

`GET /api/subcategory/{id}`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/subcategory/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/subcategory/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a single subcategory by its ID with associated leagues in social review and social reject

## Path parameters

- `id` integer, required

## Response `200`

Subcategory details

- object
  - `id` integer
  - `name` string
  - `category_id` integer
  - `synopsis` string, nullable
  - `always_in_social_review` boolean
  - `leagues_in_social_review` object[]
    - `id` integer
    - `name` string
  - `always_in_social_reject` boolean
  - `leagues_in_social_reject` object[]
    - `id` integer
    - `name` string

## Other responses

- `401`: Unauthenticated
- `403`: Forbidden

---

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