API Reference
The Kallglot API is organized around REST principles. It uses standard HTTP response codes, authentication, and verbs.Base URL
All API endpoints are relative to:Request Format
The API accepts JSON-encoded request bodies and returns JSON-encoded responses. All requests must include theContent-Type: application/json header for POST/PUT/PATCH requests.
Response Format
All responses follow a consistent structure:Success Response
Error Response
Object Types
| Object | Description |
|---|---|
session | A real-time voice processing session |
transcript | Text transcript of a session |
recording | Audio recording of a session |
analysis | AI analysis of a session |
webhook_event | Event delivered via webhook |
ID Formats
All objects use prefixed identifiers for easy identification:| Prefix | Object Type |
|---|---|
sess_ | Session |
rec_ | Recording |
ana_ | Analysis |
kst_ | Stream token |
wh_ | Webhook endpoint |
evt_ | Webhook event |
Pagination
List endpoints support cursor-based pagination:| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of items to return (1-100, default 20) |
starting_after | string | Cursor for forward pagination |
ending_before | string | Cursor for backward pagination |
Paginated Response
Idempotency
For POST requests that create resources, include anIdempotency-Key header to ensure the request is processed only once:
- Keys are valid for 24 hours
- Retrying with the same key returns the same response
- Use UUIDs or other unique identifiers
Versioning
The API version is included in the URL path (/v1/). We release new versions when making backwards-incompatible changes.
| Version | Status | End of Life |
|---|---|---|
| v1 | Current | - |
Endpoints
Sessions
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/sessions | Create a new session |
GET | /v1/sessions/:id | Retrieve a session |
POST | /v1/sessions/:id/end | End a session |
GET | /v1/sessions/:id/transcript | Get session transcript |
GET | /v1/sessions/:id/recordings | List session recordings |
Recordings
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/recordings/:id | Retrieve recording metadata |
GET | /v1/recordings/:id/download | Download recording file |
Analysis
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/sessions/:id/analysis | Request session analysis |
GET | /v1/analysis/:id | Retrieve analysis results |
Streaming
| Protocol | Endpoint | Description |
|---|---|---|
| WebSocket | wss://stream.kallglot.com/v1/sessions/:id/connect | Real-time audio streaming |