Genbase
ApiAgent

Get Profile History

GET
/chat/{module_id}/profile/{profile}/history

Authorization

AuthorizationRequiredBearer <token>

JWT Token for authenticated users (obtained via /auth/jwt/login).

In: header

Path Parameters

module_idRequiredstring

Module ID

profileRequiredstring

Profile name (e.g., initialize, maintain)

Query Parameters

session_idstring

Optional session ID

Default: "00000000-0000-0000-0000-000000000000"Format: "uuid"
curl -X GET "http://localhost:8000/chat/string/profile/string/history?session_id=00000000-0000-0000-0000-000000000000" \
  -H "Authorization: Bearer <token>"

Successful Response

{
  "history": [
    {
      "role": "user",
      "content": "string",
      "tool_calls": [
        {
          "id": "string",
          "type": "function",
          "function": {
            "name": "string",
            "arguments": "string"
          }
        }
      ],
      "tool_call_id": "string",
      "name": "string"
    }
  ],
  "profile": "string",
  "module_id": "string"
}