SendSeven GmbH FAQ Migration API

The FAQ Migration API from SendSeven GmbH — 3 operation(s) for faq migration.

GitHub OpenAPI

Operations 3

GET /api/v1/knowledge-base/faq-migration/estimate Estimate Faq Migration #
POST /api/v1/knowledge-base/faq-migration/start Start Faq Migration #
GET /api/v1/knowledge-base/faq-migration/status Get Faq Migration Status #

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-faq-migration-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-faq-migration-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SendSeven FAQ Migration API
  description: Unified messaging API for WhatsApp, Telegram, SMS, and more
  version: '20261124.1227'
servers:
- url: https://api.sendseven.com
  description: Production
tags:
- name: FAQ Migration
paths:
  /api/v1/knowledge-base/faq-migration/estimate:
    get:
      tags:
      - FAQ Migration
      summary: Estimate Faq Migration
      description: 'Preview a bulk migration: how many summaries, how many clusters, what it costs.


        Read-only and side-effect free — it loads the tenant''s ticket summaries and

        runs the same clustering the migration would, but makes no LLM call and

        writes nothing. This is what the "migrate history" button shows before the

        user commits.


        Not cheap (it clusters the whole pending corpus), so call it on demand, not

        on a timer. `/faq-migration/status` is the poll-safe endpoint.


        **Required Scopes:** `knowledge_base:read`

        **Plan features:** `knowledge_base` + `ai_features` (fail-closed: 403 `feature_disabled`)'
      operationId: estimate_faq_migration_api_v1_knowledge_base_faq_migration_estimate_get
      security:
      - HTTPBearer: []
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            maximum: 20000
            minimum: 1
          - type: 'null'
          description: 'Only consider this many summaries (default: all, max 20000)'
          title: Limit
        description: 'Only consider this many summaries (default: all, max 20000)'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FAQMigrationEstimateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/knowledge-base/faq-migration/start:
    post:
      tags:
      - FAQ Migration
      summary: Start Faq Migration
      description: 'Start (or preview) the bulk migration of ticket summaries into FAQ drafts.


        `dry_run=true` is handled **inline and never enqueues anything**: it loads

        and clusters the summaries and returns what it would have processed. No

        Gemini call, no row written, no folder touched — so it cannot possibly

        change the tenant''s knowledge base. Everything else publishes one

        `migrate_ticket_summaries` job; the worker processes a bounded number of

        clusters and re-enqueues itself until nothing is left, so this returns

        immediately and the UI polls `/faq-migration/status`.


        Everything the migration imports lands as a **draft**, whatever the

        tenant''s `faq_generation_mode` says.


        **409** when a migration is already in flight — the job chain would

        otherwise fork, double-billing the tenant for the same clusters. The

        response body carries the run that is holding it:


        {"detail": {"code": "migration_already_running",

        "message": "...",

        "run": {...} | null,

        "last_activity_at": "...Z" | null}}


        Pass `force=true` to override, once you know the other run is dead.


        **Required Scopes:** `knowledge_base:manage`

        **Plan features:** `knowledge_base` + `ai_features` (fail-closed: 403 `feature_disabled`)'
      operationId: start_faq_migration_api_v1_knowledge_base_faq_migration_start_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FAQMigrationStartRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FAQMigrationStartResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/v1/knowledge-base/faq-migration/status:
    get:
      tags:
      - FAQ Migration
      summary: Get Faq Migration Status
      description: 'Progress of the bulk migration, from what it has actually persisted.


        Poll-safe: counts are read back from the rows the migration wrote, with no

        clustering and no LLM call.


        **What is and is not knowable.** The migration keeps no run record and no

        cursor — it is resumable purely from `faq_items.source_conversation_ids`.

        So the backend can substantiate exactly one ratio,

        `percent_summaries_processed` (summaries consumed / summaries that exist),

        and it deliberately reports nothing about clusters remaining or time

        left, because nothing persists that. `running` is likewise an inference

        (`running_evidence` says from what), not a recorded state.


        **Required Scopes:** `knowledge_base:read`

        **Plan features:** `knowledge_base` + `ai_features` (fail-closed: 403 `feature_disabled`)'
      operationId: get_faq_migration_status_api_v1_knowledge_base_faq_migration_status_get
      security:
      - HTTPBearer: []
      parameters:
      - name: include_estimate
        in: query
        required: false
        schema:
          type: boolean
          description: Also run a fresh clustering pass (same work as /faq-migration/estimate). Expensive — never poll with this on
          default: false
          title: Include Estimate
        description: Also run a fresh clustering pass (same work as /faq-migration/estimate). Expensive — never poll with this on
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FAQMigrationStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    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
    FAQMigrationParams:
      properties:
        dry_run:
          type: boolean
          title: Dry Run
          default: false
        limit:
          anyOf:
          - type: integer
          - type: 'null'
          title: Limit
        max_clusters:
          anyOf:
          - type: integer
          - type: 'null'
          title: Max Clusters
        min_cluster_size:
          anyOf:
          - type: integer
          - type: 'null'
          title: Min Cluster Size
        include_singletons:
          type: boolean
          title: Include Singletons
          default: true
        retire_folder_when_done:
          type: boolean
          title: Retire Folder When Done
          default: false
      type: object
      title: FAQMigrationParams
      description: The parameters a run was started with (echoed back on start/status).
    FAQMigrationEstimateResponse:
      properties:
        tenant_id:
          type: string
          title: Tenant Id
          description: Tenant the estimate was computed for
        summaries_total:
          type: integer
          title: Summaries Total
          description: Ticket summaries readable by the migration right now
        summaries_already_migrated:
          type: integer
          title: Summaries Already Migrated
          description: Of those, how many a previous run already consumed
        summaries_pending:
          type: integer
          title: Summaries Pending
          description: Summaries a run would still have to process
        clusters:
          type: integer
          title: Clusters
          description: Clusters the pending summaries group into (one entry each)
        clusters_at_or_above_min_size:
          type: integer
          title: Clusters At Or Above Min Size
          description: Clusters with at least `min_cluster_size` members — the half that reliably produces FAQ entries
        singleton_clusters:
          type: integer
          title: Singleton Clusters
          description: Clusters below `min_cluster_size`. They still cost one LLM call each and the model refuses nearly all of them; `include_singletons=false` skips them
        min_cluster_size:
          type: integer
          title: Min Cluster Size
          description: Effective floor (tenant setting `faq_min_cluster_size`)
        estimated_llm_calls:
          type: integer
          title: Estimated Llm Calls
          description: One generation call per cluster processed
        estimated_cost_eur:
          type: number
          title: Estimated Cost Eur
          description: Cost of processing every cluster, including singletons
        estimated_cost_eur_without_singletons:
          type: number
          title: Estimated Cost Eur Without Singletons
          description: Cost with `include_singletons=false`
        estimated_runs:
          type: integer
          title: Estimated Runs
          description: Worker messages the job will take (it re-enqueues itself; 40 clusters per message by default)
      type: object
      required:
      - tenant_id
      - summaries_total
      - summaries_already_migrated
      - summaries_pending
      - clusters
      - clusters_at_or_above_min_size
      - singleton_clusters
      - min_cluster_size
      - estimated_llm_calls
      - estimated_cost_eur
      - estimated_cost_eur_without_singletons
      - estimated_runs
      title: FAQMigrationEstimateResponse
      description: 'What a full migration would cost, computed by actually clustering.


        No LLM call is made, nothing is written. This is the number the "migrate

        history" button shows before the tenant commits.'
    FAQMigrationClusterPreview:
      properties:
        size:
          type: integer
          title: Size
          description: Conversations in the cluster
        cohesion:
          type: number
          title: Cohesion
          description: Mean intra-cluster similarity (0-1)
        representative_intent:
          type: string
          title: Representative Intent
          description: Intent text of the representative conversation (truncated)
        eligible:
          type: boolean
          title: Eligible
          description: Whether size >= the effective min_cluster_size
      type: object
      required:
      - size
      - cohesion
      - representative_intent
      - eligible
      title: FAQMigrationClusterPreview
      description: One cluster as a dry run saw it.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FAQMigrationStartResponse:
      properties:
        success:
          type: boolean
          title: Success
        status:
          type: string
          title: Status
          description: '''queued'' — a job was published; ''preview'' — dry run, nothing enqueued'
        dry_run:
          type: boolean
          title: Dry Run
        run_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Run Id
          description: Null for a preview (a preview is not a run)
        started_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Started At
        params:
          $ref: '#/components/schemas/FAQMigrationParams'
        forced:
          type: boolean
          title: Forced
          description: True when the in-flight guard was explicitly overridden
          default: false
        lease_held:
          type: boolean
          title: Lease Held
          description: Whether the in-flight marker was actually stored. False means Redis was unavailable and duplicate-start protection falls back to the database activity check alone
          default: false
        message:
          type: string
          title: Message
        preview:
          anyOf:
          - $ref: '#/components/schemas/FAQMigrationPreview'
          - type: 'null'
          description: Populated only for `dry_run`
      type: object
      required:
      - success
      - status
      - dry_run
      - params
      - message
      title: FAQMigrationStartResponse
      description: Result of POST /knowledge-base/faq-migration/start.
    FAQMigrationPreview:
      properties:
        summaries_read:
          type: integer
          title: Summaries Read
        summaries_pending:
          type: integer
          title: Summaries Pending
        clusters:
          type: integer
          title: Clusters
        singletons_excluded:
          type: boolean
          title: Singletons Excluded
          description: True when the run was started with include_singletons=false
          default: false
        estimated_cost_eur:
          type: number
          title: Estimated Cost Eur
        sample_clusters:
          items:
            $ref: '#/components/schemas/FAQMigrationClusterPreview'
          type: array
          title: Sample Clusters
          description: The first 50 clusters, biggest first
        message:
          anyOf:
          - type: string
          - type: 'null'
          title: Message
          description: Set when there was nothing to do (e.g. everything already migrated)
      type: object
      required:
      - summaries_read
      - summaries_pending
      - clusters
      - estimated_cost_eur
      title: FAQMigrationPreview
      description: Dry-run report. Nothing was written and no LLM call was made.
    FAQMigrationRunInfo:
      properties:
        run_id:
          type: string
          title: Run Id
          description: Identifier minted when the run was started ('unknown' if re-created by a worker)
        started_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Started At
        started_by_user_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Started By User Id
        source:
          anyOf:
          - type: string
          - type: 'null'
          title: Source
          description: '''api'' when a user started it, ''enqueue'' when re-created mid-chain'
        params:
          anyOf:
          - $ref: '#/components/schemas/FAQMigrationParams'
          - type: 'null'
      type: object
      required:
      - run_id
      title: FAQMigrationRunInfo
      description: 'The in-flight marker for a migration.


        Held in Redis with a TTL and refreshed on every enqueue, so it exists for

        as long as the self-re-enqueueing chain does. It can be absent while a

        migration is genuinely running (Redis unavailable) — which is why

        `running` is not derived from it alone.'
    FAQMigrationStatusResponse:
      properties:
        tenant_id:
          type: string
          title: Tenant Id
        running:
          type: boolean
          title: Running
          description: 'INFERRED, not recorded: true when the in-flight marker exists, or when the migration wrote a row in the last few minutes while work remains. See `running_evidence`'
        running_evidence:
          items:
            type: string
          type: array
          title: Running Evidence
          description: 'Which signals fired: ''lease'' and/or ''recent_activity'''
        run:
          anyOf:
          - $ref: '#/components/schemas/FAQMigrationRunInfo'
          - type: 'null'
          description: The in-flight marker, when one exists
        summaries_total:
          type: integer
          title: Summaries Total
          description: 'Distinct conversations with a summary the migration can read. Marginally optimistic: a run also drops records with empty intent text and caps itself at 20000'
        summaries_migrated:
          type: integer
          title: Summaries Migrated
          description: Distinct conversation ids recorded as consumed by migrated rows
        summaries_pending:
          type: integer
          title: Summaries Pending
          description: '`summaries_total - summaries_migrated`, floored at 0'
        percent_summaries_processed:
          anyOf:
          - type: number
          - type: 'null'
          title: Percent Summaries Processed
          description: summaries_migrated / summaries_total * 100, rounded to 1 decimal. This is the ONLY progress ratio the backend can substantiate — it measures summaries consumed, NOT clusters done and NOT time elapsed, and it moves in jumps of a whole cluster. Null when the tenant has no summaries. There is no cluster-level or ETA progress record; ask `?include_estimate=true` (or /faq-migration/estimate) for a fresh cluster count
        entries_imported:
          type: integer
          title: Entries Imported
          description: FAQ entries the migration created (drafts, unless later changed)
        entries_by_status:
          additionalProperties:
            type: integer
          type: object
          title: Entries By Status
          description: Imported entries grouped by current status (draft/published/...)
        clusters_rejected:
          type: integer
          title: Clusters Rejected
          description: Clusters consumed without producing an entry — refused as non-reusable, blocked for PII, or merged into an existing entry. Stored as ARCHIVED ledger rows
        rejected_reasons:
          additionalProperties:
            type: integer
          type: object
          title: Rejected Reasons
          description: Breakdown of `clusters_rejected` by reason
        migrated_rows_total:
          type: integer
          title: Migrated Rows Total
          description: '`entries_imported + clusters_rejected`'
        last_activity_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Activity At
          description: Newest migrated row — the migration's real heartbeat
        estimate:
          anyOf:
          - $ref: '#/components/schemas/FAQMigrationEstimateResponse'
          - type: 'null'
          description: Fresh clustering pass. Only present with `?include_estimate=true` — it re-clusters the whole pending corpus, so do not poll with it
        checked_at:
          type: string
          title: Checked At
      type: object
      required:
      - tenant_id
      - running
      - summaries_total
      - summaries_migrated
      - summaries_pending
      - entries_imported
      - clusters_rejected
      - migrated_rows_total
      - checked_at
      title: FAQMigrationStatusResponse
      description: 'Everything the backend can truthfully say about migration progress.


        Poll-safe: no clustering, no LLM call. Every count is read back from rows

        the migration wrote.'
    FAQMigrationStartRequest:
      properties:
        dry_run:
          type: boolean
          title: Dry Run
          description: Preview only. Runs INLINE (no job is enqueued, no LLM call, no row written) and returns the clustering it would have processed
          default: false
        limit:
          anyOf:
          - type: integer
            maximum: 20000.0
            minimum: 1.0
          - type: 'null'
          title: Limit
          description: 'Cap on summaries read in one pass (default: all, max 20000)'
        max_clusters:
          anyOf:
          - type: integer
            maximum: 100.0
            minimum: 1.0
          - type: 'null'
          title: Max Clusters
          description: Clusters processed per worker message (default 40). Higher values risk the 600s worker message timeout; the job re-enqueues itself either way, so raising this buys nothing but risk
        min_cluster_size:
          anyOf:
          - type: integer
            maximum: 50.0
            minimum: 1.0
          - type: 'null'
          title: Min Cluster Size
          description: Override the tenant's `faq_min_cluster_size` for this run — the floor at which a cluster counts as recurring rather than one-off
        include_singletons:
          type: boolean
          title: Include Singletons
          description: 'Process one-off cases too. Set false for the cheap high-value pass: singletons dominate the cluster count and the cost, and are refused almost every time'
          default: true
        retire_folder_when_done:
          type: boolean
          title: Retire Folder When Done
          description: Hide the legacy 'Ticket Summaries' KB folder once nothing is left to migrate. A visible change to the tenant's KB tree, so opt-in. Ignored for `dry_run`
          default: false
        force:
          type: boolean
          title: Force
          description: Start even though a migration appears to be in flight, overriding the 409. Only for a run known to be dead — two live chains double-bill the tenant and race on the same summaries
          default: false
      type: object
      title: FAQMigrationStartRequest
      description: Parameters for one migration run (or preview).
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer