POSTplannedKnowledge
Erlewine Context
Retrieve rights-cleared Michael Erlewine context for controlled interpretation workflows without exposing raw archive internals.
Credits
1 credit per retrieval
Minimum Plan
Sales review
Billing Lane
Enterprise
SDK Helper
Not shipped
Inputs
- +query
- +endpoint target
- +rights bucket
- +top k
- +source filters
Outputs
- +context chunks
- +source credits
- +rights metadata
- +safe summary seeds
Tool Functions
Capabilities behind this endpoint
erlewine.context.searchSearches curated Erlewine chunks by endpoint target and source family.
source.credit.formatReturns public-safe credit lines and source labels.
rights.bucket.filterFilters retrieval to approved rights buckets.
Context Retrieval request
{
"query": "relationship vocation StarTypes pattern",
"endpoint_target": "compatibility",
"top_k": 5,
"rights_bucket": "approved"
}Context Retrieval response
{
"request_id": "req_...",
"data": {
"chunks": [],
"credit_line": "Includes interpretive context from Michael Erlewine source materials.",
"use_policy": "supporting context only"
},
"usage": { "lane": "core", "credits": 1, "billableUnits": 1 }
}curl
curl https://theleokingai.com/api/v1/knowledge/erlewine/context \
-X POST \
-H "Accept: application/json" \
-H "x-api-key: $LEOKING_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: erlewine-context-subject-123-v1" \
-d '{
"query": "relationship vocation StarTypes pattern",
"endpoint_target": "compatibility",
"top_k": 5,
"rights_bucket": "approved"
}'Node SDK
// /v1/knowledge/erlewine/context is marked planned and does not have a shipped SDK helper yet.Python SDK
# /v1/knowledge/erlewine/context is marked planned and does not have a shipped SDK helper yet.Error Behavior
| HTTP | Code | Partner Action |
|---|---|---|
| 400 | INVALID_REQUEST | Fix the payload shape, enum value, required field, or request body before retrying. |
| 401 | AUTH_REQUIRED | Send x-api-key from a trusted server environment. Do not expose keys in browser code. |
| 401 | AUTH_INVALID | Check the key prefix, rotate compromised keys, and verify the target environment. |
| 402 | CREDITS_EXHAUSTED | Upgrade the plan, add credits, or switch to a lower-cost Core Compute route. |
| 403 | AUTH_FORBIDDEN | Use a key scoped for this endpoint or upgrade to the required plan. |
| 404 | NOT_FOUND | Verify the job id, environment, API key, and whether the job belongs to the same workspace. |
| 409 | IDEMPOTENCY_CONFLICT | Reuse idempotency keys only for the same logical operation and identical request payload. |
| 429 | RATE_LIMITED | Back off, retry later, reduce concurrency, or request enterprise limits. |