roasOS
API referenceIntelligence

Get the intelligence context

Everything this workspace knows, compiled and bounded, in one read. It returns every active document in a fixed order, capped at 18,000 characters each and 72,000 in total. A document cut to fit says so with `truncated`. Free, and there is no quote: the compiler runs no model.

GET
/v1/intelligence/context

Everything this workspace knows, compiled and bounded, in one read.

It returns every active document in a fixed order, capped at 18,000 characters each and 72,000 in total. A document cut to fit says so with truncated.

Free, and there is no quote: the compiler runs no model.

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication. Use your API key as the bearer token: Authorization: Bearer roasos_sk_...

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/intelligence/context"
{  "data": {    "schema_version": "intelligence-context@1",    "kind": "intelligence_context",    "documents": [      {        "slug": "brand-truth",        "title": "string",        "version": 1,        "updated_at": "2019-08-24T14:15:22Z",        "markdown": "string",        "truncated": true      }    ],    "total_characters": 0,    "max_characters_per_document": 18000,    "max_total_characters": 72000  }}