Get Catalog API

Overview

Retrieves detailed information about a specific catalog using its unique catalog ID. This API is useful when you need full metadata about a catalog, including schema, status, and product summary.

Method

GET

Endpoint

GET /v2/catalogs/{id}

Base URL

https://in1.api.clevertap.com/v2/catalogs/{id}

Region

Refer Region for more details.

Headers

These headers must be included with this API request to ensure proper authentication and content handling.

HeaderDescriptionRequired
Content-TypeContent type of the request payload. Must be application/json.Yes
X-Account-IdCleverTap account ID associated with the catalog.Yes
X-CleverTap-TokenAPI token used to authenticate the request.Yes

Path Parameter

The following path parameter is required to retrieve a specific catalog.

ParameterTypeRequiredDescription
idNumberYesUnique identifier of the catalog to retrieve.

Example Request

This request fetches details for the catalog with ID 123.

If you do not have the catalog ID, you can retrieve it in either of the following ways:

  • Use the List Catalogs API to fetch all catalogs associated with your account
  • Copy the catalog ID from the CleverTap dashboard
GET /v2/catalogs/123

Example Response

This example illustrates what a successful response for a catalog retrieval looks like.

{
  "id": 123,
  "catalogName": "electronics_catalog",
  "catalogSchema": [
    {
      "name": "brand",
      "type": "string",
      "filterable": true
    },
    {
      "name": "price",
      "type": "number",
      "filterable": true
    }
  ],
  "fieldMappings": {
    "manufacturer": "brand",
    "cost": "price"
  },
  "description": "Product catalog for electronics store",
  "totalProducts": 1500,
  "status": "ACTIVE",
  "createdAt": 1699564800,
  "createdBy": "[email protected]",
  "updatedBy": "[email protected]",
  "isActive": true,
  "attributeCount": 4,
  "totalColumns": 7
}

Response Parameters

The response returns the catalog details along with system-generated metadata:

ParameterTypeDescription
idintegerUnique identifier of the catalog.
catalogNamestringName of the catalog.
catalogSchemaarrayList of fields defined for the catalog. Each entry represents one attribute in the catalog.
fieldMappingsobjectMapping between source fields and catalog fields.
descriptionstringDescription of the catalog.
totalProductsintegerTotal number of products currently available in the catalog.
statusstringCurrent status of the catalog, for example, ACTIVE or INACTIVE.
createdAtintegerTime when the catalog was created, in Unix timestamp format.
createdBystringEmail address of the user who created the catalog.
updatedBystringEmail address of the user who last updated the catalog.
isActivebooleanIndicates whether the catalog is currently active.
attributeCountintegerTotal number of attributes defined in the catalog schema.
totalColumnsintegerTotal number of columns available in the catalog, including system-defined fields.

Error Codes

The following error codes may be returned when attempting to retrieve a catalog.

Error CodeDescription
CATALOG_NOT_FOUNDNo catalog exists for the specified id.
AUTHENTICATION_FAILEDThe provided token is missing or invalid.
AUTHORIZATION_FAILEDThe caller does not have permission to access this catalog.
INTERNAL_ERRORAn unexpected server-side error occurred.

CleverTap Ask AI Widget (CSP-Safe)