User information

We'll assume you've already got the API authentication settled and you have our API token with you.

You can get authorized user data by making GET request to the /api/user endpoint.

curl https://privasfer.com/api/user \
    -H 'Authorization: Bearer 7xcB5XlinBWGzajPdSW7bHr12erWZICIJN4jk0RpasoLYLpoiD6ErYnVSzld' \
    -H 'Accept: application/json' \
    -H 'Content-Type: application/json'

If the API call succeeded, you'll be given output like this.

{
    "data": {
            "name": "User Name",
            "initials": "User N.",
            "email": "user@email.address",
            "photo_url": "http://privasfer.alytus.itsolutions.lt/images/no_image.png",
            "timezone": "Europe/Vilnius"
      }
}

Return properties #

  • name: user full name.
  • initials: user name and first surname leter.
  • email: user email address.
  • photo_url: URL to the user photo.
  • timezone: user time zone.