Physea Labs Context API
The Context API from Physea Labs — 17 operation(s) for context.
The Context API from Physea Labs — 17 operation(s) for context.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/physea-ai:physea-ai-context-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Liminality Router Service Context API
version: '1.1'
tags:
- name: Context
paths:
/context:
get:
summary: Get Caller Context
description: 'The caller''s CONTEXT profile: stored facts (identity, assets) joined with the
DERIVED views (connections, flows_created, works_for_me). Two-planes isolated.
LAZY + EMPTY-SAFE: module/store absent => an empty profile, never a 500.
With ?subject=, returns only that subject''s items plus a roadmap of executed steps.
Subjects are derived from asset ''kind'' fields.'
operationId: get_caller_context_context_get
parameters:
- name: caller
in: query
required: false
schema:
type: string
default: ''
title: Caller
- name: subject
in: query
required: false
schema:
type: string
default: ''
title: Subject
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
/context/preference:
post:
summary: Set Caller Preference
description: 'Persist a PREFERENCE on the caller''s profile — the HTTP equivalent of the MCP
set_preference tool (the four-ops ''fill'' verb that previously had no live endpoint).
Wires straight to caller_context.set_preference; IDOR-safe (identity resolved server-side
via _pref_caller). Returns {ok, caller, preferences}.'
operationId: set_caller_preference_context_preference_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PreferenceRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
/context/answer:
post:
summary: Context Answer
description: 'Answer one leaf for THIS caller (server-side identity, IDOR-safe like /context/preference).
Body {leaf, value, leaf_text?, branch_id?, source_ref?}. `leaf` may be the leaf text or the
leaf key; a key needs `leaf_text` unless a fact with that key already exists (we reuse its
text). Returns {ok, caller, leaf_key, fact, branched, other_branches}. 400 E_BAD_REQUEST
when the leaf text cannot be established.'
operationId: context_answer_context_answer_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ContextAnswerRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
/context/facts:
get:
summary: Context Facts List
description: This caller's PRIVATE facts (the answered leaves), main branch first per leaf.
operationId: context_facts_list_context_facts_get
parameters:
- name: caller
in: query
required: false
schema:
type: string
default: ''
title: Caller
- name: entity
in: query
required: false
schema:
type: string
default: ''
title: Entity
- name: topic
in: query
required: false
schema:
type: string
default: ''
title: Topic
- name: tag
in: query
required: false
schema:
type: string
default: ''
title: Tag
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
delete:
summary: Context Facts Delete
description: 'Per-caller delete-all: unlinks the encrypted facts file AND the encrypted index file.'
operationId: context_facts_delete_context_facts_delete
parameters:
- name: caller
in: query
required: false
schema:
type: string
default: ''
title: Caller
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
/context/identity:
post:
summary: Set Caller Identity
description: 'Set the caller''s free-text identity ("who I am"). Invalidates the per-caller
cache so the next /context read re-derives.'
operationId: set_caller_identity_context_identity_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/IdentityRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
/context/assets:
post:
summary: Register Caller Asset
description: 'Register (or merge) one asset this caller has — "an app and all the attributes
associated with that". Stored fact: {name, kind, attributes, added_ts}. Invalidates
the cache. Two-planes: lands only on this caller''s profile.'
operationId: register_caller_asset_context_assets_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AssetRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
/context/dump:
post:
summary: Context Dump Paste
description: 'Paste → private typed facts. Body {text (≤200k), source_ref?}. Returns
{ok, caller, ingested, facts[], redaction{findings, redacted_count}, embed{backend, model, dims}}.'
operationId: context_dump_paste_context_dump_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ContextDumpRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
/context/compress:
post:
summary: Context Compress
description: 'REST door for MCP `focus` (alias `compress_context`). POST /context/focus is the
canonical path (Jay SETTLED 2026-10-09 rename to Focus); /context/compress is kept as an
alias on the same handler. (CONNECT request 2026-09-09: workers skip the
MCP handshake). Same core, same caller binding (API key), same brief + fidelity +
metrics body. Key-required, quota-free on the sell plane ("/context" in AUTH_PATHS is
customer-tier here — see metering._admin_required). The caller''s context profile is
enforced BEFORE the model sees the text (coded LIM-CTX-002/003 → 400; over budget →
withheld with a receipt on `context_receipt`, never an error).'
operationId: context_compress_context_compress_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ContextCompressRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
/context/focus:
post:
summary: Context Compress
description: 'REST door for MCP `focus` (alias `compress_context`). POST /context/focus is the
canonical path (Jay SETTLED 2026-10-09 rename to Focus); /context/compress is kept as an
alias on the same handler. (CONNECT request 2026-09-09: workers skip the
MCP handshake). Same core, same caller binding (API key), same brief + fidelity +
metrics body. Key-required, quota-free on the sell plane ("/context" in AUTH_PATHS is
customer-tier here — see metering._admin_required). The caller''s context profile is
enforced BEFORE the model sees the text (coded LIM-CTX-002/003 → 400; over budget →
withheld with a receipt on `context_receipt`, never an error).'
operationId: context_compress_context_focus_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ContextCompressRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
/context/dump/upload:
post:
summary: Context Dump Upload
description: 'Upload (multipart `file`) → same ingest with source_ref=. text/markdown/json/csv
only, ≤2 MB, decoded utf-8 with errors=''replace''. Optional form field `caller` (off-sell only).'
operationId: context_dump_upload_context_dump_upload_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Context
/context/workspace:
get:
summary: Roots
operationId: roots_context_workspace_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Context
post:
summary: Create
operationId: create_context_workspace_post
requestBody:
content:
application/json:
schema:
additionalProperties: true
type: object
title: Body
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
/context/workspace/search:
get:
summary: Search
operationId: search_context_workspace_search_get
parameters:
- name: q
in: query
required: false
schema:
type: string
default: ''
title: Q
- name: workspace_id
in: query
required: false
schema:
type: string
default: ''
title: Workspace Id
- name: k
in: query
required: false
schema:
type: integer
default: 6
title: K
- name: rerank
in: query
required: false
schema:
type: boolean
default: false
title: Rerank
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
/context/workspace/{workspace_id}:
get:
summary: Manifest
operationId: manifest_context_workspace__workspace_id__get
parameters:
- name: workspace_id
in: path
required: true
schema:
type: string
title: Workspace Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
delete:
summary: Revoke
operationId: revoke_context_workspace__workspace_id__delete
parameters:
- name: workspace_id
in: path
required: true
schema:
type: string
title: Workspace Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
/context/workspace/{workspace_id}/sync:
post:
summary: Sync
operationId: sync_context_workspace__workspace_id__sync_post
parameters:
- name: workspace_id
in: path
required: true
schema:
type: string
title: Workspace Id
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: true
title: Body
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
/context/dump/search:
get:
summary: Context Dump Search
description: Search this caller's private facts and return a concise sourced answer when found.
operationId: context_dump_search_context_dump_search_get
parameters:
- name: q
in: query
required: false
schema:
type: string
default: ''
title: Q
- name: k
in: query
required: false
schema:
type: integer
default: 8
title: K
- name: caller
in: query
required: false
schema:
type: string
default: ''
title: Caller
- name: exact_id
in: query
required: false
schema:
type: string
default: ''
title: Exact Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
/context/facts/export:
get:
summary: Context Facts Export
description: 'Per-caller export of the private fact store: every fact (plaintext JSON) + the retrieval
index METADATA (vectors/shingles omitted — derived data).'
operationId: context_facts_export_context_facts_export_get
parameters:
- name: caller
in: query
required: false
schema:
type: string
default: ''
title: Caller
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
/context/affordances:
get:
summary: Caller Affordances
description: '"What can I use this for?" — ranked affordances for an asset (by name; pass
kind to disambiguate). When the asset is already registered for this caller its
stored attributes feed the definitional matrix; otherwise name+kind alone are
used. Each row {use, score, match_method: "affordance-v1", route_key?}; score is a
RANKING signal, not a probability (legend). LAZY + EMPTY-SAFE.'
operationId: caller_affordances_context_affordances_get
parameters:
- name: asset
in: query
required: true
schema:
type: string
title: Asset
- name: kind
in: query
required: false
schema:
type: string
default: ''
title: Kind
- name: caller
in: query
required: false
schema:
type: string
default: ''
title: Caller
- name: k
in: query
required: false
schema:
type: integer
default: 8
title: K
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Context
components:
schemas:
AssetRequest:
properties:
name:
type: string
title: Name
kind:
type: string
title: Kind
default: ''
attributes:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Attributes
caller:
type: string
title: Caller
default: ''
type: object
required:
- name
title: AssetRequest
IdentityRequest:
properties:
identity:
type: string
title: Identity
caller:
type: string
title: Caller
default: ''
type: object
required:
- identity
title: IdentityRequest
ContextDumpRequest:
properties:
text:
type: string
maxLength: 200000
title: Text
source_ref:
type: string
title: Source Ref
default: paste
source_kind:
type: string
title: Source Kind
default: user_context
source_id:
type: string
title: Source Id
default: ''
source_line:
type: integer
title: Source Line
default: 1
caller:
type: string
title: Caller
default: ''
type: object
required:
- text
title: ContextDumpRequest
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
PreferenceRequest:
properties:
key:
type: string
title: Key
value:
type: string
title: Value
default: ''
caller:
type: string
title: Caller
default: ''
type: object
required:
- key
title: PreferenceRequest
ContextCompressRequest:
properties:
text:
type: string
maxLength: 2000000
title: Text
task:
type: string
title: Task
retention:
type: string
title: Retention
default: task_local
type: object
required:
- text
- task
title: ContextCompressRequest
ContextAnswerRequest:
properties:
leaf:
type: string
title: Leaf
value:
title: Value
leaf_text:
type: string
title: Leaf Text
default: ''
branch_id:
anyOf:
- type: string
- type: 'null'
title: Branch Id
source_ref:
type: string
title: Source Ref
default: ''
entity:
type: string
title: Entity
default: ''
topic:
type: string
title: Topic
default: ''
tags:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Tags
caller:
type: string
title: Caller
default: ''
type: object
required:
- leaf
title: ContextAnswerRequest
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError