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

# Get a category by ID

`GET /api/category/{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/category/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/category/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a single category by its ID

## Path parameters

- `id` integer, required

## Response `200`

Category details

- object
  - `id` integer
  - `name` string
  - `synopsis` string, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time

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