SendSeven GmbH Knowledge Base Learning API
The Knowledge Base Learning API from SendSeven GmbH — 4 operation(s) for knowledge base learning.
The Knowledge Base Learning API from SendSeven GmbH — 4 operation(s) for knowledge base learning.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/sendseven-com:sendseven-com-knowledge-base-learning-api"
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.
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: 3.2.0
info:
title: SendSeven Knowledge Base Learning API
description: Unified messaging API for WhatsApp, Telegram, SMS, and more
version: '20261124.1227'
servers:
- url: https://api.sendseven.com
description: Production
tags:
- name: Knowledge Base Learning
paths:
/api/v1/knowledge-base/learning-runs/estimate:
post:
tags:
- Knowledge Base Learning
summary: Estimate Learning Run
description: 'Count the closed conversations a learning run with this scope would read.
Read-only: no AI call, nothing written, nothing billed.
Workspace owners and admins only: anyone else gets 403
`learning_run_owner_admin_only`.
**Required Scopes:** `knowledge_base:manage`
**Plan features:** `knowledge_base` + `ai_features` (403 `feature_disabled`)'
operationId: estimate_learning_run_api_v1_knowledge_base_learning_runs_estimate_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/LearningRunCreate'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/api/v1/knowledge-base/learning-runs:
post:
tags:
- Knowledge Base Learning
summary: Create Learning Run
description: 'Start learning FAQ entries from past CLOSED conversations: the last N
closed conversations (`scope_mode=last_n`, 1..10000) or every conversation
closed since a date (`scope_mode=since_date`, YYYY-MM-DD, UTC), optionally
only from some channels. Runs in the background; poll
`GET /learning-runs/{id}` for progress, cancel any time.
Every Q&A pair is checked for personal data (removed, or the pair is
dropped), merged with existing entries when it is the same question, and
saved as a DRAFT entry for review. Nothing is used in answers until it is
published. AI usage is billed like any other AI use.
- 202: the run (`status=queued`)
- 409 `learning_run_active`: a run is already queued or running (`run` in the body)
- 422 `learning_run_invalid_scope`: `errors: [{field, code}]`
- 403 `learning_run_owner_admin_only`: only workspace owners and admins
can start runs (for an API key: the user who created the key)
- 403 `feature_disabled`: plan without Knowledge Base / AI, or AI switched off
**Required Scopes:** `knowledge_base:manage`
**Plan features:** `knowledge_base` + `ai_features`'
operationId: create_learning_run_api_v1_knowledge_base_learning_runs_post
security:
- HTTPBearer: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LearningRunCreate'
responses:
'202':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
get:
tags:
- Knowledge Base Learning
summary: List Learning Runs
description: 'Learning runs of this workspace, newest first.
`can_start` (top level, next to `items`): true only when the caller is a
workspace owner or admin and may start, estimate or cancel runs; false on
any error.
**Required Scopes:** `knowledge_base:read`'
operationId: list_learning_runs_api_v1_knowledge_base_learning_runs_get
security:
- HTTPBearer: []
parameters:
- 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: 20
title: Page Size
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/knowledge-base/learning-runs/{run_id}:
get:
tags:
- Knowledge Base Learning
summary: Get Learning Run
description: 'One learning run with its progress counters. Poll this while it runs.
**Required Scopes:** `knowledge_base:read`'
operationId: get_learning_run_api_v1_knowledge_base_learning_runs__run_id__get
security:
- HTTPBearer: []
parameters:
- name: run_id
in: path
required: true
schema:
type: string
title: Run Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/knowledge-base/learning-runs/{run_id}/cancel:
post:
tags:
- Knowledge Base Learning
summary: Cancel Learning Run
description: 'Cancel a learning run. A queued run stops at once; a running run stops
after the conversation it is working on. Entries already created stay in
review. Cancelling a finished run changes nothing.
Workspace owners and admins only: anyone else gets 403
`learning_run_owner_admin_only`.
**Required Scopes:** `knowledge_base:manage`'
operationId: cancel_learning_run_api_v1_knowledge_base_learning_runs__run_id__cancel_post
security:
- HTTPBearer: []
parameters:
- name: run_id
in: path
required: true
schema:
type: string
title: Run Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'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
LearningRunCreate:
properties:
scope_mode:
type: string
title: Scope Mode
description: '`last_n` or `since_date`'
last_n:
anyOf:
- type: integer
- type: 'null'
title: Last N
description: 1..10000, for `last_n`
since_date:
anyOf:
- type: string
- type: 'null'
title: Since Date
description: YYYY-MM-DD (start of day, UTC), for `since_date`
channel_ids:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Channel Ids
description: Only conversations from these channels (max 100)
kb_folder_id:
anyOf:
- type: string
- type: 'null'
title: Kb Folder Id
description: 'Folder for new entries (default: the FAQ entries folder)'
type: object
required:
- scope_mode
title: LearningRunCreate
description: 'Scope of a learning run. Validated by ``kb_learning.scope`` so every
violation returns 422 ``learning_run_invalid_scope`` with ``errors``.'
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
securitySchemes:
HTTPBearer:
type: http
scheme: bearer