---
title: "Get a category by slug"
method: GET
path: "/api/v1/categories/{slug}"
tags: ["Catalog"]
---

# Get a category by slug

`GET /api/v1/categories/{slug}`

## Request

- Base URL: `https://api.skills-hub.ai`
- URL: `https://api.skills-hub.ai/api/v1/categories/{slug}`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Returns one category by slug. Public; cached for 5 minutes. Responds `404` if the slug is unknown.

## Path parameters

- `slug` string, required

## Response `200`

Successful response. The returned fields are described in this endpoint's summary/description; typed per-field response schemas are being added incrementally.

- object
  - `id` string, required
  - `slug` string, required
  - `name` string, required
  - `description` string, nullable
  - `icon` string, nullable
  - `sortOrder` integer, required

---

[API](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api.md) · [All operations](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/revisions/cb5d46d80300?raw)
