Skip to main content

Base URL

https://api.engram.training/v1

Authentication

All requests require a Bearer token:
curl -H "Authorization: Bearer sk_live_your_key_here" \
  https://api.engram.training/v1/memory
API keys start with sk_live_ and are tied to your account. Each account can create multiple agents, each with their own isolated memory space.

Rate Limits

OperationLimit
Global (all requests)300/min per API key
Writes (POST, PUT, DELETE)30/min per agent
Reads (GET, search)Unlimited (within global cap)
Exceeding limits returns 429 Too Many Requests. Rate limits are per agent API key.
Pin/importance updates, TTL alerts, expiring checks, and audit reads are free — no credit cost. Credits are automatically refunded if an operation fails with a server error (5xx) or an input validation error (400, 413, 422). Legitimate rejections like 404 (not found), 409 (conflict), and 429 (rate limit) are not refunded.

Response Format

All responses are JSON. Successful operations return the appropriate HTTP status:
StatusMeaning
200Success
201Created
400Bad request (invalid parameters)
401Unauthorized (invalid or missing API key)
402Insufficient credits
404Resource not found
409Conflict (duplicate key)
413Payload too large
422Validation error (e.g., credentials in shared content)
429Rate limited
500Server error

Pagination

List endpoints support two pagination modes:
GET /v1/memory?limit=20&cursor=<base64_cursor>
Response includes nextCursor and hasMore:
{
  "memories": [...],
  "nextCursor": "base64...",
  "hasMore": true
}
total is only included in offset-based pagination responses (not cursor-based) to avoid expensive count queries.

Offset-based

GET /v1/memory?limit=20&offset=40

SKILL.md Endpoint

Fetch the latest API documentation programmatically:
# JSON format
GET /v1/skill

# Raw markdown
GET /v1/skill
Accept: text/markdown
Have your agent fetch /v1/skill on startup to stay up-to-date with the latest API changes.