Get information about the logged-in user

Retrieve information about the currently logged-in user. This is useful for personalizing the interface or verifying user permissions. The endpoint returns a unique requestId that can be used to track the call in logs or for follow-up actions.

Headers

Accept Example
Content-Type Example

Responses

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