Skip to main content
GET
/
session
Get the current user session
import requests

url = "https://{FUSION HOST}/api/session"

response = requests.get(url)

print(response.json())
{
  "user": {
    "id": "389ee4ee-08bf-3394-0b6b-6519372cfcae",
    "username": "api-user",
    "realmName": "native",
    "createdAt": "2025-05-28T14:05:15Z",
    "roleNames": [
      "admin"
    ],
    "permissions": []
  },
  "roles": [
    {
      "id": "1a61a7e3-0009-2d1f-adf5-6f2f2ded1424",
      "name": "admin",
      "createdAt": "2023-10-05T20:09:50Z",
      "desc": "Full access to every service. This is the super-admin role.",
      "permissions": [
        {
          "methods": [
            "GET",
            "PUT",
            "PATCH",
            "HEAD",
            "DELETE",
            "POST"
          ],
          "path": "/**"
        },
        {
          "methods": [
            "GET",
            "PUT",
            "HEAD",
            "DELETE",
            "POST"
          ],
          "path": "/solrAdmin/**"
        }
      ],
      "uiPermissions": [
        "*"
      ]
    }
  ]
}

Response

200 - application/json

OK

The response is of type object.