Get a person's context
What Graine knows about one of your users, by the identifier your app sends.
What Graine knows about one of your users, by the identifier your app sends.
context is null when nothing has been noted yet (memory off for the agent, or no remembered conversation).
memories is null when they were not asked for or could not be read in time (memories_available: false);
an empty list means the agent remembers nothing about them. Personal details were removed before anything
was saved, and no response carries Graine's internal keys.
Rate limit: 2000 requests per minute per organization, counted together with every endpoint that has no stricter limit of its own. Exceeding it returns 429 with Retry-After; the X-RateLimit-* response headers report your remaining allowance on every call.
v2/people/contextAuthorization
AuthorizationRequiredBearer <token>
Your Graine API key. Create one in the dashboard under Developers, or via POST /v2/api-keys. Send it as Authorization: Bearer <key>.
In: header
Request Body
application/jsonRequiredagent_idRequiredAgent Id
The agent whose view of the person to read. Its memory scope (This agent only, or Agents that share memory) decides which facts come back; the notes are the workspace's.
identityRequiredPersonIdentity
include_memoriesInclude Memories
Include the remembered facts (current facts only).
trueResponse Body
200
The person's context and remembered facts.
agent_idRequiredAgent Id
The agent whose view this is.
identityRequiredPersonIdentityField
contextContext
What was noted; null when nothing has been.
identifiersIdentifiers
The identifiers linked to the person (empty when none are): field, how and when, never a value.
memoriesMemories | null
The current facts the agent remembers; null when not asked for or not readable in time.
memories_availableMemories Available | null
false when the facts could not be read in time (the notes still answer); null when not asked for.
400
1000 — malformed or contradictory input. 1002 — a required parameter is missing.
errorRequiredError
Stable integer code from the /v2 error table. Branch on this.
messageRequiredMessage
One human-readable sentence. Wording may change; the code will not.
401
1100 — missing, unknown or inactive API key. 1101 — a browser session token was presented instead of an API key.
errorRequiredError
Stable integer code from the /v2 error table. Branch on this.
messageRequiredMessage
One human-readable sentence. Wording may change; the code will not.
403
1102 — the key is valid but lacks the scope this endpoint requires, or names another organization. GET /v2/scopes reports what a key holds.
errorRequiredError
Stable integer code from the /v2 error table. Branch on this.
messageRequiredMessage
One human-readable sentence. Wording may change; the code will not.
404
1200 — no such resource in your organization. A resource belonging to another organization answers 404, never 403.
errorRequiredError
Stable integer code from the /v2 error table. Branch on this.
messageRequiredMessage
One human-readable sentence. Wording may change; the code will not.
422
1001 — the body or query failed validation; the message names the first offending field.
errorRequiredinteger
Stable integer code from the error table. Branch on this, not on the message.
messageRequiredstring
One human-readable sentence. Wording may change; the code will not.
429
1300 — the per-organization request rate or concurrent-call limit was reached. Carries Retry-After.
errorRequiredError
Stable integer code from the /v2 error table. Branch on this.
messageRequiredMessage
One human-readable sentence. Wording may change; the code will not.
503
1501 — a service this endpoint depends on is unreachable or returned a 5xx.
errorRequiredError
Stable integer code from the /v2 error table. Branch on this.
messageRequiredMessage
One human-readable sentence. Wording may change; the code will not.
The person's context and remembered facts.

