GET
/
api-category
/
v1
/
category

Authorizations

Authorization
string
header
required

S2S access token (JWT) from fabric Identity service (during Login)

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Query Parameters

ids
string[]

A 24-character system-generated category IDs. If ids and nodeIds are omitted, this endpoint returns all Alternate categories in Active status. Using size and page, you can narrow down the search results.

nodeIds
number[]

Numeric category IDs. When ids and nodeIds are omitted, specify size and page to narrow down the search results.

keyword
string

Keywords to search for categories. You will get a pagination response. Using size and page, you can narrow down the search results.

type
enum<string>

Category type. <br /> Note: When omitted, you will get ALTERNATE categories by default.

Available options:
PRIMARY,
ALTERNATE,
ALL
status
enum<string>

Category status. <br /> Note: If omitted, you will get Alternate categories in Active status by default. <br /> Note: When type is Primary, status must be Active. Inactive status is not applicable for Primary category.

Available options:
ACTIVE,
INACTIVE,
ALL
page
number

Page number to be retrieved. <br /> Note: <br /> 1) Applicable only in a paginated response. <br /> 2) Always paired with size <br /> 3) No default value set. Unless a value is specified, endpoint returns an error.

size
number

Number of records per page <br /> Note: <br /> 1) Always paired with page. <br /> 2) Applicable only in a paginated response. <br /> 3) No default value set. Unless a value is specified, endpoint returns an error.

Response

200 - application/json
totalSize
number

Total number of records (categories)

pageSize
number

Number of records (categories) per page

pages
number

Number of pages for the given pageSize

categories
object[]