List Contexts
Browse and search contexts stored in your wisdom graph.
List Context Types
GET
/v1/contexts/{graph_id}— List all context types in a graphList Contexts by Type
GET
/v1/contexts/{graph_id}/{context_type}— List all contexts of a given typeSearch Contexts
GET
/v1/contexts/{graph_id}?q={query}— Search contexts by queryPass a q query parameter to search across context names and types.
Context Relationships
GET
/v1/contexts/{graph_id}/{context_type}/{name}/relationships— Get relationships for a contextReturns all reinforcement, extension, contradiction, and related-to links for a given context.
Authentication
All requests require an Authorization: Bearer <agent-secret> header.
Pagination
All list endpoints return paginated results with total, page, and page_size fields. Use page and page_size query parameters to paginate through results.
Examples
curl — List Types
curl "https://api.locusgraph.com/v1/contexts/graph_01" \
-H "Authorization: Bearer <agent-secret>"curl — List by Type
curl "https://api.locusgraph.com/v1/contexts/graph_01/skill" \
-H "Authorization: Bearer <agent-secret>"curl — Search
curl -G "https://api.locusgraph.com/v1/contexts/graph_01" \
-H "Authorization: Bearer <agent-secret>" \
--data-urlencode "q=react"curl — Relationships
curl "https://api.locusgraph.com/v1/contexts/graph_01/skill/react_hooks/relationships" \
-H "Authorization: Bearer <agent-secret>"Related
Get Context
Store Event