API Reference
Complete reference documentation for the datablocks API endpoints.
API Endpoints
Chat Completions
Send messages to models and receive AI-generated responses with optional datablock context.
POST
/v1/chat/completions- Stream responses
- Datablock integration
- OpenAI compatible
Datablocks
Train, manage, and run inference with datablocks for efficient long-context processing.
POST/GET
/v1/datablocks/*- Training
- Inference
- List datablocks
Files
Upload, manage, and organize files for datablock training and processing.
POST/GET
/v1/files- Upload files
- List files
- Delete files
Status
Check the health and status of the API service.
GET
/v1/status- Health check
- Service status
Getting Started with the API
Learn how to authenticate, make your first API call, and integrate datablocks into your applications.