SDK Reference
Methods
GetContext

getContext

Return details of a context.

How to use?

const { data, error } = await orbis.getContext(context_id);

Parameters

  • context_id - (stream) ID of the context you want to query

Returns

{
    "stream_id": "k...",
    "creator": "did:...",
    "project_id": "kj...",  // (stream) ID of a parent project
    "content": {
      "name": "internal-context-name",
      "project_id": "kj...",  // (stream) ID of a parent project
      "websiteUrl": "https://project-or-app-url",
      "accessRules": [
        ...
      ],
      "displayName": "Display Context Name",
      "integrations": {
        ...
      }
    },
    "created_at": "2023-04-14T12:46:16.44857+00:00",
    "context": null || "string",  // (stream) ID of a parent context
    "is_deleted": false || true,
    "last_post_timestamp": 1682675662
}