SendSeven GmbH KB Corrections API

The KB Corrections API from SendSeven GmbH — 7 operation(s) for kb corrections.

GitHub OpenAPI

Operations 8

GET /api/v1/kb-corrections List Kb Corrections #
POST /api/v1/kb-corrections Create Kb Correction #
GET /api/v1/kb-corrections/{correction_id} Get Kb Correction #
POST /api/v1/kb-corrections/{correction_id}/approve Approve Kb Correction #
POST /api/v1/kb-corrections/{correction_id}/reject Reject Kb Correction #
POST /api/v1/kb-corrections/{correction_id}/retry-analysis Retry Kb Correction Analysis #
GET /api/v1/faq-entries/{faq_item_id}/revisions List Faq Entry Revisions #
POST /api/v1/faq-revisions/{revision_id}/revert Revert Faq Revision #

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/sendseven-com:sendseven-com-kb-corrections-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

sendseven-com-kb-corrections-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SendSeven KB Corrections API
  description: Unified messaging API for WhatsApp, Telegram, SMS, and more
  version: '20261124.1227'
servers:
- url: https://api.sendseven.com
  description: Production
tags:
- name: KB Corrections
paths:
  /api/v1/kb-corrections:
    get:
      tags:
      - KB Corrections
      summary: List Kb Corrections
      description: 'The correction review queue.


        **Required Scopes:** `knowledge_base:read`'
      operationId: list_kb_corrections_api_v1_kb_corrections_get
      security:
      - HTTPBearer: []
      parameters:
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: open|analyzing|proposed|applied|rejected|failed
          title: Status
        description: open|analyzing|proposed|applied|rejected|failed
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
          title: Page
      - name: page_size
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 25
          title: Page Size
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KBCorrectionListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - KB Corrections
      summary: Create Kb Correction
      description: 'Report something in the knowledge base as wrong.


        Reporting is deliberately an everyday agent permission — the person who

        notices the mistake is the one on the conversation. Deciding what the KB

        says still needs `knowledge_base:manage`.


        **Required Scopes:** `conversations:update`'
      operationId: create_kb_correction_api_v1_kb_corrections_post
      security:
      - HTTPBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KBCorrectionCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KBCorrectionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/kb-corrections/{correction_id}:
    get:
      tags:
      - KB Corrections
      summary: Get Kb Correction
      description: 'Correction detail, including the answer it came from and the entries it

        would change.


        **Required Scopes:** `knowledge_base:read`'
      operationId: get_kb_correction_api_v1_kb_corrections__correction_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: correction_id
        in: path
        required: true
        schema:
          type: string
          title: Correction Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KBCorrectionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/kb-corrections/{correction_id}/approve:
    post:
      tags:
      - KB Corrections
      summary: Approve Kb Correction
      description: 'Apply a correction''s proposed changes to the knowledge base.


        Every applied change writes a ``faq_entry_revisions`` row, which is what

        makes this reversible in one click.


        Body (optional): ``change_indexes`` applies a subset; ``edited_changes``

        (``[{index, proposed_text}]``) applies the reviewer''s own wording for

        ``update_entry`` / ``create_entry`` changes (422 ``edit_*`` codes otherwise).


        **Required Scopes:** `knowledge_base:manage` — plus `automation:update`

        when any change that would be applied is an ``append_bot_rule`` (it

        rewrites the bot''s instructions); otherwise 403 ``missing_scope``.'
      operationId: approve_kb_correction_api_v1_kb_corrections__correction_id__approve_post
      security:
      - HTTPBearer: []
      parameters:
      - name: correction_id
        in: path
        required: true
        schema:
          type: string
          title: Correction Id
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/KBCorrectionApprove'
              - type: 'null'
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KBCorrectionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/kb-corrections/{correction_id}/reject:
    post:
      tags:
      - KB Corrections
      summary: Reject Kb Correction
      description: 'Decline a proposed correction. Nothing touches the knowledge base.


        A policy correction routed to an open agent skill suggestion has its rule

        removed from that suggestion; with no rule left the suggestion is

        dismissed. The answer rating itself is kept.


        **Required Scopes:** `knowledge_base:manage`'
      operationId: reject_kb_correction_api_v1_kb_corrections__correction_id__reject_post
      security:
      - HTTPBearer: []
      parameters:
      - name: correction_id
        in: path
        required: true
        schema:
          type: string
          title: Correction Id
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/KBCorrectionReject'
              - type: 'null'
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KBCorrectionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/kb-corrections/{correction_id}/retry-analysis:
    post:
      tags:
      - KB Corrections
      summary: Retry Kb Correction Analysis
      description: 'Re-run the AI analysis of a correction that failed or stalled.


        Allowed for ``failed`` corrections and for ``open``/``analyzing`` ones that

        have not moved for the stale window (a lost job). Anything else → 409

        ``not_retryable``. The row goes back to ``open`` and the analysis job is

        re-published; poll ``GET /kb-corrections/{id}``.


        **Required Scopes:** `knowledge_base:manage`'
      operationId: retry_kb_correction_analysis_api_v1_kb_corrections__correction_id__retry_analysis_post
      security:
      - HTTPBearer: []
      parameters:
      - name: correction_id
        in: path
        required: true
        schema:
          type: string
          title: Correction Id
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KBCorrectionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/faq-entries/{faq_item_id}/revisions:
    get:
      tags:
      - KB Corrections
      summary: List Faq Entry Revisions
      description: 'Full change history of a FAQ entry, newest first.


        **Required Scopes:** `knowledge_base:read`'
      operationId: list_faq_entry_revisions_api_v1_faq_entries__faq_item_id__revisions_get
      security:
      - HTTPBearer: []
      parameters:
      - name: faq_item_id
        in: path
        required: true
        schema:
          type: string
          title: Faq Item Id
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
          title: Page
      - name: page_size
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 25
          title: Page Size
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FAQEntryRevisionListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/faq-revisions/{revision_id}/revert:
    post:
      tags:
      - KB Corrections
      summary: Revert Faq Revision
      description: 'Undo one revision, restoring the entry''s previous question/answer/status.


        Returns the NEW revision row that records the revert — a revert is itself

        a change, never a silent rewrite of history.


        **Required Scopes:** `knowledge_base:manage`'
      operationId: revert_faq_revision_api_v1_faq_revisions__revision_id__revert_post
      security:
      - HTTPBearer: []
      parameters:
      - name: revision_id
        in: path
        required: true
        schema:
          type: string
          title: Revision Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FAQEntryRevisionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PaginationMeta:
      properties:
        total:
          type: integer
          title: Total
          description: Total number of items matching the query
        page:
          type: integer
          minimum: 1.0
          title: Page
          description: Current page number (1-indexed)
        page_size:
          type: integer
          minimum: 1.0
          title: Page Size
          description: Number of items per page
        total_pages:
          type: integer
          title: Total Pages
          description: Total number of pages
        has_next:
          type: boolean
          title: Has Next
          description: Whether there are more pages
        has_prev:
          type: boolean
          title: Has Prev
          description: Whether there are previous pages
        next_cursor:
          anyOf:
          - type: string
          - type: 'null'
          title: Next Cursor
          description: Cursor for next page (if using cursor pagination)
        prev_cursor:
          anyOf:
          - type: string
          - type: 'null'
          title: Prev Cursor
          description: Cursor for previous page
      type: object
      required:
      - total
      - page
      - page_size
      - total_pages
      - has_next
      - has_prev
      title: PaginationMeta
      description: 'Pagination metadata for list responses.


        Supports both offset-based and page-based pagination.

        Clients should use page/page_size for new implementations.'
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    KBCorrectionResponse:
      properties:
        id:
          type: string
          title: Id
        tenant_id:
          type: string
          title: Tenant Id
        ai_answer_event_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Ai Answer Event Id
        ai_answer_rating_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Ai Answer Rating Id
        conversation_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Conversation Id
        reported_by_user_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Reported By User Id
        reported_by_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Reported By Name
        what_is_wrong:
          anyOf:
          - type: string
          - type: 'null'
          title: What Is Wrong
        why:
          anyOf:
          - type: string
          - type: 'null'
          title: Why
        correct_answer:
          anyOf:
          - type: string
          - type: 'null'
          title: Correct Answer
        status:
          type: string
          title: Status
          description: open | analyzing | proposed | applied | rejected | failed
        proposed_changes:
          items:
            $ref: '#/components/schemas/ProposedChange'
          type: array
          title: Proposed Changes
        analysis_confidence:
          anyOf:
          - type: number
          - type: 'null'
          title: Analysis Confidence
        auto_applied:
          type: boolean
          title: Auto Applied
          default: false
        resolved_by_user_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Resolved By User Id
        resolved_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Resolved At
        last_error:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Error
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        answer_text:
          anyOf:
          - type: string
          - type: 'null'
          title: Answer Text
        query_text:
          anyOf:
          - type: string
          - type: 'null'
          title: Query Text
        affected_entries:
          items:
            $ref: '#/components/schemas/EntryScoreUpdate'
          type: array
          title: Affected Entries
        correction_kind:
          anyOf:
          - type: string
          - type: 'null'
          title: Correction Kind
          description: fact | policy (null = legacy, treated as fact)
        policy_rule:
          anyOf:
          - type: string
          - type: 'null'
          title: Policy Rule
        skill_suggestion_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Skill Suggestion Id
          description: Set when a policy correction was routed to an agent skill suggestion; decide it there
        policy_target:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Policy Target
          description: 'Policy corrections only: {"type": "skill"|"bot"|null, "id", "name", "agent_id"}'
        policy_note:
          anyOf:
          - type: string
          - type: 'null'
          title: Policy Note
      type: object
      required:
      - id
      - tenant_id
      - status
      - created_at
      - updated_at
      title: KBCorrectionResponse
    KBCorrectionReject:
      properties:
        reason:
          anyOf:
          - type: string
            maxLength: 2000
          - type: 'null'
          title: Reason
      type: object
      title: KBCorrectionReject
    FAQEntryRevisionListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/FAQEntryRevisionResponse'
          type: array
          title: Items
        pagination:
          $ref: '#/components/schemas/PaginationMeta'
      type: object
      required:
      - items
      - pagination
      title: FAQEntryRevisionListResponse
    ProposedChange:
      properties:
        action:
          type: string
          title: Action
          description: update_entry | delete_entry | create_entry | flag_document | append_bot_rule
        target_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Target Type
          description: faq_item | document | bot
        target_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Target Id
        current_text:
          anyOf:
          - type: string
          - type: 'null'
          title: Current Text
        proposed_text:
          anyOf:
          - type: string
          - type: 'null'
          title: Proposed Text
        rationale:
          anyOf:
          - type: string
          - type: 'null'
          title: Rationale
        applied:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Applied
        blocked_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Blocked Reason
        edited_by_reviewer:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Edited By Reviewer
        original_proposed_text:
          anyOf:
          - type: string
          - type: 'null'
          title: Original Proposed Text
      type: object
      required:
      - action
      title: ProposedChange
    KBCorrectionListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/KBCorrectionResponse'
          type: array
          title: Items
        pagination:
          $ref: '#/components/schemas/PaginationMeta'
      type: object
      required:
      - items
      - pagination
      title: KBCorrectionListResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    KBCorrectionEditedChange:
      properties:
        index:
          type: integer
          minimum: 0.0
          title: Index
          description: 0-based position in proposed_changes
        proposed_text:
          type: string
          maxLength: 12000
          minLength: 1
          title: Proposed Text
          description: 'Replacement text. update_entry: the new answer (max 10000 chars). create_entry: ''QUESTION: ...\nANSWER: ...''.'
      type: object
      required:
      - index
      - proposed_text
      title: KBCorrectionEditedChange
      description: Reviewer-edited text for one proposed change (approve-with-edit).
    KBCorrectionCreate:
      properties:
        what_is_wrong:
          type: string
          maxLength: 5000
          minLength: 1
          title: What Is Wrong
        why:
          anyOf:
          - type: string
            maxLength: 2000
          - type: 'null'
          title: Why
        correct_answer:
          anyOf:
          - type: string
            maxLength: 20000
          - type: 'null'
          title: Correct Answer
        ai_answer_event_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Ai Answer Event Id
        conversation_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Conversation Id
        faq_item_ids:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Faq Item Ids
          description: Entries the reporter believes are wrong
      type: object
      required:
      - what_is_wrong
      title: KBCorrectionCreate
      description: Manual 'this is wrong' report (no AI answer required).
    KBCorrectionApprove:
      properties:
        change_indexes:
          anyOf:
          - items:
              type: integer
            type: array
          - type: 'null'
          title: Change Indexes
          description: Subset of proposed_changes to apply (0-based). Omit to apply all.
        edited_changes:
          anyOf:
          - items:
              $ref: '#/components/schemas/KBCorrectionEditedChange'
            type: array
            maxItems: 50
          - type: 'null'
          title: Edited Changes
          description: Approve with the reviewer's own wording. Only update_entry / create_entry changes can be edited; an edited index must be selected (inside change_indexes, or change_indexes omitted). The original analyzer text is kept as original_proposed_text.
      type: object
      title: KBCorrectionApprove
    FAQEntryRevisionResponse:
      properties:
        id:
          type: string
          title: Id
        tenant_id:
          type: string
          title: Tenant Id
        faq_item_id:
          type: string
          title: Faq Item Id
        revision_number:
          type: integer
          title: Revision Number
        question_before:
          anyOf:
          - type: string
          - type: 'null'
          title: Question Before
        answer_before:
          anyOf:
          - type: string
          - type: 'null'
          title: Answer Before
        question_after:
          anyOf:
          - type: string
          - type: 'null'
          title: Question After
        answer_after:
          anyOf:
          - type: string
          - type: 'null'
          title: Answer After
        status_before:
          anyOf:
          - type: string
          - type: 'null'
          title: Status Before
        status_after:
          anyOf:
          - type: string
          - type: 'null'
          title: Status After
        change_type:
          type: string
          title: Change Type
          description: create | update | delete | status_change | merge
        changed_by_user_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Changed By User Id
        changed_by_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Changed By Name
        correction_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Correction Id
        auto_applied:
          type: boolean
          title: Auto Applied
          default: false
        rationale:
          anyOf:
          - type: string
          - type: 'null'
          title: Rationale
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - tenant_id
      - faq_item_id
      - revision_number
      - change_type
      - created_at
      title: FAQEntryRevisionResponse
    EntryScoreUpdate:
      properties:
        faq_item_id:
          type: string
          title: Faq Item Id
        question:
          anyOf:
          - type: string
          - type: 'null'
          title: Question
        status:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
        quality_score:
          anyOf:
          - type: number
          - type: 'null'
          title: Quality Score
          description: NULL = not enough rating mass to judge. Never 0 for 'unrated'.
        positive_mass:
          type: number
          title: Positive Mass
          default: 0.0
        negative_mass:
          type: number
          title: Negative Mass
          default: 0.0
        rating_count:
          type: integer
          title: Rating Count
          default: 0
        verified_by_usage:
          type: boolean
          title: Verified By Usage
          default: false
        retrieval_rank_multiplier:
          type: number
          title: Retrieval Rank Multiplier
          default: 1.0
        demoted_to_review:
          type: boolean
          title: Demoted To Review
          default: false
      type: object
      required:
      - faq_item_id
      title: EntryScoreUpdate
      description: Recomputed score for one FAQ entry after a rating.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer