Get all categories

Contents

    List every category in the site, with the page keys related to each.

    Requires the API Token. See Authentication.

    HTTP Request

    GET /api/categories

    Parameters

    Key Type Description
    token (required) string API Token.

    Response

    HTTP Code: 200
    Content-Type: application/json
    Body:
    {
      "status": "0",
      "message": "List of categories.",
      "data": [
        {
          "key": "general",
          "name": "General",
          "description": "",
          "template": "",
          "list": ["welcome", "about"]
        }
      ]
    }

    To fetch full page details for a specific category, use Get a category.

    CURL command example

    $ curl -X GET "https://www.example.com/api/categories?token=<api-token>"