API Reference
Complete reference for the Ricord API. Store knowledge, search memories, manage integrations, and control your account programmatically.
Quick Start
Get started in under a minute. Create an account, grab your API key from the dashboard, and make your first request.
1. Store a knowledge article
curl -X POST https://api.ricord.ai/v1/wiki \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Q2 Product Roadmap",
"content": "Ship v2 search by April. Mobile beta in May.",
"type": "fact",
"tags": ["product", "roadmap"]
}'2. Search your knowledge base
curl -X POST https://api.ricord.ai/v1/wiki/search \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "query": "What is the mobile plan?" }'3. Check your credit balance
curl https://api.ricord.ai/v1/usage \
-H "Authorization: Bearer YOUR_API_KEY"API Playground
Test the API directly from your browser. Paste your API key and try a search query.
Authentication
All API requests require authentication via the Authorization header. Ricord supports two authentication methods:
API Key
Best for server-side and agent integrations. Create keys in the dashboard or via the API.
Authorization: Bearer hx_live_abc123...Firebase ID Token
Best for client-side apps. Obtain via Firebase Auth SDK. Required for API key management endpoints.
Authorization: Bearer eyJhbGciOiJS...X-RateLimit-Remaining, X-RateLimit-Reset.Knowledge Wiki
Structured, versioned knowledge articles with semantic search. Articles support types (fact, procedure, decision, reference, playbook, anti-pattern, episode), maturity levels, conflict detection, and automatic deprecation.
Episodic Memory
Store and search agent memories — situations, outcomes, and reflections. Memories are private per user, expire after 90 days by default, and support similarity search with tag and temporal filtering.
Embeddings
OpenAI-compatible embeddings endpoint. Supports OpenAI and Google embedding models with automatic provider routing. Returns embeddings in the standard OpenAI format.
Integrations
Execute actions across 200+ connected services (Gmail, GitHub, Slack, Twitter, Notion, and more) via Composio. Connect accounts through OAuth, then execute tools programmatically.
Assets
Upload and manage files with permanent and staging lifecycle zones. Staging files auto-expire; permanent files persist indefinitely. Supports base64 content or URL-based ingestion.
Account & Usage
Monitor your credit balance, usage patterns, and rate limits. All usage endpoints are free.
API Keys
Create and manage API keys programmatically. These endpoints require Firebase ID token authentication (not API key auth). Max 25 keys per account.
Health
Service health and status endpoints. No authentication required.
Error Handling
The API returns consistent error objects across all endpoints. Errors include a machine-readable type and a human-readable message.
Error Response Format
{
"error": {
"type": "insufficient_credits_error",
"message": "Insufficient credits. Balance: 2, required: 10",
"param": null,
"code": "insufficient_credits"
}
}Credit Costs Summary
1 credit = $0.01 USD. All paid endpoints show the charge in the X-Credits-Charged response header and a credits_charged field in the response body.
Ready to get started?
Create a free account and get 100 credits to start building.