API Reference
Persistent memory + live data for AI agents. All endpoints live at /api/ac/...
Authentication
All paid endpoints require your API key via the X-API-Key header (or Authorization: Bearer). Get yours free from the dashboard or via the self-register endpoint.
# Header-based auth (recommended)
X-API-Key: am_your_key_here
# Bearer token style also accepted
Authorization: Bearer am_your_key_here
# Every request body must include agent_key matching your header key
{ "agent_key": "am_your_key_here", ... }
# OpenAPI spec for auto-binding tool-use
GET https://www.agentmind.agency/api/ac/openapi.json
# LLMs.txt guide for agent self-configuration
GET https://www.agentmind.agency/api/ac/llms.txtError Codes
400Bad request — missing or invalid fields401Unauthorized — invalid, missing, or mismatched API key402Payment required — insufficient credits403Forbidden — agent_key in body does not match header key404Not found — memory key does not exist429Rate limited — slow down, check Retry-After header500Server error — retry after a moment/api/ac/pingCost: FreeHealth Check
Check service status and see current pricing. No auth required.
Response
{
"status": "ok",
"service": "AgentMind",
"version": "1.0.0"
}/api/ac/registerCost: FreeSelf-Register
Create a new API key autonomously. Returns 50 free credits ($0.50). No auth required — agents can call this themselves.
Request Body
emailstring (required) — your email addressnamestring (optional) — agent display nameResponse
{
"success": true,
"agent_key": "am_xxxxxxxxxxxxxxxxxxxx",
"email": "agent@example.com",
"credit_balance_cents": 50,
"plan": "pay_as_you_go"
}/api/ac/memoryCost: $0.01Store Memory
Store or update a key-value memory. Overwrites if key already exists.
Request Body
agent_keystring (required) — must match your X-API-Key headermemory_keystring (required) — unique identifier for this memorymemory_valuestring (required) — content to storememory_typestring (optional) — 'context' | 'preference' | 'workflow' | 'fact'metadataobject (optional) — extra JSON to attachResponse
{
"success": true,
"memory_key": "user_prefs",
"tokens_saved": 12
}/api/ac/memoryCost: $0.01Retrieve Memory
Get a single memory by key. Updates access timestamp and count.
Query Parameters
agent_keystring (required) — must match your X-API-Key headermemory_keystring (required)Response
{
"success": true,
"memory": {
"id": 1,
"memory_key": "user_prefs",
"memory_value": "dark mode",
"access_count": 7
}
}/api/ac/memoryCost: FreeDelete Memory
Permanently delete a memory. Free of charge.
Request Body
agent_keystring (required) — must match your X-API-Key headermemory_keystring (required)Response
{
"success": true
}/api/ac/memory/searchCost: $0.01Search Memories
List all memories for your agent, optionally filtered by type.
Request Body
agent_keystring (required) — must match your X-API-Key headermemory_typestring (optional) — 'context' | 'preference' | 'workflow' | 'fact'limitnumber (optional) — max 100, default 50Response
{
"success": true,
"memories": [
{
"memory_key": "ctx_1",
"memory_value": "...",
"memory_type": "context"
}
],
"count": 1
}/api/ac/dataCost: $0.02 live · Free cachedFetch Live Data
Get real-time news, search results, weather, or prices. Results cached for 15 min — cached hits are free.
Request Body
agent_keystring (required) — must match your X-API-Key headerquery_type'news' | 'search' | 'weather' | 'price'querystring (required) — your search term or city namecache_minutesnumber (optional) — cache TTL in minutes, default 15Response
{
"success": true,
"data": {
"query": "AI agents",
"articles": [
{
"title": "...",
"snippet": "...",
"link": "..."
}
]
},
"from_cache": false,
"cost_cents": 2
}Live Data Query Types
newsLatest news articles on any topice.g. “AI agents 2026”articles[] with title, snippet, link, sourcesearchGeneral web search resultse.g. “best LLM benchmarks”results[] with title, snippet, linkweatherCurrent weather for any citye.g. “Tokyo”temperature, condition, humidity, windpriceWeb-sourced price info for any assete.g. “Bitcoin”summary snippet from top search resultRate Limits
Memory (all ops)200 requests / minute per keyLive Data60 requests / minute per keyRegister10 requests / hour per IP