Skip to content

Checks if the user is logged in and lists the basic user information. Returns 401 if not logged in or 200 and the user data.

GET
/api/user/current

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Responses

Authorization
api_key
cURL
curl -X GET \
'http://localhost/api/user/current'

Samples

cURL
curl -X GET http://localhost/api/user/current
JavaScript
fetch("http://localhost/api/user/current")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/user/current");
Python
import requests
response = requests.get("http://localhost/api/user/current")
print(response.json())