Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Klu Context API

Manage Context libraries and documents for retrieval-augmented generation.

Klu Context API is one of 8 APIs that Klu publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Context. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 3 operations across 3 paths, and defines 6 schemas. It is described by OpenAPI 3.0.1, at version 1.0.

Requests are made against a single base URL, https://api.klu.ai/v1.

3 operations 3 paths 6 schemas 3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
1.0
Base URL
https://api.klu.ai/v1
Authentication
HTTP Bearer
Terms of Service
Resource Areas
1

Authentication & Security 1

Klu Context API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). By default, every request must be authenticated.

  • bearerAuth — Klu API key passed as a Bearer token in the Authorization header.

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 3 POST. Each is listed below with its method, path, parameters, and response codes.

Context 3

Manage Context libraries and documents for retrieval-augmented generation.

POST
/context
Create a Context library
createContext body → 200401
POST
/context/{guid}/documents
Add a document to a Context library
addContextDocument 1 param body → 200401
POST
/context/{guid}/add_files
Add files to a Context library
addContextFiles 1 param body → 200401

Schemas 6

The contract defines 6 schemas that model the data the API accepts and returns. The most detailed are CreateContextRequest (4 properties), Context (4 properties), ContextDocument (3 properties), Error (2 properties). Each schema is shown below with its type and property counts.

Context
object
4 properties
ContextDocument
object
3 properties
AddContextFilesRequest
object
1 property 1 required
AddContextDocumentRequest
object
2 properties 1 required
CreateContextRequest
object
4 properties 3 required
Error
object
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

klu-ai-context-api-openapi.yml Raw ↑

Other APIs Klu publishes across the network.

Klu Actions API
Klu Apps API
Klu Data API
Klu Feedback API
Klu Models API
Klu Sessions API
Klu Workspaces API