POSTplannedKnowledge

Erlewine Context

Retrieve rights-cleared Michael Erlewine context for controlled interpretation workflows without exposing raw archive internals.

POST /v1/knowledge/erlewine/contextQuickstartOpenAPI JSON
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

3 functions
erlewine.context.search

Searches curated Erlewine chunks by endpoint target and source family.

source.credit.format

Returns public-safe credit lines and source labels.

rights.bucket.filter

Filters 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
HTTPCodePartner Action
400INVALID_REQUESTFix the payload shape, enum value, required field, or request body before retrying.
401AUTH_REQUIREDSend x-api-key from a trusted server environment. Do not expose keys in browser code.
401AUTH_INVALIDCheck the key prefix, rotate compromised keys, and verify the target environment.
402CREDITS_EXHAUSTEDUpgrade the plan, add credits, or switch to a lower-cost Core Compute route.
403AUTH_FORBIDDENUse a key scoped for this endpoint or upgrade to the required plan.
404NOT_FOUNDVerify the job id, environment, API key, and whether the job belongs to the same workspace.
409IDEMPOTENCY_CONFLICTReuse idempotency keys only for the same logical operation and identical request payload.
429RATE_LIMITEDBack off, retry later, reduce concurrency, or request enterprise limits.