Skysay Knowledge API

Knowledge bases and their documents.

GitHub OpenAPI

Operations 14

GET /v1/agents/{agent_id}/knowledge-bases List active knowledge bases attached to one hosted agent #
PATCH /v1/agents/{agent_id}/knowledge-bases Replace the knowledge bases attached to one hosted agent #
GET /v1/knowledge-bases List bounded active knowledge bases for the authenticated project #
POST /v1/knowledge-bases Create a private knowledge base in the authenticated workspace #
DELETE /v1/knowledge-bases/{knowledge_base_id} Hide and asynchronously delete one knowledge base and its private sources #
GET /v1/knowledge-bases/{knowledge_base_id} Read one knowledge base #
PATCH /v1/knowledge-bases/{knowledge_base_id} Rename one knowledge base #
GET /v1/knowledge-bases/{knowledge_base_id}/documents List bounded document lifecycle state for one knowledge base #
POST /v1/knowledge-bases/{knowledge_base_id}/documents Direct-upload one private TXT, Markdown, PDF, or DOCX source #
POST /v1/knowledge-bases/{knowledge_base_id}/test Test one grounded answer against a private knowledge base #
DELETE /v1/knowledge-documents/{document_id} Hide and asynchronously delete one private source document #
POST /v1/knowledge-documents/{document_id}/replace Replace one permanently unreadable private source document #
POST /v1/knowledge-documents/{document_id}/retry Retry a recoverable knowledge document ingestion #
GET /v1/knowledge-documents/{document_id}/text Read a bounded page of normalized extracted text for one ready document #

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/skysay-ai:skysay-ai-knowledge-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

skysay-ai-knowledge-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'Agent-native telephony API for customer onboarding, credits, numbers, webhooks, gateways, and policy-gated calls. Request bodies are UTF-8. Send JSON: a body that is absent or whitespace-only reads as an empty object, and a JSON body that is not valid JSON, is not a JSON object, or is not UTF-8 returns 400. A request carrying any Content-Encoding other than identity returns 415 — this API does not accept compressed request bodies. A required field that is missing, null or blank returns 400 naming the field.'
  title: Skysay Knowledge API
  version: 0.1.0
servers:
- url: https://api.skysay.ai
security:
- ApiKeyBearer: []
tags:
- description: Knowledge bases and their documents.
  name: Knowledge
paths:
  /v1/agents/{agent_id}/knowledge-bases:
    get:
      operationId: listAgentKnowledgeBases
      parameters:
      - in: path
        name: agent_id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Agent knowledge-base attachments
      summary: List active knowledge bases attached to one hosted agent
      tags:
      - Knowledge
    patch:
      operationId: replaceAgentKnowledgeBases
      parameters:
      - in: path
        name: agent_id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KnowledgeBaseAttachments'
        required: true
      responses:
        '200':
          description: Agent knowledge-base attachments
      summary: Replace the knowledge bases attached to one hosted agent
      tags:
      - Knowledge
  /v1/knowledge-bases:
    get:
      operationId: listKnowledgeBases
      responses:
        '200':
          description: Knowledge bases and pagination
      summary: List bounded active knowledge bases for the authenticated project
      tags:
      - Knowledge
    post:
      operationId: createKnowledgeBase
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KnowledgeBase'
        required: true
      responses:
        '201':
          description: Knowledge base
      summary: Create a private knowledge base in the authenticated workspace
      tags:
      - Knowledge
  /v1/knowledge-bases/{knowledge_base_id}:
    delete:
      operationId: deleteKnowledgeBase
      parameters:
      - in: path
        name: knowledge_base_id
        required: true
        schema:
          type: string
      responses:
        '202':
          description: Deletion queued
      summary: Hide and asynchronously delete one knowledge base and its private sources
      tags:
      - Knowledge
    get:
      operationId: getKnowledgeBase
      parameters:
      - in: path
        name: knowledge_base_id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Knowledge base
      summary: Read one knowledge base
      tags:
      - Knowledge
    patch:
      operationId: updateKnowledgeBase
      parameters:
      - in: path
        name: knowledge_base_id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KnowledgeBase'
        required: true
      responses:
        '200':
          description: Knowledge base
      summary: Rename one knowledge base
      tags:
      - Knowledge
  /v1/knowledge-bases/{knowledge_base_id}/documents:
    get:
      operationId: listKnowledgeDocuments
      parameters:
      - in: path
        name: knowledge_base_id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Knowledge documents and pagination
      summary: List bounded document lifecycle state for one knowledge base
      tags:
      - Knowledge
    post:
      description: Send raw bytes with X-Skysay-Filename and tenant-bound organization_id/project_id query parameters. The API queues ingestion; it does not parse or embed in the request. X-Skysay-Filename carries the file's name percent-encoded as UTF-8; the name may be in any script, and the format is read from its extension.
      operationId: uploadKnowledgeDocument
      parameters:
      - in: path
        name: knowledge_base_id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/octet-stream:
            schema:
              format: binary
              type: string
        required: true
      responses:
        '201':
          description: Document queued for ingestion
      summary: Direct-upload one private TXT, Markdown, PDF, or DOCX source
      tags:
      - Knowledge
  /v1/knowledge-bases/{knowledge_base_id}/test:
    post:
      description: Customer-initiated only. The route binds the bearer organization/project and path base, reuses production passage retrieval, then asks Gemini for a short grounded preview. It returns exact visible source excerpts with an answer, explicit not_found when evidence is absent, or unavailable; it never creates a call, billing entry, retrieval event, action, or model-selectable scope.
      operationId: testKnowledgeBase
      parameters:
      - in: path
        name: knowledge_base_id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KnowledgeBaseTest'
        required: true
      responses:
        '200':
          description: Grounded answer and source excerpts, explicit not_found, or safe unavailable outcome
      summary: Test one grounded answer against a private knowledge base
      tags:
      - Knowledge
      x-required-scopes:
      - knowledge:read
  /v1/knowledge-documents/{document_id}:
    delete:
      operationId: deleteKnowledgeDocument
      parameters:
      - in: path
        name: document_id
        required: true
        schema:
          type: string
      responses:
        '202':
          description: Deletion queued
      summary: Hide and asynchronously delete one private source document
      tags:
      - Knowledge
  /v1/knowledge-documents/{document_id}/replace:
    post:
      description: Send raw replacement bytes with X-Skysay-Filename and tenant-bound organization_id/project_id query parameters. The replacement is stored and queued before the unreadable source is scheduled for deletion; this endpoint is unavailable for searchable or retryable documents. X-Skysay-Filename carries the file's name percent-encoded as UTF-8; the name may be in any script, and the format is read from its extension.
      operationId: replaceKnowledgeDocument
      parameters:
      - in: path
        name: document_id
        required: true
        schema:
          type: string
      - in: query
        name: organization_id
        required: false
        schema:
          description: Optional compatibility echo; the bearer workspace is authoritative.
          type: string
      - in: query
        name: project_id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/octet-stream:
            schema:
              format: binary
              type: string
        required: true
      responses:
        '201':
          description: Replacement queued and unreadable source scheduled for deletion
      summary: Replace one permanently unreadable private source document
      tags:
      - Knowledge
      x-required-scopes:
      - knowledge:write
  /v1/knowledge-documents/{document_id}/retry:
    post:
      description: Queues a fresh generation only when the document is in a safe retryable state or its ready row is missing/has lost its derived normalized-text artifact. It does not retry a healthy searchable document and it never exposes parser, provider, or storage exception text.
      operationId: retryKnowledgeDocument
      parameters:
      - in: path
        name: document_id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KnowledgeDocumentCommand'
        required: true
      responses:
        '202':
          description: Retry queued
      summary: Retry a recoverable knowledge document ingestion
      tags:
      - Knowledge
  /v1/knowledge-documents/{document_id}/text:
    get:
      description: Reads only the tenant-bound private derived text artifact, verifies its recorded hash/count, and never returns the original object, a storage key, or a download URL. The response is bounded to 50,000 characters with offset pagination and performs no model/provider generation or mutation.
      operationId: getKnowledgeDocumentText
      parameters:
      - in: path
        name: document_id
        required: true
        schema:
          type: string
      - in: query
        name: organization_id
        required: false
        schema:
          description: Optional compatibility echo; the bearer workspace is authoritative.
          type: string
      - in: query
        name: project_id
        required: true
        schema:
          type: string
      - in: query
        name: limit
        required: false
        schema:
          maximum: 50000
          minimum: 1
          type: integer
      - in: query
        name: offset
        required: false
        schema:
          maximum: 1000000
          minimum: 0
          type: integer
      responses:
        '200':
          description: Normalized text page and explicit pagination metadata
      summary: Read a bounded page of normalized extracted text for one ready document
      tags:
      - Knowledge
      x-required-scopes:
      - knowledge:read
components:
  schemas:
    KnowledgeBase:
      properties:
        name:
          maxLength: 120
          minLength: 1
          type: string
        organization_id:
          description: Must match the bearer workspace.
          type: string
        project_id:
          description: Must belong to the bearer workspace.
          type: string
      required:
      - organization_id
      - project_id
      - name
      type: object
    KnowledgeDocumentCommand:
      properties:
        organization_id:
          type: string
        project_id:
          type: string
      required:
      - organization_id
      - project_id
      type: object
    KnowledgeBaseAttachments:
      properties:
        knowledge_base_ids:
          description: Active bases in the same organization and project only.
          items:
            type: string
          maxItems: 20
          type: array
          uniqueItems: true
        organization_id:
          minLength: 1
          type: string
        project_id:
          minLength: 1
          type: string
      required:
      - organization_id
      - project_id
      - knowledge_base_ids
      type: object
    KnowledgeBaseTest:
      additionalProperties: false
      properties:
        organization_id:
          description: Must match the bearer workspace.
          type: string
        project_id:
          description: Must belong to the bearer workspace.
          type: string
        question:
          maxLength: 1000
          minLength: 1
          type: string
      required:
      - organization_id
      - project_id
      - question
      type: object
  securitySchemes:
    ApiKeyBearer:
      description: 'A scoped sky_ API key, sent as Authorization: Bearer sky_...'
      scheme: bearer
      type: http