Storyden
Robots

Get a robot session

Retrieve a specific robot session with all of its messages. Sessions can involve interactions with multiple Robots so the Robot is specified on each message. Messages may not be representative of exactly what is sent into a language model, as certain optimisations may be performed before this such as compaction, summarisation or removal of irrelevant context. Any member with "USE_ROBOTS" can see any other members' sessions and messages with a Robot. Robots are not considered private assistants, but rather shared tools for the team to use for managing their community.

GET/robots/sessions/{session_id}

Retrieve a specific robot session with all of its messages. Sessions can involve interactions with multiple Robots so the Robot is specified on each message. Messages may not be representative of exactly what is sent into a language model, as certain optimisations may be performed before this such as compaction, summarisation or removal of irrelevant context.

Any member with "USE_ROBOTS" can see any other members' sessions and messages with a Robot. Robots are not considered private assistants, but rather shared tools for the team to use for managing their community.

storyden-session<token>

In: cookie

Path Parameters

session_id*string

Robot session ID

Query Parameters

before?string

Load messages older than this message ID.

limit?string

Maximum number of messages to return.

Response Body

application/json

application/json

curl -X GET "https://example.com/robots/sessions/cc5lnd2s1s4652adtu50"
{
  "id": "cc5lnd2s1s4652adtu50",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "deletedAt": "2019-08-24T14:15:22Z",
  "misc": {},
  "name": "string",
  "created_by": {
    "id": "cc5lnd2s1s4652adtu50",
    "joined": "2019-08-24T14:15:22Z",
    "suspended": "2019-08-24T14:15:22Z",
    "handle": "Southclaws",
    "name": "Barnaby Keene",
    "signature": "<body><p>Sent with love from London!</p></body>",
    "roles": [
      {
        "badge": true,
        "default": true,
        "id": "cc5lnd2s1s4652adtu50",
        "name": "string",
        "colour": "string",
        "meta": {}
      }
    ]
  },
  "message_list": {
    "page_size": 0,
    "results": 0,
    "next_before": "cc5lnd2s1s4652adtu50",
    "messages": [
      {
        "id": "string",
        "role": "system",
        "parts": [
          {
            "type": "text",
            "text": "string",
            "state": "streaming"
          }
        ],
        "metadata": {},
        "created_at": "2019-08-24T14:15:22Z",
        "robot": {
          "id": "cc5lnd2s1s4652adtu50",
          "name": "string"
        },
        "author": {
          "id": "cc5lnd2s1s4652adtu50",
          "joined": "2019-08-24T14:15:22Z",
          "suspended": "2019-08-24T14:15:22Z",
          "handle": "Southclaws",
          "name": "Barnaby Keene",
          "signature": "<body><p>Sent with love from London!</p></body>",
          "roles": [
            {
              "badge": true,
              "default": true,
              "id": "cc5lnd2s1s4652adtu50",
              "name": "string",
              "colour": "string",
              "meta": {}
            }
          ]
        }
      }
    ]
  },
  "active_robot_id": "string",
  "active_workspace": {
    "workspace_id": "cc5lnd2s1s4652adtu50",
    "workspace_instance_id": "cc5lnd2s1s4652adtu50",
    "provider": "string",
    "meta": {}
  }
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "detail": "string",
  "trace_id": "string",
  "metadata": {}
}