Rulebase Customer Complaint Categories API

The Customer Complaint Categories API from Rulebase — 3 operation(s) for customer complaint categories.

Operations 6

GET /customer-complaint-categories Get customer complaint categories #
POST /customer-complaint-categories Create customer complaint categories #
GET /customer-complaint-categories/{categoryId} Get customer complaint categories by category id #
PATCH /customer-complaint-categories/{categoryId} Update customer complaint categories by category id #
DELETE /customer-complaint-categories/{categoryId} Delete customer complaint categories by category id #
POST /customer-complaint-categories/description/generate Create customer complaint categories description generate #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/rulebase:rulebase-customer-complaint-categories-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

rulebase-customer-complaint-categories-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rulebase API2 Customer Complaint Categories API
  version: 0.0.1
tags:
- name: Customer Complaint Categories
paths:
  /customer-complaint-categories:
    get:
      parameters:
      - schema:
          type: integer
          minimum: 0
          exclusiveMinimum: true
          default: 1
        required: false
        name: page
        in: query
      - schema:
          type: integer
          description: Values above 100 are clamped to 100
          minimum: 1
        required: false
        name: limit
        in: query
      - schema:
          type: string
        required: false
        name: filter
        in: query
      responses:
        '200':
          description: List customer complaint categories
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        description:
                          type: string
                        reference:
                          type: string
                          nullable: true
                        priority:
                          type: string
                          enum:
                          - low
                          - medium
                          - high
                        organization_data_source_id:
                          type: string
                          nullable: true
                        channel_types:
                          type: array
                          items:
                            type: string
                        keywords:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                              text:
                                type: string
                            required:
                            - id
                            - text
                        created_by_membership:
                          type: object
                          nullable: true
                          properties:
                            id:
                              type: string
                            account:
                              type: object
                              properties:
                                id:
                                  type: string
                                full_name:
                                  type: string
                                email:
                                  type: string
                              required:
                              - id
                              - full_name
                              - email
                          required:
                          - id
                          - account
                        created_at:
                          type: string
                        updated_at:
                          type: string
                      required:
                      - id
                      - name
                      - description
                      - reference
                      - priority
                      - organization_data_source_id
                      - channel_types
                      - keywords
                      - created_by_membership
                      - created_at
                      - updated_at
                  meta:
                    type: object
                    properties:
                      page:
                        type: object
                        properties:
                          next:
                            type: string
                            nullable: true
                          limit:
                            type: integer
                          total:
                            type: integer
                        required:
                        - next
                        - limit
                        - total
                    required:
                    - page
                required:
                - data
                - meta
        '503':
          description: Rails organization unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      tags:
      - Customer Complaint Categories
      summary: Get customer complaint categories
      x-summary-source: derived
      operationId: getCustomerComplaintCategories
      x-operation-id-source: derived
    post:
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                customer_complaint_category:
                  type: object
                  properties:
                    name:
                      type: string
                    description:
                      type: string
                    priority:
                      type: string
                      enum:
                      - low
                      - medium
                      - high
                    organization_data_source_id:
                      type: string
                      nullable: true
                    channel_types:
                      type: array
                      items:
                        type: string
                        enum:
                        - email
                        - chat
                        - call
                    keywords:
                      type: array
                      items:
                        type: object
                        properties:
                          id:
                            type: string
                          text:
                            type: string
                          _destroy:
                            type: boolean
              required:
              - customer_complaint_category
      responses:
        '201':
          description: The created complaint category
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      description:
                        type: string
                      reference:
                        type: string
                        nullable: true
                      priority:
                        type: string
                        enum:
                        - low
                        - medium
                        - high
                      organization_data_source_id:
                        type: string
                        nullable: true
                      channel_types:
                        type: array
                        items:
                          type: string
                      keywords:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            text:
                              type: string
                          required:
                          - id
                          - text
                      created_by_membership:
                        type: object
                        nullable: true
                        properties:
                          id:
                            type: string
                          account:
                            type: object
                            properties:
                              id:
                                type: string
                              full_name:
                                type: string
                              email:
                                type: string
                            required:
                            - id
                            - full_name
                            - email
                        required:
                        - id
                        - account
                      created_at:
                        type: string
                      updated_at:
                        type: string
                    required:
                    - id
                    - name
                    - description
                    - reference
                    - priority
                    - organization_data_source_id
                    - channel_types
                    - keywords
                    - created_by_membership
                    - created_at
                    - updated_at
                required:
                - data
        '403':
          description: Missing the scorecards:manage permission
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '404':
          description: Complaint category not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '422':
          description: Invalid complaint category attributes
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '503':
          description: Rails organization unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      tags:
      - Customer Complaint Categories
      summary: Create customer complaint categories
      x-summary-source: derived
      operationId: postCustomerComplaintCategories
      x-operation-id-source: derived
  /customer-complaint-categories/{categoryId}:
    get:
      parameters:
      - schema:
          type: string
        required: true
        name: categoryId
        in: path
      responses:
        '200':
          description: A customer complaint category
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      description:
                        type: string
                      reference:
                        type: string
                        nullable: true
                      priority:
                        type: string
                        enum:
                        - low
                        - medium
                        - high
                      organization_data_source_id:
                        type: string
                        nullable: true
                      channel_types:
                        type: array
                        items:
                          type: string
                      keywords:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            text:
                              type: string
                          required:
                          - id
                          - text
                      created_by_membership:
                        type: object
                        nullable: true
                        properties:
                          id:
                            type: string
                          account:
                            type: object
                            properties:
                              id:
                                type: string
                              full_name:
                                type: string
                              email:
                                type: string
                            required:
                            - id
                            - full_name
                            - email
                        required:
                        - id
                        - account
                      created_at:
                        type: string
                      updated_at:
                        type: string
                    required:
                    - id
                    - name
                    - description
                    - reference
                    - priority
                    - organization_data_source_id
                    - channel_types
                    - keywords
                    - created_by_membership
                    - created_at
                    - updated_at
                required:
                - data
        '404':
          description: Complaint category not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '503':
          description: Rails organization unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      tags:
      - Customer Complaint Categories
      summary: Get customer complaint categories by category id
      x-summary-source: derived
      operationId: getCustomerComplaintCategoriesByCategoryId
      x-operation-id-source: derived
    patch:
      parameters:
      - schema:
          type: string
        required: true
        name: categoryId
        in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                customer_complaint_category:
                  type: object
                  properties:
                    name:
                      type: string
                    description:
                      type: string
                    priority:
                      type: string
                      enum:
                      - low
                      - medium
                      - high
                    organization_data_source_id:
                      type: string
                      nullable: true
                    channel_types:
                      type: array
                      items:
                        type: string
                        enum:
                        - email
                        - chat
                        - call
                    keywords:
                      type: array
                      items:
                        type: object
                        properties:
                          id:
                            type: string
                          text:
                            type: string
                          _destroy:
                            type: boolean
              required:
              - customer_complaint_category
      responses:
        '200':
          description: The updated complaint category
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      description:
                        type: string
                      reference:
                        type: string
                        nullable: true
                      priority:
                        type: string
                        enum:
                        - low
                        - medium
                        - high
                      organization_data_source_id:
                        type: string
                        nullable: true
                      channel_types:
                        type: array
                        items:
                          type: string
                      keywords:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            text:
                              type: string
                          required:
                          - id
                          - text
                      created_by_membership:
                        type: object
                        nullable: true
                        properties:
                          id:
                            type: string
                          account:
                            type: object
                            properties:
                              id:
                                type: string
                              full_name:
                                type: string
                              email:
                                type: string
                            required:
                            - id
                            - full_name
                            - email
                        required:
                        - id
                        - account
                      created_at:
                        type: string
                      updated_at:
                        type: string
                    required:
                    - id
                    - name
                    - description
                    - reference
                    - priority
                    - organization_data_source_id
                    - channel_types
                    - keywords
                    - created_by_membership
                    - created_at
                    - updated_at
                required:
                - data
        '403':
          description: Missing the scorecards:manage permission
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '404':
          description: Complaint category not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '422':
          description: Invalid complaint category attributes
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '503':
          description: Rails organization unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      tags:
      - Customer Complaint Categories
      summary: Update customer complaint categories by category id
      x-summary-source: derived
      operationId: patchCustomerComplaintCategoriesByCategoryId
      x-operation-id-source: derived
    delete:
      parameters:
      - schema:
          type: string
        required: true
        name: categoryId
        in: path
      responses:
        '204':
          description: The complaint category was discarded
        '403':
          description: Missing the scorecards:manage permission
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '404':
          description: Complaint category not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '422':
          description: Invalid complaint category attributes
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '503':
          description: Rails organization unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      tags:
      - Customer Complaint Categories
      summary: Delete customer complaint categories by category id
      x-summary-source: derived
      operationId: deleteCustomerComplaintCategoriesByCategoryId
      x-operation-id-source: derived
  /customer-complaint-categories/description/generate:
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  maxLength: 255
                priority:
                  type: string
                  enum:
                  - low
                  - medium
                  - high
                currentDescription:
                  type: string
                  nullable: true
                  maxLength: 10000
                prompt:
                  type: string
                  minLength: 1
                  maxLength: 4000
              required:
              - name
              - priority
              - prompt
      responses:
        '200':
          description: Generated complaint type description
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      description:
                        type: string
                        minLength: 1
                        description: Complete classifier-ready complaint type description with inclusion and exclusion criteria.
                    required:
                    - description
                    additionalProperties: false
                required:
                - data
        '400':
          description: Invalid generation input
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '403':
          description: Missing permission
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '502':
          description: Description generation failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      tags:
      - Customer Complaint Categories
      summary: Create customer complaint categories description generate
      x-summary-source: derived
      operationId: postCustomerComplaintCategoriesDescriptionGenerate
      x-operation-id-source: derived
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Rulebase organization API key