Overview
Acontext provides a REST API for building AI agents with persistent context, semantic search, and self-learning capabilities.REST API
RESTful endpoints with predictable URLs
OpenAPI 3.0
Full OpenAPI specification available
Multi-format Support
OpenAI, Anthropic, Gemini, and native formats
Client SDKs
Python and TypeScript libraries
Authentication
All API requests require a Bearer token in theAuthorization header:
Install SDKs
Quick Start
Core Concepts
Spaces
Spaces
Knowledge spaces store structured information with semantic search capabilities. Each space can contain pages, folders, and content blocks.
Sessions
Sessions
Sessions represent conversation threads with message history. Connect sessions to spaces to leverage stored knowledge.
Blocks
Blocks
Building units of knowledge: pages, folders, text blocks, and SOPs. Blocks support rich properties and nested structures.
Disks
Disks
Isolated storage groups for organizing multiple knowledge bases within a project.
Tools
Tools
Capabilities that AI agents can use. Manage and configure tools across your project.
API Resources
Disks
Manage storage groups
Sessions
Handle conversations and messages
Spaces
Create and search knowledge bases
Blocks
Manage content structure
Tools
Configure agent capabilities
Search
Semantic and agentic search
Message Formats
Acontext supports multiple message formats for compatibility:- OpenAI - Compatible with OpenAI Chat Completion format (default)
- Anthropic - Compatible with Anthropic Messages format
- Gemini - Compatible with Google Gemini Messages format
format parameter.