Get Context
Retrieve a single context from your wisdom graph.
GET
/v1/context/{graph_id}— Get a single context by ID or nameAuthentication
All requests require an Authorization: Bearer <agent-secret> header.
Query Parameters
Alternative Endpoints
Get by Name
GET
/v1/context/{graph_id}?context_name={name}— Get a context by nameBatch Get
POST
/v1/context/{graph_id}/batch— Batch get multiple contextsBatch request body:
{
"context_ids": ["skill:react_hooks", "skill:rust_lifetimes"]
}Response
Returns 404 when the requested context does not exist.
Examples
curl — Get by ID
curl -G "https://api.locusgraph.com/v1/context/graph_01" \
-H "Authorization: Bearer <agent-secret>" \
--data-urlencode "context_id=skill:react_hooks"curl — Get by Name
curl -G "https://api.locusgraph.com/v1/context/graph_01" \
-H "Authorization: Bearer <agent-secret>" \
--data-urlencode "context_name=react_hooks"curl — Batch Get
curl -X POST "https://api.locusgraph.com/v1/context/graph_01/batch" \
-H "Authorization: Bearer <agent-secret>" \
-H "Content-Type: application/json" \
-d '{
"context_ids": ["skill:react_hooks", "skill:rust_lifetimes"]
}'Related
List Contexts
Retrieve Memories