SoulFire LogoSoulFire

Get log history

Retrieves historical log entries from the server's in-memory log buffer. The server maintains a rolling buffer of the last 300 log entries. Only returns non-personal logs that match the specified scope.

POST
/v1/logs:history

Retrieves historical log entries from the server's in-memory log buffer. The server maintains a rolling buffer of the last 300 log entries. Only returns non-personal logs that match the specified scope.

Authorization

AuthorizationBearer <token>

Preferred API authentication. Use a JWT with the api audience.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://127.0.0.1:38765/v1/logs:history" \  -H "Content-Type: application/json" \  -d '{    "count": 0  }'
{
  "messages": [
    {
      "id": "string",
      "message": "string",
      "instance_id": "string",
      "bot_account_id": "string",
      "script_id": "string",
      "personal": true,
      "instance_name": "string",
      "bot_account_name": "string",
      "timestamp": {
        "seconds": 0,
        "nanos": 0
      },
      "logger_name": "string",
      "level": "string"
    }
  ]
}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}

How is this page?