Response
200 - application/json
OK
The response is of type object.
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": [
"*"
]
}
]
}Get details about the current user, all roles directly assigned to that user, and all roles inherited from the realm by that user.
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": [
"*"
]
}
]
}OK
The response is of type object.
Was this page helpful?