Kapture API
  • Welcome!
  • Reference
    • API Reference
      • Add Ticket API
      • Update Ticket API
      • Get Ticket API
      • Pull Ticket API by Date Range
      • Add Customer API
      • Update Customer API
      • Get Customer API
      • Pull Customer API by Date Range
      • Add Order API
      • Update Order API
      • Pull Order API
      • Get FAQ Content API
      • Get FAQ Category API
      • Search FAQ Content API
Powered by GitBook
On this page
  • Get FAQ Category.
  • Authentication:
  • Request Body
  • Response Body
  • Error Codes
  • Example of a working curl

Was this helpful?

  1. Reference
  2. API Reference

Get FAQ Category API

The Get FAQ Category API will help us to get all the category along with the Id's.

PreviousGet FAQ Content APINextSearch FAQ Content API

Last updated 1 year ago

Was this helpful?

Get FAQ Category.

POST

NOTE: Please replace with your sub domain name in the API.

Authentication:

To access this API endpoint, you need to include your API key in the request headers. For authentication, use the following header:

Basic <Your Token>

Request Body

There will be no body for the API we just need to pass the Authorization Key into the Headers.

Response Body

The API responds with a JSON object containing the details of the all the category in the system along with the category Id's.

Response
Response Messages

{ ..., "status": "success"}

List of customers fetched successfully.

{"message": "Invalid Auth Key","status": "failed"}

Authorization key is either not passed in header, or incorrect, or expired/disabled

{
    "message": {
        "category": [
            {
                "id": 5214,
                "name": "Milton",
                "detail": "",
                "parentCategoryName": "Add as Parent Category",
                "categoryPath": "5213/"
            },
            {
                "id": 5215,
                "name": "Claro",
                "detail": "",
                "parentCategoryName": "Add as Parent Category",
                "categoryPath": "5213/"
            },
            {
                "id": 5216,
                "name": "Spotzero",
                "detail": "",
                "parentCategoryName": "Add as Parent Category",
                "categoryPath": "5213/"
            },
            {
                "id": 5217,
                "name": "Treo",
                "detail": "",
                "parentCategoryName": "Add as Parent Category",
                "categoryPath": "5213/"
            },
            {
                "id": 5245,
                "name": "FAQ - Milton",
                "detail": "",
                "parentCategoryName": "Milton",
                "categoryPath": "5213/5214/"
            },
            {
                "id": 5246,
                "name": "FAQ - Treo",
                "detail": "",
                "parentCategoryName": "Treo",
                "categoryPath": "5213/5217/"
            },
            {
                "id": 5247,
                "name": "FAQ - Claro",
                "detail": "",
                "parentCategoryName": "Claro",
                "categoryPath": "5213/5215/"
            },
            {
                "id": 5248,
                "name": "FAQ - Spotzero",
                "detail": "",
                "parentCategoryName": "Spotzero",
                "categoryPath": "5213/5216/"
            }
        ]
    },
    "status": "success"
}

Error Codes

Error Codes
Description

400

Bad Request - Invalid parameters or missing data

401

Unauthorized - Invalid or missing API key

403

Forbidden - Insufficient permissions

404

Not Found - Resource or endpoint not found

500

Internal Server Error - Server-side issue

Example of a working curl

curl --location --request POST 'hamilton.kapturecrm.com/get-all-faq-categories.html' \
--header 'Cookie: JSESSIONID=; _KAPTURECRM_SESSION=; JSESSIONID=; JSESSIONID=7' \
--header 'Authorization: Basic <Your Token>'
import requests

url = "hamilton.kapturecrm.com/get-all-faq-categories.html"

payload = {}
headers = {
  'Cookie': 'JSESSIONID=; _KAPTURECRM_SESSION=; JSESSIONID=; JSESSIONID=',
  'Authorization': 'Basic <Your Token>'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'hamilton.kapturecrm.com/get-all-faq-categories.html',
  'headers': {
    'Cookie': 'JSESSIONID=; _KAPTURECRM_SESSION=; JSESSIONID=; JSESSIONID=',
    'Authorization': 'Basic <Your Token>'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

https://<sub domain>.kapturecrm.com/get-all-faq-categories.html