SendSeven GmbH AI Answers API

The AI Answers API from SendSeven GmbH — 3 operation(s) for ai answers.

GitHub OpenAPI

Operations 4

GET /api/v1/ai-answers/{event_id} Get Ai Answer #
GET /api/v1/conversations/{conversation_id}/ai-answers List Conversation Ai Answers #
POST /api/v1/ai-answers/{event_id}/rate Rate Ai Answer #
DELETE /api/v1/ai-answers/{event_id}/rate Delete Ai Answer Rating #

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-ai-answers-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-ai-answers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SendSeven AI Answers API
  description: Unified messaging API for WhatsApp, Telegram, SMS, and more
  version: '20261124.1227'
servers:
- url: https://api.sendseven.com
  description: Production
tags:
- name: AI Answers
paths:
  /api/v1/ai-answers/{event_id}:
    get:
      tags:
      - AI Answers
      summary: Get Ai Answer
      description: 'Get one AI answer event with its sources and rating state.


        **Required Scopes:** `conversations:read`'
      operationId: get_ai_answer_api_v1_ai_answers__event_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: event_id
        in: path
        required: true
        schema:
          type: string
          title: Event Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AIAnswerEventResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/conversations/{conversation_id}/ai-answers:
    get:
      tags:
      - AI Answers
      summary: List Conversation Ai Answers
      description: 'List AI answers generated in a conversation.


        The rating UI renders a control next to a *message*, so results are also

        filterable by ``message_id`` — that is the key the frontend holds.

        ``surface=agent_draft`` lists Conversational Agent drafts: a pending

        draft has ``outcome=shown`` and no ``message_id``; once a teammate sends

        it, it carries the sent message''s id and ``outcome=sent``.


        **Required Scopes:** `conversations:read`'
      operationId: list_conversation_ai_answers_api_v1_conversations__conversation_id__ai_answers_get
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          title: Conversation Id
      - name: message_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Only the event that produced this message
          title: Message Id
        description: Only the event that produced this message
      - name: surface
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 20
          - type: 'null'
          description: Only this surface, e.g. agent_draft (Conversational Agent drafts)
          title: Surface
        description: Only this surface, e.g. agent_draft (Conversational Agent drafts)
      - 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: 200
          minimum: 1
          default: 50
          title: Page Size
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AIAnswerEventListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/ai-answers/{event_id}/rate:
    post:
      tags:
      - AI Answers
      summary: Rate Ai Answer
      description: 'Rate an AI answer 👍 / 👎 / ✗ (upsert — re-rating replaces).


        ``reason_category`` (``factually_wrong`` | ``outdated`` | ``incomplete`` |

        ``off_topic`` | ``wrong_tone`` | ``policy_violation`` | ``hallucinated`` |

        ``other``) is optional:


        * ``down`` without a reason is accepted — a bare 👎 that only feeds the

        quality statistics.

        * ``wrong`` without a reason is stored as ``factually_wrong``.


        A KB correction is opened (and an analysis job enqueued) when:


        * the verdict is ``wrong`` — always;

        * the verdict is ``down`` **with** a ``reason_category`` — always

        (``comment`` / ``better_answer`` optional);

        * the verdict is ``down`` without a reason but with substantive text

        (>= 15 chars) in ``comment`` and/or ``better_answer`` — legacy fallback.


        ``correction_opened`` / ``correction_id`` in the response tell the caller

        which happened, so the UI can confirm it ("Sent for review") and link to

        the review queue.


        Opening a correction never publishes anything by itself: a ``down``-born

        correction is review-only even for tenants in ``kb_correction_mode=auto``.


        Returns the recomputed scores of every FAQ entry the verdict touched, so

        the UI can reflect the consequence immediately.


        **Required Scopes:** `conversations:update`'
      operationId: rate_ai_answer_api_v1_ai_answers__event_id__rate_post
      security:
      - HTTPBearer: []
      parameters:
      - name: event_id
        in: path
        required: true
        schema:
          type: string
          title: Event Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AIAnswerRateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AIAnswerRateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - AI Answers
      summary: Delete Ai Answer Rating
      description: 'Withdraw your own rating. Affected entry scores are recomputed.


        **Required Scopes:** `conversations:update`'
      operationId: delete_ai_answer_rating_api_v1_ai_answers__event_id__rate_delete
      security:
      - HTTPBearer: []
      parameters:
      - name: event_id
        in: path
        required: true
        schema:
          type: string
          title: Event Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteResponse'
        '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
    DeleteResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Whether deletion succeeded
          default: true
        id:
          type: string
          title: Id
          description: ID of deleted resource
        message:
          anyOf:
          - type: string
          - type: 'null'
          title: Message
          default: Resource deleted successfully
      type: object
      required:
      - id
      title: DeleteResponse
      description: Response for resource deletion
    AIAnswerRateResponse:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        rating:
          $ref: '#/components/schemas/AIAnswerRatingSummary'
        ai_answer_event_id:
          type: string
          title: Ai Answer Event Id
        correction_opened:
          type: boolean
          title: Correction Opened
          description: True when this rating opened a KB correction and queued it for AI analysis. Always true for 'wrong'; true for 'down' only when the rater wrote substantive text in comment and/or better_answer. False means the verdict was recorded as a score signal only — the UI should NOT promise the feedback becomes a FAQ entry.
          default: false
        correction_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Correction Id
          description: The kb_corrections id when correction_opened is true — link the user to /knowledge-base/corrections. Null otherwise.
        updated_entries:
          items:
            $ref: '#/components/schemas/EntryScoreUpdate'
          type: array
          title: Updated Entries
      type: object
      required:
      - rating
      - ai_answer_event_id
      title: AIAnswerRateResponse
    AIAnswerRatingSummary:
      properties:
        id:
          type: string
          title: Id
        verdict:
          type: string
          title: Verdict
        reason_category:
          anyOf:
          - type: string
          - type: 'null'
          title: Reason Category
        comment:
          anyOf:
          - type: string
          - type: 'null'
          title: Comment
        better_answer:
          anyOf:
          - type: string
          - type: 'null'
          title: Better Answer
        rated_by_user_id:
          type: string
          title: Rated By User Id
        source_attribution:
          anyOf:
          - items:
              additionalProperties: true
              type: object
            type: array
          - type: 'null'
          title: Source Attribution
        agent_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Agent Id
          description: Conversational Agent that produced the rated answer (null for FAQ bots)
        agent_context:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Agent Context
          description: 'Snapshot at rating time: model, model_tier, skills[{slug, version, ...}], tools, turn_id'
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
      - id
      - verdict
      - rated_by_user_id
      - created_at
      - updated_at
      title: AIAnswerRatingSummary
      description: The current user's verdict on an answer, if any.
    AIAnswerRateRequest:
      properties:
        verdict:
          type: string
          title: Verdict
          description: up | down | wrong
        reason_category:
          anyOf:
          - type: string
          - type: 'null'
          title: Reason Category
          description: 'Why the answer was bad: factually_wrong | outdated | incomplete | off_topic | wrong_tone | policy_violation | hallucinated | other. Optional for ''down'' (without it the 👎 is a statistic only; with it a review-only correction is opened). For ''wrong'' it defaults to ''factually_wrong''.'
        comment:
          anyOf:
          - type: string
            maxLength: 5000
          - type: 'null'
          title: Comment
        better_answer:
          anyOf:
          - type: string
            maxLength: 20000
          - type: 'null'
          title: Better Answer
          description: What the answer should have said
        source_attribution:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Source Attribution
          description: faq_items.id values the rater explicitly blames. Takes full weight with no sharing (ignored for 'up' verdicts).
      type: object
      required:
      - verdict
      title: AIAnswerRateRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AIAnswerSource:
      properties:
        kind:
          type: string
          title: Kind
          description: faq_entry | document | website | history
        entry_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Entry Id
          description: faq_items.id when kind=faq_entry
        document_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Document Id
          description: knowledge_base_documents.id
        conversation_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Conversation Id
          description: Source conversation when kind=history
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        uri:
          anyOf:
          - type: string
          - type: 'null'
          title: Uri
          description: gs:// or https:// location
        excerpt:
          anyOf:
          - type: string
          - type: 'null'
          title: Excerpt
          description: Matched chunk, <= 500 chars
        score:
          anyOf:
          - type: number
          - type: 'null'
          title: Score
          description: Retrieval similarity, if known
        rank:
          anyOf:
          - type: integer
          - type: 'null'
          title: Rank
          description: 1-based position in the result set
        cited:
          type: boolean
          title: Cited
          description: The generator grounded on this source
          default: false
        entry_status:
          anyOf:
          - type: string
          - type: 'null'
          title: Entry Status
        entry_quality_score:
          anyOf:
          - type: number
          - type: 'null'
          title: Entry Quality Score
          description: NULL = not enough rating mass to judge
        entry_verified_by_usage:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Entry Verified By Usage
        entry_times_in_sent_reply:
          anyOf:
          - type: integer
          - type: 'null'
          title: Entry Times In Sent Reply
        entry_flagged_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: Entry Flagged Count
      type: object
      required:
      - kind
      title: AIAnswerSource
      description: One retrieved chunk that fed an answer.
    AIAnswerEventResponse:
      properties:
        id:
          type: string
          title: Id
        tenant_id:
          type: string
          title: Tenant Id
        conversation_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Conversation Id
        message_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Message Id
        bot_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Bot Id
        surface:
          type: string
          title: Surface
          description: suggest | bot | flow | team_chat | auto_reply | agent_draft
        user_id:
          anyOf:
          - type: string
          - type: 'null'
          title: User Id
        query_text:
          anyOf:
          - type: string
          - type: 'null'
          title: Query Text
        retrieval_query:
          anyOf:
          - type: string
          - type: 'null'
          title: Retrieval Query
        answer_text:
          anyOf:
          - type: string
          - type: 'null'
          title: Answer Text
        model:
          anyOf:
          - type: string
          - type: 'null'
          title: Model
        confidence:
          anyOf:
          - type: number
          - type: 'null'
          title: Confidence
        outcome:
          anyOf:
          - type: string
          - type: 'null'
          title: Outcome
          description: shown | accepted | sent | discarded
        flagged:
          type: boolean
          title: Flagged
          default: false
        created_at:
          type: string
          format: date-time
          title: Created At
        agent_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Agent Id
          description: ai_agents id when a Conversational Agent wrote the answer
        agent_turn_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Agent Turn Id
          description: Agent turn trace id (GET /automation/agents/{id}/turns)
        agent_context:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Agent Context
          description: model, model_tier, outcome, skills[{slug, title, version, version_id, skill_id, via}], tools
        sources:
          items:
            $ref: '#/components/schemas/AIAnswerSource'
          type: array
          title: Sources
        my_rating:
          anyOf:
          - $ref: '#/components/schemas/AIAnswerRatingSummary'
          - type: 'null'
          description: The requesting user's own verdict, if they rated it
        rating_counts:
          additionalProperties:
            type: integer
          type: object
          title: Rating Counts
          description: 'e.g. {"up": 3, "down": 1, "wrong": 0}'
        correction_ids:
          items:
            type: string
          type: array
          title: Correction Ids
          description: Corrections raised from this answer
      type: object
      required:
      - id
      - tenant_id
      - surface
      - created_at
      title: AIAnswerEventResponse
      description: One AI answer + everything the sources panel and rating control need.
    AIAnswerEventListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/AIAnswerEventResponse'
          type: array
          title: Items
        pagination:
          $ref: '#/components/schemas/PaginationMeta'
      type: object
      required:
      - items
      - pagination
      title: AIAnswerEventListResponse
    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