Agent

Read the context of your token

Introspects the caller behind the request. Any caller can read it — a browser session, an API key, a machine credential, a Space key, a partner token, or no credential at all — and every answer carries the Spacefast agent instructions as Markdown, filtered by scopes and budgeted for the consumer. An authenticated caller also gets a credential block naming what kind of token it is and what it is bound to, and a user-owned interactive grant gets a capabilities map of the operations its scopes allow.

get/v1/context

Request

  • Base URL: https://api.spacefast.com
  • URL: https://api.spacefast.com/v1/context
  • Auth: one of:
    • none
    • HTTP bearer
    • HTTP bearer
    • API key in cookie __Host-better-auth.session_token

Query parameters

string
OR
string[]
consumer'cursor' | 'mcp' | 'markdown'

Which client is reading, so the fragments come back shaped for it.

Response

Response for status 200

$schemastring uri

Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.

Changes

No recorded changes to this operation across all 1 revision of this API.