Get user session and permission information

Provides information about the current user session, including whether the user is logged in, can view invoices, or has administrative rights. It returns a unique ID ('requestId') that may be needed to track other API calls.

Headers

Accept Example
Content-Type Example

Responses

200
success boolean
timestamp string
requestId string
data object
GET https://cloud.hostup.se/api/session-info
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/session-info" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "isContact": true,
    "authenticated": true,
    "authType": "string",
    "canAccessCdn": true
  }
}