Skip to content
API referenceGet a virtual key's default context sources

Get a virtual key's default context sources

GET/v1/virtual-keys/{slug}/context

Get a virtual key's default context sources.

The sources every request on the key gets without an x-context-source header, with their budget, required setting and selection model. An empty sources list means the key has no defaults.

Requires a key of the virtual key's workspace (or an organization admin key). Returns 404 when the virtual key does not exist.

Authorization

  • AuthorizationBearer va_

    A platform API key (va_...), created under Settings > API keys. Scoped to an organization or one workspace, with an admin or member role. Used by the management API.

Path parameters

  • slugstringrequired

    The virtual key's identifier (vk-...).

Responses

200application/json
  • sourcesstring[]required

    Context source ids (ctx-...) of the key's workspace, at most 5, that the key has access to. An empty list removes the defaults. A source that is later deleted, loses the key's access or is not READY is skipped (the request goes without it, x-context-status: UNAVAILABLE when none is left).

    At most 5 items

  • budgetinteger<int32>

    Most tokens of section text to add, 200 to 100000. Absent: 6000.

  • requiredboolean

    Fail a request instead of sending it without context. Default false.

  • modelstring

    The model that chooses the sections. Absent: gpt-6-luna.

    At least 0 characters · At most 200 characters

  • timeout_msinteger<int32>

    Most milliseconds the section selection may take, 100 to 60000, or 0 for no limit. Past it the request goes without context (x-context-status: SELECT_TIMEOUT), or fails when required is true. Absent: 8000.

  • updated_bystring

    Who last changed the defaults. Read-only.

  • updated_atstring<date-time>

    When they were last changed. Read-only.

NVIDIA Inception Program member

VectorAxis is built by GK Labs, a member of NVIDIA Inception.