# Get default FAQs

Get FAQs tagged as default for the provided classification in the knowledge base

# 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": {
    "/faqs/default": {
      "get": {
        "tags": [
          "Gateway"
        ],
        "summary": "Get default FAQs",
        "description": "Get FAQs tagged as default for the provided classification in the knowledge base",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/customerKeyParam"
          },
          {
            "$ref": "#/components/parameters/projectKeyParam"
          },
          {
            "$ref": "#/components/parameters/cultureParam"
          },
          {
            "name": "classificationId",
            "in": "query",
            "description": "The classification Id to limit the query inside of the knowledge base.",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "$ref": "#/components/parameters/channel"
          },
          {
            "$ref": "#/components/parameters/sessionIdParam"
          },
          {
            "$ref": "#/components/parameters/offsetParam"
          },
          {
            "$ref": "#/components/parameters/maxParam"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FaqResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "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
      },
      "offsetParam": {
        "name": "offset",
        "in": "query",
        "description": "Starting point in the data for the query",
        "schema": {
          "type": "integer",
          "format": "int32"
        },
        "required": false
      },
      "maxParam": {
        "name": "max",
        "in": "query",
        "description": "Maximum number of search results.",
        "schema": {
          "type": "integer",
          "format": "int32"
        },
        "required": false
      },
      "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
      },
      "channel": {
        "name": "channel",
        "in": "query",
        "description": "Determines the answer set that needs to be leveraged on matched articles, dialogs, and events. Find out more about the channel parameters behaviour here https://developers.cm.com/conversational-ai-cloud/docs/channels",
        "schema": {
          "type": "string"
        },
        "required": false
      }
    },
    "securitySchemes": {
      "apiKey": {
        "description": "Conversational AI Cloud API key",
        "type": "apiKey",
        "in": "query",
        "name": "apikey"
      }
    },
    "schemas": {
      "FaqResponse": {
        "type": "object",
        "description": "Object containing the data requested through the Gateway API.",
        "properties": {
          "interactionId": {
            "type": "string",
            "description": "Guid generated for each request to the Gateway API which is used to identify the Gateway request in subsequent requests and reporting."
          },
          "sessionId": {
            "type": "string",
            "description": "Guid generated for each request to the Gateway API. Points to the session linked to the interaction, and subsequent interactions."
          },
          "culture": {
            "type": "string",
            "description": "The culture used to select the answer content for this request."
          },
          "result": {
            "$ref": "#/components/schemas/FaqResponseOutput"
          }
        }
      },
      "FaqResponseOutput": {
        "type": "object",
        "description": "Object containing the FAQ matches and search results.",
        "properties": {
          "matches": {
            "type": "array",
            "description": "The results matched to the provided query.",
            "items": {
              "$ref": "#/components/schemas/FAQ"
            }
          },
          "related": {
            "type": "array",
            "description": "The results related to the provided query.",
            "items": {
              "$ref": "#/components/schemas/FAQ"
            }
          }
        }
      },
      "FAQ": {
        "type": "object",
        "description": "An FAQ object containing all information required to present an FAQ to an end-user.",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "description": "The unique ID for the FAQ which can be used to retrieve the output for the FAQ in a subsequent call.",
            "example": 1
          },
          "question": {
            "type": "string",
            "description": "The question component of the FAQ.",
            "example": "What is your return policy?"
          },
          "categories": {
            "type": "array",
            "description": "One or multiple categories the FAQ is a part of within the knowledge base.",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          }
        }
      }
    }
  },
  "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
    }
  }
}
```