Skip to main content
GET

Overview

Returns the caller’s context: the documents of the organization the request acts for (written by its owners and admins in the dashboard), the caller’s personal documents, the skills the agent can load and the caller’s timezone. markdown is all of it merged into one text, organization first, the way an agent reads it at the start of a session. Which organization: the acting organization (the danube-org-id header, or an organization API key). With neither, a caller in exactly one shared organization gets that one; a caller in several gets no organization layer and a note. A personal organization has no organization layer. Auth: API key (danube-api-key header) or dashboard session (JWT).

Query Parameters

boolean
default:"true"
Also list the organization’s internal skills and your private ones, by name and description
string
default:"json"
json for the object below, or markdown for only the merged text (text/markdown)

Response

string
The organization layer, the personal layer, the skill index and the timezone, merged. Empty layers are left out.
integer
Length of markdown
integer
Rough token count of markdown (characters / 4)
object | null
The organization layer: id, name, slug, your role, can_edit (owner or admin) and documents. Null when no organization applies.
object
documents: your own context documents. Each document has id, name, content, version, position, updated_at, updated_via (dashboard, api or agent) and updated_by.
array
Skills the agent can load: id, name, description and source (organization or personal)
string | null
Your IANA timezone, set with PUT /v1/context/timezone
array
The shared organizations you belong to (id, name, slug, role)
string | null
Set when you belong to several organizations and none was selected

Example

MCP

The MCP server offers the same bundle as the get_context tool (in the core group) and as the resource context://current (the merged markdown).