> ## Documentation Index
> Fetch the complete documentation index at: https://docs.salesive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get category

> Return a single category by its ID or slug.

## Request

```http theme={null}
GET /products/categories/69fb494ddf63302ed89ba11d
x-shop-id: {{shopId}}
```

<Info>
  You can pass the category ID or slug in the `category` path segment.
</Info>

## Headers

| Header      | Type   | Description                |
| ----------- | ------ | -------------------------- |
| `x-shop-id` | string | Identify the shop context. |

## Path parameters

| Parameter  | Type   | Description          |
| ---------- | ------ | -------------------- |
| `category` | string | Category ID or slug. |

## Successful response

```json theme={null}
{
    "status": 200,
    "success": true,
    "message": "Category found",
    "data": {
        "_id": "69fb494ddf63302ed89ba11d",
        "name": "Accessories",
        "description": null,
        "image": null,
        "shop": "68b8f52575da81b332af29f1",
        "createdAt": "2026-05-06T13:59:41.078Z",
        "updatedAt": "2026-05-06T13:59:41.078Z",
        "slug": "accessories-1",
        "__v": 0,
        "id": "69fb494ddf63302ed89ba11d"
    }
}
```

## Error response

```json theme={null}
{
    "status": 404,
    "success": false,
    "message": "Category not found",
    "data": {}
}
```


## OpenAPI

````yaml GET /products/categories/{category}
openapi: 3.1.0
info:
  title: Salesive Store API
  description: >-
    REST interface for querying products, categories, and merchandising banners
    exposed by Salesive storefronts.
  version: 1.0.0
servers:
  - description: Production
    url: https://store.salesive.com/api/v1
security:
  - BearerAuth: []
    ShopIdHeader: []
paths:
  /products/categories/{category}:
    get:
      summary: Get category
      description: Return a single category by its identifier, slug, or name.
      parameters:
        - $ref: '#/components/parameters/XShopIdHeader'
        - name: category
          in: path
          required: true
          description: Category ID, slug, or name.
          schema:
            type: string
      responses:
        '200':
          description: Category detail response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Category'
        '404':
          description: Category not found.
components:
  parameters:
    XShopIdHeader:
      name: x-shop-id
      in: header
      description: >-
        Optional identifier that scopes responses to a specific storefront when
        the referer cannot be inferred.
      required: false
      schema:
        type: string
  schemas:
    Category:
      type: object
      required:
        - id
        - name
        - slug
      properties:
        id:
          type: string
          description: Unique category identifier.
        name:
          type: string
          description: Display name of the category.
        slug:
          type: string
          description: URL-friendly identifier for the category.
        description:
          type: string
          description: Optional description of the category.
        image:
          type: string
          format: uri
          description: Optional image URL for the category.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT issued by the Salesive Store API for authenticated shoppers.
    ShopIdHeader:
      type: apiKey
      in: header
      name: x-shop-id
      description: >-
        Optional storefront identifier sent as a header to scope responses to a
        specific shop. Try It requests remember this value once provided.

````