Skip to main content
GET
/
products
/
categories
/
{category}
Get category
curl --request GET \
  --url https://store.salesive.com/api/v1/products/categories/{category} \
  --header 'Authorization: Bearer <token>' \
  --header 'x-shop-id: <api-key>'
{
  "id": "<string>",
  "name": "<string>",
  "slug": "<string>",
  "description": "<string>",
  "image": "<string>"
}

Request

GET /products/categories/69fb494ddf63302ed89ba11d
x-shop-id: {{shopId}}
You can pass the category ID or slug in the category path segment.

Headers

HeaderTypeDescription
x-shop-idstringIdentify the shop context.

Path parameters

ParameterTypeDescription
categorystringCategory ID or slug.

Successful response

{
    "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

{
    "status": 404,
    "success": false,
    "message": "Category not found",
    "data": {}
}

Authorizations

Authorization
string
header
required

JWT issued by the Salesive Store API for authenticated shoppers.

x-shop-id
string
header
required

Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.

Headers

x-shop-id
string

Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.

Path Parameters

category
string
required

Category ID, slug, or name.

Response

Category detail response.

id
string
required

Unique category identifier.

name
string
required

Display name of the category.

slug
string
required

URL-friendly identifier for the category.

description
string

Optional description of the category.

image
string<uri>

Optional image URL for the category.