GET
/
sessions
/
{session_id}
/
history
{
  "entries": [
    {
      "role": "user",
      "name": "<string>",
      "content": [
        {
          "text": "<string>",
          "type": "text"
        }
      ],
      "source": "api_request",
      "tokenizer": "<string>",
      "token_count": 123,
      "model": "gpt-4o-mini",
      "tool_calls": [
        {
          "type": "<string>",
          "function": {
            "name": "<string>",
            "arguments": "<string>"
          },
          "integration": "<any>",
          "system": "<any>",
          "api_call": "<any>",
          "computer_20241022": {
            "action": "key",
            "text": "<string>",
            "coordinate": [
              123
            ]
          },
          "text_editor_20241022": {
            "command": "str_replace",
            "path": "<string>",
            "file_text": "<string>",
            "insert_line": 123,
            "new_str": "<string>",
            "old_str": "<string>",
            "view_range": [
              123
            ]
          },
          "bash_20241022": {
            "command": "<string>",
            "restart": true
          },
          "id": "<string>"
        }
      ],
      "tool_call_id": "<string>",
      "timestamp": "2023-11-07T05:31:56Z",
      "created_at": "2023-11-07T05:31:56Z",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ],
  "relations": [
    {
      "head": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "relation": "<string>",
      "tail": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ],
  "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Path Parameters

session_id
string
required

Response

200
application/json
Successful Response
entries
object[]
required
relations
object[]
required
session_id
string
required
created_at
string
required