# Get category

Retrieve a single category for a given classification inside the knowledge base. Does not contain FAQs

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Conversational AI Cloud",
    "version": "4.0.10"
  },
  "servers": [
    {
      "url": "https://{environment}.digitalcx.com",
      "variables": {
        "environment": {
          "default": "api",
          "enum": [
            "api",
            "api-cms",
            "api-staging"
          ]
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Gateway",
      "description": "Conversational AI Cloud's Gateway API provides answers based on a given input, retrieves articles (FAQs) from the knowledge base, and additional features such as feedback."
    }
  ],
  "paths": {
    "/classifications/{classificationId}/categories/{categoryId}": {
      "get": {
        "tags": [
          "Gateway"
        ],
        "summary": "Get category",
        "description": "Retrieve a single category for a given classification inside the knowledge base. Does not contain FAQs",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/customerKeyParam"
          },
          {
            "$ref": "#/components/parameters/projectKeyParam"
          },
          {
            "$ref": "#/components/parameters/cultureParam"
          },
          {
            "name": "classificationId",
            "in": "path",
            "description": "The ID of the classification to retrieve.",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "categoryId",
            "in": "path",
            "description": "The ID of the category to retrieve.",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "$ref": "#/components/parameters/sessionIdParam"
          },
          {
            "$ref": "#/components/parameters/includeFaqs"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json, standard": {
                "schema": {
                  "$ref": "#/components/schemas/GetSingleCategory"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "includeFaqs": {
        "name": "includeFaqs",
        "in": "query",
        "description": "Include FAQs in categories (default = true).",
        "schema": {
          "type": "boolean"
        },
        "example": false,
        "required": false
      },
      "cultureParam": {
        "name": "culture",
        "in": "query",
        "description": "Points to the culture of the project, which determines what content within the projects scope the answer will originate from.",
        "schema": {
          "type": "string"
        },
        "required": true
      },
      "sessionIdParam": {
        "name": "session.id",
        "in": "query",
        "description": "The GUID which identifies what session the specific interaction (request) belongs in",
        "schema": {
          "type": "string"
        },
        "required": false
      },
      "customerKeyParam": {
        "name": "customerKey",
        "in": "query",
        "description": "Customer identifier used for authenticating the request.",
        "schema": {
          "type": "string"
        },
        "required": true
      },
      "projectKeyParam": {
        "name": "projectKey",
        "in": "query",
        "description": "Project identifier used for authenticating the request, and to determine what project environment the interaction will take place in.",
        "schema": {
          "type": "string"
        },
        "required": true
      }
    },
    "securitySchemes": {
      "apiKey": {
        "description": "Conversational AI Cloud API key",
        "type": "apiKey",
        "in": "query",
        "name": "apikey"
      }
    },
    "schemas": {
      "GetSingleCategory": {
        "type": "object",
        "description": "Object containing a category and its subcategories.",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The ID of the category.",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "The name of the category.",
            "example": "Contact"
          },
          "sortIndex": {
            "type": "integer",
            "format": "int32",
            "description": "The index in the sorting as defined in the content for the project."
          },
          "subCategories": {
            "type": "array",
            "description": "Array of (sub-)categories belonging to this category.",
            "items": {
              "$ref": "#/components/schemas/GetSingleCategory"
            }
          },
          "isDefault": {
            "type": "boolean",
            "description": "Indicates whether or not this is the default category at this scope in the knowledge base",
            "example": true
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 110,
      "2": 119,
      "3": 152,
      "4": 7,
      "5": 209,
      "6": 200,
      "7": 0,
      "8": 59,
      "9": 116,
      "10": 112,
      "11": 80
    }
  }
}
```