Skip to main content
GET
/
users
/
me
Get Current User
curl --request GET \
  --url https://api.everhour.com/users/me \
  --header 'X-Api-Key: <api-key>'
import requests

url = "https://api.everhour.com/users/me"

headers = {"X-Api-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};

fetch('https://api.everhour.com/users/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.everhour.com/users/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.everhour.com/users/me"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-Api-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.everhour.com/users/me")
.header("X-Api-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.everhour.com/users/me")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "id": 1304,
  "name": "User Name",
  "role": "admin",
  "status": "active",
  "headline": "CEO",
  "avatarUrl": "<string>",
  "phone": "<string>",
  "capacity": 123,
  "avatarUrlLarge": "<string>",
  "timezone": 123,
  "apiKey": "<string>",
  "createdAt": "<string>",
  "dateFormat": 123,
  "timeFormat": 123,
  "timeRounding": 123,
  "country": "<string>",
  "team": {},
  "rate": 123,
  "cost": 123
}

Authorizations

X-Api-Key
string
header
required

Response

OK

Additional fields returned only for the authenticated user.

id
number
required
Example:

1304

name
string
required
Example:

"User Name"

role
enum<string>
required
Available options:
admin,
supervisor,
member,
member_limited
Example:

"admin"

status
enum<string>
required
Available options:
active,
invited,
pending,
removed
Example:

"active"

headline
string | null
Example:

"CEO"

avatarUrl
string | null
phone
string | null
capacity
integer | null

Weekly capacity in seconds.

avatarUrlLarge
string | null
timezone
number

UTC offset in hours (e.g. -5, 5.5).

apiKey
string
type
enum<string>
Available options:
employee,
contractor
createdAt
string

Format: Y-m-d H:i:s

dateFormat
integer
timeFormat
integer
timeRounding
integer
country
string

ISO 3166-1 alpha-2 country code.

team
object

The user's team.

rate
integer

Hourly bill rate in cents (admins only).

cost
integer

Hourly cost in cents (requires cost permissions).